author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 25 Jul 2018 08:23:35 +0000 | |
changeset 3878 | a0ff9ed74518 |
parent 3556 | 2d57170bb6d5 |
permissions | -rw-r--r-- |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
3545
c67aed4cfdbc
Tests: Do spawn a separate JVM when running tests using ant and real JVM
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3541
diff
changeset
|
2 |
<project name="stx.libjava.tests" default="compile" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant"> |
3327
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
3 |
<import file="build.auto.xml"/> |
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
4 |
|
3541
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
5 |
<path id="test.classpath"> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
6 |
<path refid="build.classpath"/> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
7 |
<pathelement path="${build.bin.dir}"/> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
8 |
<pathelement path="${build.bin-tests.dir}"/> |
3545
c67aed4cfdbc
Tests: Do spawn a separate JVM when running tests using ant and real JVM
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3541
diff
changeset
|
9 |
<pathelement path="${TOP}/libjava/tests/java/bin"/> |
3541
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
10 |
</path> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
11 |
|
3327
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
12 |
<target name="compile.classloader-tests-classes" extensionOf="compile.post"> |
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
13 |
<mkdir dir="classloader-tests-classes/bin"/> |
3327
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
14 |
<javac srcdir="classloader-tests-classes/src" |
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
15 |
destdir="classloader-tests-classes/bin" |
3878
a0ff9ed74518
Specify UTF-8 encoding for `.java` sources
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3556
diff
changeset
|
16 |
encoding="utf-8" |
3327
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
17 |
classpathref="build.classpath"/> |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
18 |
</target> |
3538
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
19 |
|
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
20 |
<target name="compile.INVOKEX" extensionOf="compile.post"> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
21 |
<mkdir dir="bin-tests-INVOKEX"/> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
22 |
|
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
23 |
<javac |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
24 |
debug="true" |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
25 |
debuglevel="lines,vars,source" |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
26 |
srcdir="src-tests-INVOKEX" |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
27 |
destdir="bin-tests-INVOKEX" |
3878
a0ff9ed74518
Specify UTF-8 encoding for `.java` sources
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3556
diff
changeset
|
28 |
encoding="utf-8" |
3538
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
29 |
classpathref="build.classpath"/> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
30 |
|
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
31 |
<delete> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
32 |
<fileset dir="bin-tests-INVOKEX"> |
3555
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
33 |
<include name="stx/libjava/tests/mocks/MissingMethodA.class"/> |
3538
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
34 |
</fileset> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
35 |
</delete> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
36 |
|
3555
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
37 |
<mkdir dir="bin-tests-INVOKEX-missing-methods"/> |
3538
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
38 |
<javac |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
39 |
debug="true" |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
40 |
debuglevel="lines,vars,source" |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
41 |
srcdir="src-tests-INVOKEX-missing-methods" |
3555
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
42 |
destdir="bin-tests-INVOKEX-missing-methods" |
3878
a0ff9ed74518
Specify UTF-8 encoding for `.java` sources
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3556
diff
changeset
|
43 |
encoding="utf-8" |
3538
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
44 |
classpathref="build.classpath"> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
45 |
</javac> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
46 |
|
3555
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
47 |
<!-- |
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
48 |
<copy file="bin-tests-INVOKEX-missing-methods/stx/libjava/tests/mocks/MissingMethodI.class" |
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
49 |
tofile="bin-tests-INVOKEX/stx/libjava/tests/mocks/MissingMethodI.class"/> |
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
50 |
--> |
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
51 |
<copy file="bin-tests-INVOKEX-missing-methods/stx/libjava/tests/mocks/MissingMethodA.class" |
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
52 |
tofile="bin-tests-INVOKEX/stx/libjava/tests/mocks/MissingMethodA.class"/> |
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
53 |
|
3538
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
54 |
</target> |
3327
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
55 |
|
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
56 |
<target name="clean.classloader-tests-classes" extensionOf="clean.post"> |
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
57 |
<delete dir="classloader-tests-classes/bin" /> |
2396
fadc6d7a2f5b
Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2353
diff
changeset
|
58 |
</target> |
3327
3f9968ddacf8
Ant build files refactoring (part 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3096
diff
changeset
|
59 |
|
3538
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
60 |
<target name="clean.INVOKEX" extensionOf="clean.post"> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
61 |
<delete dir="bin-tests-INVOKEX" /> |
3555
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
62 |
<delete dir="bin-tests-INVOKEX-missing-methods" /> |
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
63 |
</target> |
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
64 |
|
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
65 |
<target name="test.INVOKEX"> |
47da2d42a016
JavaLookup: Fixed JVM lookup to search interfaces as defined in JVM Spec
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3538
diff
changeset
|
66 |
<java classpath="${build.classpath.prereqs}:bin-tests-INVOKEX" classname="stx.libjava.tests.vm.INVOKEX"/> |
3538
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
67 |
</target> |
437fc55b3eed
Added tests for INVOKE? instruction when invoked method is missing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
68 |
|
3541
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
69 |
<target name="test.run.bin" extensionOf="test.run.post"> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
70 |
<mkdir dir="${test.report.dir}"/> |
3545
c67aed4cfdbc
Tests: Do spawn a separate JVM when running tests using ant and real JVM
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3541
diff
changeset
|
71 |
<junit fork="yes" failureproperty="test.failure"> |
c67aed4cfdbc
Tests: Do spawn a separate JVM when running tests using ant and real JVM
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3541
diff
changeset
|
72 |
<classpath refid="test.classpath"/> |
3541
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
73 |
<formatter type="plain"/> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
74 |
<batchtest todir="${test.report.dir}"> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
75 |
<fileset dir="${build.src.dir}"> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
76 |
<include name="**/*.java"/> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
77 |
<exclude name="stx/libjava/tests/mocks/**/*.java"/> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
78 |
</fileset> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
79 |
</batchtest> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
80 |
</junit> |
69805e2d87e6
Build files: added ant target `test` to build and run tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3336
diff
changeset
|
81 |
</target> |
3547
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
82 |
|
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
83 |
<target name="test.run.INVOKEX" extensionOf="test.run.post"> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
84 |
<mkdir dir="${test.report.dir}"/> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
85 |
<junit fork="yes" failureproperty="test.failure"> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
86 |
<classpath> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
87 |
<pathelement path="bin-tests-INVOKEX"/> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
88 |
<path refid="build.classpath"/> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
89 |
</classpath> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
90 |
<formatter type="plain"/> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
91 |
<batchtest todir="${test.report.dir}"> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
92 |
<fileset dir="src-tests-INVOKEX"> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
93 |
<include name="**/*.java"/> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
94 |
<exclude name="stx/libjava/tests/mocks/**/*.java"/> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
95 |
</fileset> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
96 |
</batchtest> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
97 |
</junit> |
23009d04bf51
Tests: Added test `stx.libjava.tests.vm.INVOKEX` to ant's `test` task.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3546
diff
changeset
|
98 |
</target> |
3878
a0ff9ed74518
Specify UTF-8 encoding for `.java` sources
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3556
diff
changeset
|
99 |
</project> |