|
| 1 | +<?xml version="1.0"?> |
| 2 | +<project name="Core Resources Save Participant 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="saveparticipant_location" value="${eclipse-home}/core_resources_saveparticipant_sniff_folder"/> |
| 9 | + <property name="plugin-name" value="org.eclipse.core.tests.resources.saveparticipant"/> |
| 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="${saveparticipant_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 | + <target name="SaveParticipantTests" depends="init,cleanup"> |
| 34 | + <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}"> |
| 35 | + <property name="data-dir" value="${saveparticipant_location}"/> |
| 36 | + <property name="plugin-name" value="${plugin-name}"/> |
| 37 | + <property name="classname" value="org.eclipse.core.tests.resources.saveparticipant.SaveManagerTest"/> |
| 38 | + </ant> |
| 39 | + </target> |
| 40 | + |
| 41 | + <!-- This target defines the tests that need to be run. --> |
| 42 | + <target name="suite" depends="SaveParticipantTests"/> |
| 43 | + |
| 44 | + </project> |
0 commit comments