1<?xml version="1.0"?> 2<project name="Equinox DS 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="osgi_location" value="${eclipse-home}/ds_sniff_folder"/> 9 <property name="plugin-name" value="org.eclipse.equinox.ds.tests"/> 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="${osgi_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,performance-suite,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="DSTests" depends="init,cleanup"> 45 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}"> 46 <property name="data-dir" value="${osgi_location}"/> 47 <property name="plugin-name" value="org.eclipse.equinox.ds.tests"/> 48 <property name="classname" value="org.eclipse.equinox.ds.tests.AllTests"/> 49 </ant> 50 </target> 51 52 <target name="DSPerformanceTests"> 53 <!-- TODO --> 54 </target> 55 56 <!-- This target defines the tests that need to be run. --> 57 <target name="suite" depends="DSTests"/> 58 59 <!-- This target defines the performance tests that need to be run. --> 60 <!-- 61 <target name="performance-suite" depends="DSPerformanceTests"/> 62 --> 63 </project> 64