diff options
author | wisberg <wisberg> | 2003-08-17 19:13:09 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-08-17 19:13:09 +0000 |
commit | a082a84bda0002618f48590e0f6a593b3de7ae7c (patch) | |
tree | 8392bb6d1c31a55341d4e0b54428397e4c73f691 /tests | |
parent | a8d15aaeb9819732b89e289be29bf199283f5d8a (diff) | |
download | aspectj-a082a84bda0002618f48590e0f6a593b3de7ae7c.tar.gz aspectj-a082a84bda0002618f48590e0f6a593b3de7ae7c.zip |
added ant driver for JUnit ajctest driver
Diffstat (limited to 'tests')
-rw-r--r-- | tests/junitModules.xml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/junitModules.xml b/tests/junitModules.xml index ef1770fca..b950b1e06 100644 --- a/tests/junitModules.xml +++ b/tests/junitModules.xml @@ -40,6 +40,8 @@ location="${modules.dir}/tests"/> <property name="aspectj.modules.lib.dir" location="${modules.dir}/lib"/> + <property name="harness.lib.dir" + location="${aspectj.modules.lib.dir}/test"/> <property name="junitModules.output.dir" location="${tests.module.dir}/bin/junitXmlOutput" /> <property name="aspectjrt.path" @@ -218,6 +220,12 @@ </junit> </target> + <target name="test-ajctest-junit" depends="init,select-path" + description="run JUnit tests"> + <antcall target="run-ajctests-junit-tests"/> + <antcall target="report-tests"/> + </target> + <target name="test-all-but-ajc" depends="init,select-path" description="run all module tests (except IDE integrations)"> @@ -384,6 +392,38 @@ </target> + <target name="run-ajctests-junit-tests" depends="init-taskdefs" + description="run the JUnit harness wrapper tests"> + <mkdir dir="${junitModules.output.dir}/ajctest"/> + <delete dir="${junitModules.output.dir}/ajctest"/> + <mkdir dir="${junitModules.output.dir}/ajctest"/> + + <!-- fork to load classes, include AntRuntime to get taskdef classes junit.jar --> + <echo message="Starting ajctest JUnit tests..."/> + <junit fork="on" + includeAntRuntime="off" + dir="${modules.dir}/testing-drivers" + printsummary="yes" + haltonfailure="${haltOnTestFailure}" > + <classpath> + <path refid="${test.classpath}"/> + <pathelement location="${aspectjrt.path}"/> + </classpath> + + <jvmarg value="-Daspectjrt.path=${aspectjrt.path}" /> + <jvmarg value="-Dharness.libdir=${harness.lib.dir}" /> + + <formatter type="xml"/> + + <batchtest todir="${junitModules.output.dir}/ajctest"> + <formatter type="xml"/> + <fileset dir="${modules.dir}/testing-drivers/testsrc"> + <include name="org/aspectj/testing/drivers/*UsingJUnit.java" /> + </fileset> + </batchtest> + </junit> + </target> + <target name="run-module-junit-tests" depends="init-taskdefs" description="run all junit tests for a module"> <mkdir dir="${junitModules.output.dir}/${moduleName}"/> |