|
@@ -5,7 +5,6 @@
|
5
|
5
|
<property name="clover.jar" location="lib/clover.jar"/>
|
6
|
6
|
<taskdef resource="cloverlib.xml" classpath="${clover.jar}"/>
|
7
|
7
|
<taskdef resource="cloverjunitlib.xml" classpath="${clover.jar}"/>
|
8
|
|
- <available file="/usr/bin/xvfb-run" property="has.xvfb"/>
|
9
|
8
|
|
10
|
9
|
<condition property="clover.installed">
|
11
|
10
|
<and>
|
|
@@ -82,41 +81,6 @@
|
82
|
81
|
</junitreport>
|
83
|
82
|
</target>
|
84
|
83
|
|
85
|
|
- <target name="test" depends="check-use-xvfb, -test-xvfb, -test-no-xvfb"/>
|
86
|
|
-
|
87
|
|
- <target name="check-use-xvfb">
|
88
|
|
- <condition property="use.xvfb">
|
89
|
|
- <and>
|
90
|
|
- <not>
|
91
|
|
- <equals arg1="${xvfb.disable}" arg2="true" />
|
92
|
|
- </not>
|
93
|
|
- <equals arg1="${has.xvfb}" arg2="true" />
|
94
|
|
- </and>
|
95
|
|
- </condition>
|
96
|
|
- </target>
|
97
|
|
-
|
98
|
|
- <target name="-test-xvfb" if="use.xvfb">
|
99
|
|
- <exec executable="/usr/bin/xvfb-run">
|
100
|
|
- <arg value="-a"/>
|
101
|
|
- <arg value="-s"/>
|
102
|
|
- <arg value="-screen 0 1280x1024x24"/>
|
103
|
|
- <arg value="-w"/>
|
104
|
|
- <arg value="5"/>
|
105
|
|
- <arg value="/usr/bin/ant"/>
|
106
|
|
- <arg value="do-xvfb-tests"/>
|
107
|
|
- </exec>
|
108
|
|
- </target>
|
109
|
|
-
|
110
|
|
- <target name="do-xvfb-tests" depends="with.clover,do-real-test,clover.snapshot"/>
|
111
|
|
-
|
112
|
|
- <target name="-test-no-xvfb" unless="use.xvfb">
|
113
|
|
- <antcall>
|
114
|
|
- <target name="with.clover"/>
|
115
|
|
- <target name="do-real-test"/>
|
116
|
|
- <target name="clover.snapshot"/>
|
117
|
|
- </antcall>
|
118
|
|
- </target>
|
119
|
|
-
|
120
|
84
|
<target name="test-html" depends="with.clover,compile-test,test,clover.html,clover.snapshot"
|
121
|
85
|
description="Run tests and generate a Clover HTML report."/>
|
122
|
86
|
<target name="test-xml" depends="with.clover,compile-test,test,clover.xml,clover.snapshot"
|