cdt/cdt_6_0_x/org.eclipse.cdt.core.tests/test.xml
author dadubrow
Mon, 19 Jul 2010 14:32:19 -0500
changeset 142 241f43d93585
parent 37 c2bce6dd59e7
permissions -rw-r--r--
add mozilla plugins
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     1
<?xml version="1.0"?>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     2
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     3
<project name="testsuite" default="run" basedir=".">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     4
  <!-- The property ${eclipse-home} should be passed into this script -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     5
  <!-- Set a meaningful default value for when it is not. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     6
  <property name="eclipse-home" value="${basedir}"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     7
  
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     8
  <!-- This is the default name of the org.eclipse.test plugin. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     9
  <!-- We need to be able to override this for the case where the -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    10
  <!-- org.eclipse.test plugin was build as part of a feature and -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    11
  <!-- will have a name similar to org.eclipse.test_2.1.0  -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    12
  <property name="org.eclipse.test" value="org.eclipse.test"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    13
  <!-- sets the properties eclipse-home, and library-file -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    14
  <property name="plugin-name" value="org.eclipse.cdt.core.tests"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    15
  <property name="library-file"
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    16
            value="${eclipse-home}/plugins/${org.eclipse.test}/library.xml"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    17
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    18
  <!-- This target holds all initialization code that needs to be done for -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    19
  <!-- all tests that are to be run. Initialization for individual tests -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    20
  <!-- should be done within the body of the suite target. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    21
  <target name="init">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    22
    <tstamp/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    23
    <delete>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    24
      <fileset dir="${eclipse-home}" includes="org*.xml"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    25
    </delete>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    26
  </target>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    27
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    28
  <!-- This target defines the tests that need to be run. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    29
  <target name="suite">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    30
    <property name="cdt-folder" 
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    31
              value="${eclipse-home}/cdt_folder"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    32
    <delete dir="${cdt-folder}" quiet="true"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    33
    <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    34
      <property name="data-dir" value="${cdt-folder}"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    35
      <property name="plugin-name" value="${plugin-name}"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    36
      <property name="classname" 
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    37
                value="org.eclipse.cdt.core.suite.AutomatedIntegrationSuite"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    38
    </ant>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    39
  </target>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    40
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    41
  <!-- This target holds code to cleanup the testing environment after -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    42
  <!-- after all of the tests have been run. You can use this target to -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    43
  <!-- delete temporary files that have been created. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    44
  <target name="cleanup">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    45
  </target>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    46
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    47
  <!-- This target runs the test suite. Any actions that need to happen -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    48
  <!-- after all the tests have been run should go here. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    49
  <target name="run" depends="init,suite,cleanup">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    50
    <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    51
      <property name="includes" value="org*.xml"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    52
      <property name="output-file" value="${plugin-name}.xml"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    53
    </ant>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    54
  </target>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    55
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    56
</project>