components/junit/patches/test-system-build.xml.patch
author zihao.zhu@oracle.com <zihao.zhu@oracle.com>
Mon, 17 Oct 2016 09:22:53 -0700
changeset 7116 24e5d18aa27c
parent 4700 3e0131debf7c
permissions -rw-r--r--
23606339 openldap role audit class not set to "cusa"

Internal patch to get Userland system-test working.
Will not offer upstream.


--- junit-r4.11/build.xml_orig	2015-07-21 14:04:27.085904567 -0700
+++ junit-r4.11/build.xml	2015-07-22 16:03:07.512692190 -0700
@@ -7,6 +7,7 @@
   <property name="src" value="src/main/java" />
   <property name="target" location="target" />
   <property name="bin" location="${target}/main" />
+  <property name="system-binjar" location="/usr/share/lib/java/junit.jar" />
   <property name="version-base" value="4.11" />
   <property name="version-status" value="-SNAPSHOT" />
   <property name="version" value="${version-base}${version-status}" />
@@ -195,9 +196,8 @@
       <java classname="org.junit.runner.JUnitCore" fork="yes" failonerror="true">
         <arg value="org.junit.tests.AllTests"/>
         <classpath>
-          <pathelement location="${bin}" />
+          <pathelement location="${system-binjar}" />
           <pathelement location="${testbin}" />
-          <pathelement location="${hamcrestlib}" />
         </classpath>
       </java>    
     </sequential>
@@ -210,7 +210,7 @@
     </run-dist-tests>
   </target>
 
-  <target name="test" depends="build">
+  <target name="test">
     <run-local-tests />
   </target>