You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by rh...@apache.org on 2018/09/26 13:22:57 UTC
svn commit: r1842021 - /db/derby/code/trunk/build.xml
Author: rhillegas
Date: Wed Sep 26 13:22:56 2018
New Revision: 1842021
URL: http://svn.apache.org/viewvc?rev=1842021&view=rev
Log:
DERBY-6945: Add top level ant target for running the JUnit tests with a module path; commit derby-6945-61-aa-antTargetToRunJUnitTestsWithModules.diff.
Modified:
db/derby/code/trunk/build.xml
Modified: db/derby/code/trunk/build.xml
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/build.xml?rev=1842021&r1=1842020&r2=1842021&view=diff
==============================================================================
--- db/derby/code/trunk/build.xml (original)
+++ db/derby/code/trunk/build.xml Wed Sep 26 13:22:56 2018
@@ -2653,6 +2653,39 @@
</java>
</target>
+ <target name="test-junit-all-with-modulepath"
+ depends="junit-init"
+ description="JUnit tests with module path"
+ >
+ <path id="junit.all.classpath">
+ <fileset dir="${derby.junit.test.jars}" includes="*.jar"/>
+ <pathelement location="${javatools.dir}/junit.jar"/>
+ <pathelement location="${lucene_core}"/>
+ <pathelement location="${lucene_a_co}"/>
+ <pathelement location="${lucene_qp}"/>
+ <pathelement location="${json_simple}"/>
+ </path>
+
+ <echo message="Modulepath used for JUnit tests with modulepath: ${toString:junit.all.classpath}"/>
+ <mkdir dir="junit_${derby.junit.timestamp}/junit-all"/>
+
+ <java
+ modulepath="${toString:junit.all.classpath}"
+ module="junit"
+ classname="junit.textui.TestRunner"
+ fork="yes"
+ dir="junit_${derby.junit.timestamp}/junit-all"
+ >
+ <sysproperty key="derbyTesting.oldReleasePath" value="${derbyTesting.oldReleasePath}"/>
+ <sysproperty key="derbyTesting.oldVersionsPath" value="${derbyTesting.oldVersionsPath}"/>
+
+ <jvmarg value="--add-modules"/>
+ <jvmarg value="org.apache.derby.tests"/>
+
+ <arg value="org.apache.derbyTesting.functionTests.suites.All"/>
+ </java>
+ </target>
+
<!-- =================================================================== -->
<!-- EMMA utility targets -->
<!-- =================================================================== -->