cdt/cdt_6_0_x/org.eclipse.cdt.debug.ui.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
  <!-- sets the properties eclipse-home, and library-file -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     9
  <property name="plugin-name" value="org.eclipse.cdt.debug.ui.tests"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    10
  <property name="library-file"
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    11
            value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    12
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    13
  <!-- This target holds all initialization code that needs to be done for -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    14
  <!-- all tests that are to be run. Initialization for individual tests -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    15
  <!-- should be done within the body of the suite target. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    16
  <target name="init">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    17
    <tstamp/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    18
    <delete>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    19
      <fileset dir="${eclipse-home}" includes="org*.xml"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    20
    </delete>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    21
  </target>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    22
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    23
  <!-- This target defines the tests that need to be run. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    24
  <target name="suite">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    25
    <property name="cdt-folder" 
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    26
              value="${eclipse-home}/cdt_folder"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    27
    <delete dir="${cdt-folder}" quiet="true"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    28
    <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    29
      <property name="data-dir" value="${cdt-folder}"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    30
      <property name="plugin-name" value="${plugin-name}"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    31
      <property name="classname" 
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    32
                value="org.eclipse.cdt.debug.core.tests.AllDebugTests"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    33
    </ant>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    34
  </target>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    35
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    36
  <!-- This target holds code to cleanup the testing environment after -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    37
  <!-- after all of the tests have been run. You can use this target to -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    38
  <!-- delete temporary files that have been created. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    39
  <target name="cleanup">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    40
  </target>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    41
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    42
  <!-- This target runs the test suite. Any actions that need to happen -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    43
  <!-- after all the tests have been run should go here. -->
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    44
  <target name="run" depends="init,suite,cleanup">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    45
    <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    46
      <property name="includes" value="org*.xml"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    47
      <property name="output-file" value="${plugin-name}.xml"/>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    48
    </ant>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    49
  </target>
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    50
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    51
</project>