1 |
<project name="jsr166" default="usage" |
<project name="jsr166" default="usage" |
2 |
xmlns:if="ant:if" xmlns:unless="ant:unless"> |
xmlns:if="ant:if" xmlns:unless="ant:unless" |
3 |
|
xmlns:ivy="antlib:org.apache.ivy.ant"> |
4 |
|
|
5 |
<description> |
<description> |
6 |
------------------------------------------------------------------------------ |
------------------------------------------------------------------------------ |
265 |
fork="true"> |
fork="true"> |
266 |
<jvmarg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
<jvmarg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
267 |
<jvmarg line="--patch-module java.base=@{classes}" if:set="modules"/> |
<jvmarg line="--patch-module java.base=@{classes}" if:set="modules"/> |
268 |
|
<jvmarg line="--add-opens java.base/java.lang=ALL-UNNAMED" if:set="modules"/> |
269 |
<jvmarg line="--add-opens java.base/java.util=ALL-UNNAMED" if:set="modules"/> |
<jvmarg line="--add-opens java.base/java.util=ALL-UNNAMED" if:set="modules"/> |
270 |
<jvmarg line="--add-opens java.base/java.util.concurrent=ALL-UNNAMED" if:set="modules"/> |
<jvmarg line="--add-opens java.base/java.util.concurrent=ALL-UNNAMED" if:set="modules"/> |
271 |
<jvmarg line="--add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED" if:set="modules"/> |
<jvmarg line="--add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED" if:set="modules"/> |
300 |
<fileset dir="${jtreg8.src.dir}"> |
<fileset dir="${jtreg8.src.dir}"> |
301 |
<patternset id="jdk8.jtreg.tests"> |
<patternset id="jdk8.jtreg.tests"> |
302 |
<include name="**/*.java"/> |
<include name="**/*.java"/> |
|
<exclude name="**/SpliteratorCharacteristics.java"/> |
|
|
<!-- https://bugs.openjdk.java.net/browse/JDK-6842353 --> |
|
|
<exclude name="**/GCDuringIteration.java"/> |
|
303 |
</patternset> |
</patternset> |
304 |
</fileset> |
</fileset> |
305 |
|
|
1509 |
</antcall> |
</antcall> |
1510 |
</target> |
</target> |
1511 |
|
|
1512 |
|
<!-- ============================================================== |
1513 |
|
Running guava tests against jsr166 code |
1514 |
|
=================================================================== --> |
1515 |
|
|
1516 |
|
<!-- <ivy:cachepath pathid="lib.path.id" inline="true" conf="*" --> |
1517 |
|
<!-- organisation="com.google.guava" module="guava-testlib" revision="21.0"/> --> |
1518 |
|
<!-- <property name="guava.version" value="21.0"/> --> |
1519 |
|
|
1520 |
|
<!-- HOWTO debug print a path id --> |
1521 |
|
<!-- <pathconvert property="guava.testlib.classpath" refid="guava.testlib.classpath" /> --> |
1522 |
|
<!-- <echo message="guava.testlib.classpath=${guava.testlib.classpath}"/> --> |
1523 |
|
|
1524 |
|
<!-- <ivy:retrieve pathid="guava.tests.classpath" type="jar" inline="true" conf="*" pattern="${lib.dir}/[type]/[artifact].[ext]" --> |
1525 |
|
<!-- organisation="com.google.guava" module="guava-tests"/> --> |
1526 |
|
<!-- <get src="http://repo2.maven.org/maven2/com/google/guava/guava-tests/${guava.version}/guava-tests-${guava.version}-tests.jar" --> |
1527 |
|
<!-- dest="${lib.dir}/jar/guava-tests-tests.jar" usetimestamp="true"/> --> |
1528 |
|
<!-- <ivy:cachepath pathid="lib.path.id" inline="true" conf="*" type="*" --> |
1529 |
|
<!-- organisation="com.google.guava" module="guava-testlib" revision="${guava.version}"/> --> |
1530 |
|
|
1531 |
|
<!-- <test name="com.google.common.collect.testing.TestsForQueuesInJavaUtil"/> --> |
1532 |
|
<!-- <test name="com.google.common.collect.testing.TestsForListsInJavaUtil"/> --> |
1533 |
|
<!-- <test name="com.google.common.collect.testing.TestsForSetsInJavaUtil"/> --> |
1534 |
|
<!-- <test name="com.google.common.collect.testing.TestsForMapsInJavaUtil"/> --> |
1535 |
|
|
1536 |
|
<!-- <ivy:retrieve pathid="guava.testlib.classpath" --> |
1537 |
|
<!-- type="*" inline="true" conf="*(private),*(public)" --> |
1538 |
|
<!-- pattern="${guava.dir}/[artifact].[ext]" --> |
1539 |
|
<!-- organisation="com.google.guava" module="guava-testlib"/> --> |
1540 |
|
|
1541 |
|
<!-- Work around bug below by downloading guava-testlib-tests.jar "by hand": --> |
1542 |
|
<!-- https://issues.apache.org/jira/browse/IVY-1444 --> |
1543 |
|
<!-- maven tests artifacts cannot be downloaded because they are mapped to private configurations --> |
1544 |
|
|
1545 |
|
<target name="init-ivy"> |
1546 |
|
<get src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.4.0/ivy-2.4.0.jar" |
1547 |
|
dest="${build.dir}/ivy.jar" usetimestamp="true" skipexisting="true"/> |
1548 |
|
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" |
1549 |
|
classpath="${build.dir}/ivy.jar"/> |
1550 |
|
</target> |
1551 |
|
|
1552 |
|
<target name="guava-tests" depends="jar, init-ivy" |
1553 |
|
description="Guava tests run against jsr166 collections"> |
1554 |
|
<property name="guava.dir" value="${build.dir}/guava-testlib"/> |
1555 |
|
<mkdir dir="${guava.dir}"/> |
1556 |
|
<ivy:retrieve pathid="guava.testlib.classpath" |
1557 |
|
type="jar,bundle" inline="true" conf="default,master" |
1558 |
|
pattern="${guava.dir}/[artifact].[ext]" |
1559 |
|
organisation="com.google.guava" module="guava-testlib"/> |
1560 |
|
<property name="guava.version" value="21.0"/> |
1561 |
|
<get src="http://repo2.maven.org/maven2/com/google/guava/guava-testlib/${guava.version}/guava-testlib-${guava.version}-tests.jar" |
1562 |
|
dest="${guava.dir}/guava-testlib-tests.jar" usetimestamp="true"/> |
1563 |
|
<junit printsummary="true" showoutput="true" haltonfailure="true" |
1564 |
|
jvm="${java9}" fork="true"> |
1565 |
|
<jvmarg line="-ea -esa --patch-module java.base=${product.jar}"/> |
1566 |
|
<formatter type="brief"/> |
1567 |
|
<classpath> |
1568 |
|
<pathelement location="${guava.dir}/guava-testlib-tests.jar"/> |
1569 |
|
<path refid="guava.testlib.classpath"/> |
1570 |
|
</classpath> |
1571 |
|
|
1572 |
|
<!-- "6" in "OpenJdk6Tests" misleadingly means "6+" --> |
1573 |
|
<test name="com.google.common.collect.testing.OpenJdk6Tests"/> |
1574 |
|
</junit> |
1575 |
|
</target> |
1576 |
|
|
1577 |
</project> |
</project> |