44 |
|
<property name="build.deprecation" value="false"/> |
45 |
|
<property name="build.javadoc.access" value="protected"/> |
46 |
|
|
47 |
+ |
<!-- Tck options; see JSR166TestCase.java --> |
48 |
+ |
<!-- Use via, e.g. ant -Djsr166.profileTests=true -Djsr166.runsPerTest=100 test-tck --> |
49 |
+ |
<property name="jsr166.profileTests" value="false"/> |
50 |
+ |
<property name="jsr166.profileThreshold" value="100"/> |
51 |
+ |
<property name="jsr166.runsPerTest" value="1"/> |
52 |
+ |
|
53 |
|
<!-- Build locations --> |
54 |
|
<property name="build.dir" location="build"/> |
55 |
|
<property name="build.classes.dir" location="${build.dir}/classes"/> |
176 |
|
|
177 |
|
<macrodef name="run-tck-tests"> |
178 |
|
<attribute name="tck.src.dir" default="${tck.src.dir}"/> |
173 |
– |
<attribute name="source" default="6"/> |
179 |
|
<attribute name="target"/> |
180 |
+ |
<attribute name="compile-target" default="@{target}"/> |
181 |
|
<attribute name="workdir"/> |
182 |
|
<attribute name="classes"/> |
183 |
|
<attribute name="jvmflags" default=""/> |
191 |
|
debug="${build.debug}" |
192 |
|
debuglevel="${build.debuglevel}" |
193 |
|
deprecation="${build.deprecation}" |
194 |
< |
source="@{source}" |
194 |
> |
source="@{compile-target}" |
195 |
> |
target="@{compile-target}" |
196 |
|
classpath="${junit.jar}" |
197 |
< |
bootclasspath="@{classes}:${bootclasspath@{source}}" |
197 |
> |
bootclasspath="@{classes}:${bootclasspath@{compile-target}}" |
198 |
|
includeAntRuntime="false" |
199 |
|
includeJavaRuntime="false" |
200 |
< |
executable="${javac@{target}}" |
200 |
> |
executable="${javac@{compile-target}}" |
201 |
|
fork="true"> |
202 |
|
|
203 |
|
<include name="*.java"/> |
214 |
|
fork="true"> |
215 |
|
<jvmarg value="-Xbootclasspath/p:@{classes}"/> |
216 |
|
<jvmarg line="@{jvmflags}"/> |
217 |
+ |
<sysproperty key="jsr166.profileTests" value="${jsr166.profileTests}"/> |
218 |
+ |
<sysproperty key="jsr166.profileThreshold" value="${jsr166.profileThreshold}"/> |
219 |
+ |
<sysproperty key="jsr166.runsPerTest" value="${jsr166.runsPerTest}"/> |
220 |
|
<classpath> |
221 |
|
<pathelement location="${junit.jar}"/> |
222 |
|
<pathelement location="@{workdir}/tck-classes"/> |
673 |
|
classes="${4jdk7product.jar}"> |
674 |
|
<javac-elements> |
675 |
|
<!-- JDK8+ test classes --> |
676 |
+ |
<exclude name="*8Test.java"/> |
677 |
+ |
<exclude name="DoubleAccumulatorTest.java"/> |
678 |
+ |
<exclude name="DoubleAdderTest.java"/> |
679 |
+ |
<exclude name="LongAccumulatorTest.java"/> |
680 |
+ |
<exclude name="LongAdderTest.java"/> |
681 |
+ |
<exclude name="CompletableFutureTest.java"/> |
682 |
|
<exclude name="StampedLockTest.java"/> |
683 |
|
</javac-elements> |
684 |
|
</run-tck-tests> |
1117 |
|
|
1118 |
|
<run-tck-tests |
1119 |
|
tck.src.dir="${test.src.dir}/tck-jsr166e" |
1120 |
< |
source="7" |
1105 |
< |
target="8" |
1120 |
> |
target="7" |
1121 |
|
workdir="${build.jsr166e.dir}" |
1122 |
|
classes="${jsr166e.jar}"/> |
1123 |
|
</target> |