org.eclipse.compare.tests/test.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (download) (as text) (annotate)
Tue Mar 29 10:49:48 2005 UTC (4 years, 8 months ago) by aweinand
Branch: MAIN
CVS Tags: I20080604, I20071210, v20050429_perf30, I20090323-1100, v20051017, v20051010, v20050429_perf213, v20050422, v20050429, I20060605-1430, R3_2_1, R3_2_2, I20061120, v20060328, I20060911, I20090407-0800, Root_perf_213, v20050329_perf301, I20090224-0800, v20051114, v20050329_perf30, I20090303-0800, I20070316, Root_branch_20090126_LocalDiff, R3_3, I20080204-0800, I20081014, I20090126-0800, R3_4, R3_5, R3_1, R3_2, v20051213, I20080716, v20050329, I20090714-0800, v20050609, I20090414-0755, pre_R3_3, I20090113, R3_3_1_1, I20090309-1300, I20071001, I20090421, I20090916-0800, v20050503, I20080122, v20050509, v20060111, R3_5_1, I20080422, I20090210-0800, v20060605, I20070202, v20050429_perf301, I20090527-0620, I20090217-0800, I20080819, I20061204, I20061208, I20071023, I20081216, R3_1_2, I20070528, R3_1_1, I20070522, R3_3_1, R3_3_2, I20080909, I20070910, I20070914, I20080612, v20060509, R3_4_2, R3_4_1, I20070516, v20050329_perf213, HEAD
Branch point for: perf_213, branch_20090126_LocalDiff
Changes since 1.2: +19 -2 lines
added perfromance tests
<?xml version="1.0" encoding="UTF-8"?>

<project name="testsuite" default="run" basedir=".">
  <!-- 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}/../.."/>

  <!-- sets the properties plugin-name, and library-file -->
  <property name="plugin-name" value="org.eclipse.compare.tests"/>
  <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="compare-folder" value="${eclipse-home}/compare_folder"/>
    <delete dir="${compare-folder}" quiet="true"/>
    <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
      <property name="data-dir" value="${compare-folder}"/>
      <property name="plugin-name" value="${plugin-name}"/>
      <property name="classname" value="org.eclipse.compare.tests.AllTests"/>
    </ant>
  </target>

  <!-- This target defines the performance tests that need to be run. -->
  <target name="performance-suite">
    <property name="compare-performance-folder" value="${eclipse-home}/compare_performance_folder"/>
    <delete dir="${compare-performance-folder}" quiet="true"/>
    <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
      <property name="data-dir" value="${compare-performance-folder}"/>
      <property name="plugin-name" value="${plugin-name}"/>
      <property name="classname" value="org.eclipse.compare.tests.performance.PerformanceTestSuite"/>
    </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 suite. 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>

</project>