User: d_jencks
  Date: 01/09/15 08:08:09

  Modified:    .        build.xml
  Log:
  Added one-test target to execute exactly one test case class.
  
  Revision  Changes    Path
  1.23      +43 -2     jbosstest/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/build.xml,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- build.xml 2001/09/15 03:26:06     1.22
  +++ build.xml 2001/09/15 15:08:09     1.23
  @@ -10,7 +10,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.22 2001/09/15 03:26:06 d_jencks Exp $ -->
  +<!-- $Id: build.xml,v 1.23 2001/09/15 15:08:09 d_jencks Exp $ -->
   
   <project default="main" name="JBoss/Testsuite">
   
  @@ -1710,7 +1710,8 @@
   
   
     <!--
  -     | Run a single testcase by specifing the test name in -Dtest=
  +     | Run testcases in a single directory by specifing the test directory
  +     | name in -Dtest=dirname in tests/dirname/test/**TestCase.class
      -->
   
     <target name="test" depends="jars" if="test"
  @@ -1743,6 +1744,46 @@
   
           <fileset dir="${build.classes}">
             <include name="org/jboss/test/${test}/test/*TestCase.class"/>
  +        </fileset>
  +      </batchtest>
  +    </junit>
  +  </target>
  +
  +  <!--
  +     | Run a single testcase by specifing the test name in -Dtest=
  +     | Here you specify the testcase class, not the directory
  +   -->
  +
  +  <target name="one-test" depends="jars" if="test"
  +       description="Execute a single test.">
  +    <mkdir dir="${build.reports}"/>
  +    <junit dir="${module.output}"
  +        printsummary="${junit.printsummary}" 
  +        haltonerror="${junit.haltonerror}" 
  +        haltonfailure="${junit.haltonfailure}" 
  +        fork="${junit.fork}"
  +        timeout="${junit.timeout}"
  +        jvm="${junit.jvm}">
  +
  +      <jvmarg value="${junit.jvm.options}"/>
  +      <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/>
  +
  +      <classpath>
  +        <pathelement location="${build.classes}"/>
  +        <pathelement location="${build.resources}"/>
  +        <path refid="javac.classpath"/>
  +      </classpath>
  +
  +      <formatter type="${junit.formatter.type}"
  +              usefile="${junit.formatter.usefile}"/>
  +
  +      <batchtest todir="${build.reports}"
  +              haltonerror="${junit.batchtest.haltonerror}" 
  +              haltonfailure="${junit.batchtest.haltonfailure}" 
  +              fork="${junit.batchtest.fork}">
  +
  +        <fileset dir="${build.classes}">
  +          <include name="org/jboss/test/*/test/${test}.class"/>
           </fileset>
         </batchtest>
       </junit>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to