From 11e0ed43bd34a7dff631b5640d0d5891ef0afadd Mon Sep 17 00:00:00 2001
From: madiot <madiot@localhost>
Date: Fri, 04 Sep 2009 14:21:12 +0000
Subject: [PATCH] adding build target 'tests-specs' to generate in ${logs.dir} the functional tests specs out of the STAX XML files specs commentaries
---
opends/tests/staf-tests/shared/ant/tests.xml | 13 +++++++++++++
opends/tests/staf-tests/shared/ant/usage.xml | 1 +
opends/tests/staf-tests/shared/ant/build.xml | 5 +++++
3 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/opends/tests/staf-tests/shared/ant/build.xml b/opends/tests/staf-tests/shared/ant/build.xml
index 0423b78..0460e42 100644
--- a/opends/tests/staf-tests/shared/ant/build.xml
+++ b/opends/tests/staf-tests/shared/ant/build.xml
@@ -381,6 +381,11 @@
<!-- ######### -->
<!-- # TESTS # -->
<!-- ######### -->
+ <!-- generate tests specs -->
+ <target name="tests-specs"
+ depends="set-func-type,global-init">
+ <ant antfile="${antfile.dir}/tests.xml" target="specs"/>
+ </target>
<target name="set-func-type">
<property name="tests.type" value="functional-tests"/>
diff --git a/opends/tests/staf-tests/shared/ant/tests.xml b/opends/tests/staf-tests/shared/ant/tests.xml
index 0ab3201..163b40f 100644
--- a/opends/tests/staf-tests/shared/ant/tests.xml
+++ b/opends/tests/staf-tests/shared/ant/tests.xml
@@ -30,6 +30,19 @@
Execute the tests.
</description>
+ <target name="specs">
+ <javac srcdir="${shared.dir}/java/parsingtool"
+ destdir="${shared.dir}/java/parsingtool"/>
+ <delete dir="${logs.dir}/specs" failonerror="false"/>
+ <mkdir dir="${logs.dir}/specs"/>
+ <java classpath="${shared.dir}/java/parsingtool"
+ classname="GenerateOpenDSTestSpecs" fork="true">
+ <arg value="${tests.dir}"/>
+ <arg value="${logs.dir}/specs"/>
+ <arg value="xml" />
+ </java>
+ </target>
+
<target name="run">
<tstamp>
<format property="tests.run.time" pattern="yyyy.MM.dd-HH.mm.ss"/>
diff --git a/opends/tests/staf-tests/shared/ant/usage.xml b/opends/tests/staf-tests/shared/ant/usage.xml
index 8974cd0..7d6491d 100644
--- a/opends/tests/staf-tests/shared/ant/usage.xml
+++ b/opends/tests/staf-tests/shared/ant/usage.xml
@@ -59,6 +59,7 @@
staf-jvmlogs : start the STAF jvm log viewer
--tests--
+ tests-specs : generate the functional tests specs
tests-configure : configure the functional tests
tests-func-configure : configure the functional tests
tests-stress-configure : configure the stress tests
--
Gitblit v1.10.0