| 1 |
<?xml version="1.0"?> |
| 2 |
<project name="p2 Automated Tests" default="run" basedir="."> |
| 3 |
|
| 4 |
<!-- The property ${eclipse-home} should be passed into this script --> |
| 5 |
<!-- sets the properties eclipse-home, and library-file --> |
| 6 |
<property name="eclipse-home" value="${basedir}/../../" /> |
| 7 |
<property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test/library.xml" /> |
| 8 |
<property name="p2discovery_location" value="${eclipse-home}/p2_discovery_data_dir" /> |
| 9 |
<property name="plugin-name" value="org.eclipse.equinox.p2.tests.discovery" /> |
| 10 |
|
| 11 |
<!-- This target holds all initialization code that needs to be done for --> |
| 12 |
<!-- all tests that are to be run. Initialization for individual tests --> |
| 13 |
<!-- should be done within the body of the suite target. --> |
| 14 |
<target name="init"> |
| 15 |
<tstamp /> |
| 16 |
</target> |
| 17 |
|
| 18 |
<!-- This target holds code to cleanup the testing environment after the tests --> |
| 19 |
<!-- have been run. You can use this to delete temporary files that are created. --> |
| 20 |
<target name="cleanup"> |
| 21 |
<delete dir="${p2discovery_location}" quiet="true" /> |
| 22 |
</target> |
| 23 |
|
| 24 |
<!-- This target runs the test suite. Any actions that need to happen after all --> |
| 25 |
<!-- the tests have been run should go here. --> |
| 26 |
<target name="run" depends="init,suite,cleanup"> |
| 27 |
<ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> |
| 28 |
<property name="includes" value="org*.xml" /> |
| 29 |
<property name="output-file" value="${plugin-name}.xml" /> |
| 30 |
</ant> |
| 31 |
</target> |
| 32 |
|
| 33 |
<!-- This target runs the performance test suites. Any actions that need to happen after all --> |
| 34 |
<!-- the tests have been run should go here. --> |
| 35 |
<!-- |
| 36 |
<target name="performance" depends="init,cleanup"> |
| 37 |
<ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> |
| 38 |
<property name="includes" value="org*.xml" /> |
| 39 |
<property name="output-file" value="${plugin-name}.xml" /> |
| 40 |
</ant> |
| 41 |
</target> |
| 42 |
--> |
| 43 |
|
| 44 |
<target name="p2Tests" depends="init,cleanup"> |
| 45 |
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> |
| 46 |
<property name="data-dir" value="${p2discovery_location}" /> |
| 47 |
<property name="plugin-name" value="org.eclipse.equinox.p2.tests.discovery" /> |
| 48 |
<property name="classname" value="org.eclipse.equinox.p2.discovery.tests.AllDiscoveryTests" /> |
| 49 |
</ant> |
| 50 |
</target> |
| 51 |
|
| 52 |
<!-- This target defines the tests that need to be run. --> |
| 53 |
<target name="suite" depends="p2Tests" /> |
| 54 |
|
| 55 |
</project> |