1 | <?xml version="1.0"?>
|
---|
2 |
|
---|
3 | <project name="junit-test" basedir="." default="outputTests">
|
---|
4 | <property name="showoutput" value="false" />
|
---|
5 | <path id="test">
|
---|
6 | <pathelement path="${java.class.path}" />
|
---|
7 | <pathelement location="../../../../../build/testcases" />
|
---|
8 | </path>
|
---|
9 |
|
---|
10 | <target name="testForkedOutput">
|
---|
11 | <junit fork="yes" haltonerror="true" haltonfailure="true"
|
---|
12 | showoutput="${showoutput}">
|
---|
13 | <test name="org.example.junit.Output" />
|
---|
14 | <classpath refid="test" />
|
---|
15 | </junit>
|
---|
16 | </target>
|
---|
17 |
|
---|
18 | <target name="testNonForkedOutput">
|
---|
19 | <junit fork="false" haltonerror="true" haltonfailure="true"
|
---|
20 | showoutput="${showoutput}">
|
---|
21 | <test name="org.example.junit.Output" />
|
---|
22 | <classpath refid="test" />
|
---|
23 | </junit>
|
---|
24 | </target>
|
---|
25 |
|
---|
26 | <target name="testForkedThreadedOutput">
|
---|
27 | <junit fork="yes" haltonerror="true" haltonfailure="true"
|
---|
28 | showoutput="${showoutput}">
|
---|
29 | <test name="org.example.junit.ThreadedOutput" />
|
---|
30 | <classpath refid="test" />
|
---|
31 | </junit>
|
---|
32 | </target>
|
---|
33 |
|
---|
34 | <target name="testNonForkedThreadedOutput">
|
---|
35 | <junit fork="false" haltonerror="true" haltonfailure="true"
|
---|
36 | showoutput="${showoutput}">
|
---|
37 | <test name="org.example.junit.ThreadedOutput" />
|
---|
38 | <classpath refid="test" />
|
---|
39 | </junit>
|
---|
40 | </target>
|
---|
41 |
|
---|
42 | <target name="outputTests"
|
---|
43 | depends="testForkedOutput,testNonForkedOutput,testForkedThreadedOutput,testNonForkedThreadedOutput" />
|
---|
44 |
|
---|
45 | </project> |
---|