From 14ad852fffd288ab5f2ff0fc87bf5e4ad9ade0ae Mon Sep 17 00:00:00 2001
From: al_xipe <al_xipe@localhost>
Date: Thu, 27 Sep 2007 14:37:57 +0000
Subject: [PATCH] hack to be able to plot the functional tests result trend

---
 opendj-sdk/opends/tests/functional-tests/staf-installer.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/tests/functional-tests/staf-installer.xml b/opendj-sdk/opends/tests/functional-tests/staf-installer.xml
index 9269bc6..3eb48a1 100644
--- a/opendj-sdk/opends/tests/functional-tests/staf-installer.xml
+++ b/opendj-sdk/opends/tests/functional-tests/staf-installer.xml
@@ -617,6 +617,17 @@
         <include name="r*"/>
       </fileset>
     </copy>
+    <delete file="${staf.tmp.dir}/percentage.properties"/>
+    <copy file="${staf.tmp.dir}/my-report.html" tofile="${staf.tmp.dir}/plot.all.percentage">
+      <filterchain>
+        <linecontains>
+         <contains value='font size="+2'/>
+        </linecontains>
+        <tokenfilter>
+          <replaceregex pattern=".*font size=.+2..(\d+)%./font.*" replace="YVALUE=\1"/>
+        </tokenfilter>
+      </filterchain>
+    </copy>
     <echo>You may access the tests report at</echo>
     <echo>${tests.run.dir}/${tests.run.time}/report/my-report.html</echo>
     <antcall target="send-mail"/>

--
Gitblit v1.10.0