org.eclipse.ant.tests.ui/test.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (download) (as text) (annotate)
Mon Aug 30 20:39:12 2004 UTC (5 years, 2 months ago) by darins
Branch: MAIN
CVS Tags: v20050512a, v20060925, v20040919, v20090504, v20060803, v20050425, R3_3_1_1, v20060220, v20060227, I20060605-1430, v20060130, R3_2_1, v20041018, R3_2_2, v20070426, v20041212, v20060403, v20091023, v20040906, v20050103, v20050411, v20090706, v20090126-0950, v20091028_r34x_264388, v20041129, v20041004, v20050124a, v20060216a, v20041122, v20060123, v20050214, v20060411, v20081103, v20040913, v20050418, bug_264338_pre_branch, v20080407, v20050815, v20041031, v20050616, v20060328, v20090428-1200, v20060326, v20060327, v20060320, R3_4, R3_5, R3_1, R3_2, R3_3, v20050207, v20080108, v20050323, v20081117, v20050328, v20050124, v20080318, v20050608, v20041025, v20060313, v20050509, v20070312, v20050508, pre_R3_3, v20041103, v20070416, Root_R3_4_bug_264338, v20080707, v20091012, v20090428, v20050131, v20080425, v20090126-0900, v20050502, v20050506, v20051128, v20070128, v20061003, v20050110, v20041115, R3_5_1, v20091008-1330, v20060918, v20050301, v20060605, v20090817, v20050516, v20041215, v20060510, v20080818, v20080721, v20080723, v20050314, v20060109, v20040830, R3_1_2, v20050525, R3_1_1, v20041206a, v20080529, R3_3_1, R3_3_2, v20070427, v20060502, v20050117, v20050228, v20041108, R3_4_2, R3_4_1, v20060426, v20070110, v20041206, v20040927, v20050214a, v20060216, v20060210, v20050609a, HEAD
Branch point for: R3_4_bug_264338
Changes since 1.4: +7 -3 lines
Filling in preformance target details
<?xml version="1.0"?>

<project name="testsuite" default="run" basedir=".">
  <!-- sets the properties eclipse-home, and library-file -->
  <!-- The property ${eclipse-home} should be passed into this script -->
  <!-- Set a meaningful default value for when it is not. -->
  <property name="eclipse-home" value="${basedir}\..\.."/>
<property name="plugin-name" value="org.eclipse.ant.tests.ui"/>
  <property name="library-file"
            value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>
 
  <!-- This target holds all initialization code that needs to be done for -->
  <!-- all tests that are to be run. Initialization for individual tests -->
  <!-- should be done within the body of the suite target. -->
  <target name="init">
    <tstamp/>
    <delete>
      <fileset dir="${eclipse-home}" includes="org*.xml"/>
    </delete>
  </target>

  <!-- This target defines the tests that need to be run. -->
  <target name="suite">
    <property name="jdt-folder" 
              value="${eclipse-home}/jdt_folder"/>
    <delete dir="${jdt-folder}" quiet="true"/>
    <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
      <property name="data-dir" value="${jdt-folder}"/>
      <property name="plugin-name" value="${plugin-name}"/>
      <property name="classname" 
                value="org.eclipse.ant.tests.ui.testplugin.AntUITests"/>
    </ant>
  </target>
	
 <!-- This target defines the performance tests that need to be run. -->
	  <target name="perfsuite">
	    <property name="jdt-folder" 
	              value="${eclipse-home}/jdt_folder"/>
	    <delete dir="${jdt-folder}" quiet="true"/>
	    <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
	      <property name="data-dir" value="${jdt-folder}"/>
	      <property name="plugin-name" value="${plugin-name}"/>
	      <property name="classname" 
	                value="org.eclipse.ant.tests.ui.testplugin.AntUIPerformanceTests"/>
	    </ant>
	  </target>

  <!-- This target holds code to cleanup the testing environment after -->
  <!-- after all of the tests have been run. You can use this target to -->
  <!-- delete temporary files that have been created. -->
  <target name="cleanup">
  </target>

  <!-- This target runs the test suite. Any actions that need to happen -->
  <!-- after all the tests have been run should go here. -->
  <target name="run" depends="init,suite,cleanup">
    <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
      <property name="includes" value="org*.xml"/>
      <property name="output-file" value="${plugin-name}.xml"/>
    </ant>
  </target>

  <!--This target runs the performance test suites and collects results.-->
  <target name="performance" depends="init, perfsuite, cleanup">
  	<ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
		<property name="includes" value="org*.xml"/>
		<property name="output-file" value="${plugin-name}.xml"/>
	</ant>
  </target>
	
</project>