org.eclipse.core.tests.runtime/test.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Wed Jan 11 18:27:51 2006 UTC (3 years, 10 months ago) by johna
Branch: MAIN
CVS Tags: v20091116, v20080324-1725, v20081124, R3_3_1_1, v20070202, v20060808, v20060220, v20060227, I20060605-1430, v20060130, R3_2_1, v20060215a, R3_2_2, v20070426, v20081211-0735, v20080201, v20060601a, v20090213, v20080121, v20061030, v20090119, v20060418, v20091125, v20081006, v20060411, v20090817, v20090520, v20080211, v20060710, v20090203, v20080114, R3_3, v20081010, v20061027, v20090126, v20060320, R35x_v20090807-1100, R3_4, R3_5, R3_2, v20091123, v20080613-1240, v20081117, v20080107, v20081215, v20080310, v20080317, v20070316, v20090727a, v20070312, v20090302, v20070709, pre_R3_3, v20060626, v20081201, v20090425, v20090420, v20090308, v20080303, v20090306, v20070409, v20070717, v20060116, v20081029-1100, R3_5_1, v20060224, v20060603, v20071207, v20090105, v20070330, v20071126, v20060619, v20090720, v20090407-0745, v20060510, v20080613-1033, v20090310-1800, v20090911, v20090223, v20060313, v20070730, v20071112, v20091125-1620, v20060412-1700, v20070226, v20070423, v20060209, R3_3_1, R3_3_2, v20061106, v20060206, v20070910, v20070916, v20080825, R3_4_2, R3_4_1, v20090925, v20060426, v20090921, v20080224, v20081020, v20070501, v20081026, v20071105, v20090727, v20061113, v20070827, v20060223_M5a, HEAD
Branch point for: M5_32_branch, perf_31x, R3_5_maintenance
Bug 123111 Request to create test.xml for each of osgi, runtime and resources test plug-ins
<?xml version="1.0"?>
<project name="Core Resources Automated Tests" default="run" basedir=".">

  <!-- The property ${eclipse-home} should be passed into this script -->
  <!-- sets the properties eclipse-home, and library-file -->
  <property name="eclipse-home" value="${basedir}/../../"/>
  <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>
  <property name="runtime_location" value="${eclipse-home}/core_runtime_sniff_folder"/>
  <property name="plugin-name" value="org.eclipse.core.tests.runtime"/>

  <!-- 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/>
  </target>

  <!-- This target holds code to cleanup the testing environment after the tests -->
  <!-- have been run. You can use this to delete temporary files that are created. -->
  <target name="cleanup">
    <delete dir="${runtime_location}" quiet="true"/>
    <delete dir="${resources_location}" quiet="true"/>
    <delete dir="${osgi_location}" quiet="true"/>    
  </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. Any actions that need to happen after all -->
  <!-- the tests have been run should go here. -->
  <target name="performance" depends="init,performance-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>  

  <target name="RuntimeTests" depends="init,cleanup">
    <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
      <property name="data-dir" value="${runtime_location}"/>
      <property name="plugin-name" value="org.eclipse.core.tests.runtime"/>
      <property name="classname" value="org.eclipse.core.tests.runtime.AutomatedTests"/>
    </ant>
  </target>  

  <target name="RuntimePerformanceTests" depends="init,cleanup">
    <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
      <property name="data-dir" value="${runtime_location}"/>
      <property name="plugin-name" value="org.eclipse.core.tests.runtime"/>
      <property name="classname" value="org.eclipse.core.tests.runtime.perf.AllTests"/>
    </ant>
  </target>  

    
  <!-- This target defines the tests that need to be run. -->
  <target name="suite" depends="RuntimeTests"/>  
  
  <!-- This target defines the performance tests that need to be run. -->
  <target name="performance-suite" depends="RuntimePerformanceTests"/>  
	
 </project>