ovidiu      02/04/04 17:47:06

  Added:       src/scratchpad/schecoon/tests/anteater all-tests.xml
  Log:
  Created. Automatically detects all the Anteater tests in the current
  directory and runs them.
  
  Revision  Changes    Path
  1.1                  xml-cocoon2/src/scratchpad/schecoon/tests/anteater/all-tests.xml
  
  Index: all-tests.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  
  <!--
  
    Automatically detects all the Anteater tests in the current
    directory and runs them.
  
    Author: Ovidiu Predescu "[EMAIL PROTECTED]"
    Date: April 4, 2002
  
    Description:
  
    To write a new Anteater test, just create a new Ant XML file and
    define a target whose name is the same as the filename, except for
    the .xml suffix. Then go in the top level directory of Schecoon and
    type:
  
    ./build.sh test
  
    The newly added test file will be picked up and executed
    auto-magically.
  
    -->
  
  <project name="all-tests" default="all">
  
    <taskdef resource="META-INF/Anteater.tasks"/>
    <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
  
    <property name="schecoon" value="http://${host}:${port}/${base}"/>
  
    <target name="all">
      <foreach target="runtest" param="name">
        <fileset dir=".">
          <include name="*.xml"/>
          <exclude name="all-tests.xml"/>
        </fileset>
      </foreach>
    </target>
  
    <target name="runtest">
     <basename property="target" file="${name}" suffix=".xml"/>
     <echo message="running test ${target} in dir ${basedir}"/>
     <ant antfile="${target}.xml" dir="${basedir}" target="${target}" 
inheritAll="yes"/>
    </target>
  
  </project>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to