db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oliv...@apache.org
Subject cvs commit: db-ojb build.xml
Date Fri, 10 Oct 2003 10:55:27 GMT
oliverm     2003/10/10 03:55:27

  Modified:    .        build.xml
  Log:
  ant target for running sql count tests.  Use 
   ant -DuseP6Spy=true junit-sqlcount-no-compile 
  to run the tests.
  
  Revision  Changes    Path
  1.106     +25 -1     db-ojb/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/build.xml,v
  retrieving revision 1.105
  retrieving revision 1.106
  diff -u -r1.105 -r1.106
  --- build.xml	24 Sep 2003 19:57:14 -0000	1.105
  +++ build.xml	10 Oct 2003 10:55:27 -0000	1.106
  @@ -836,6 +836,30 @@
           </junit>
       </target>
   
  +  <target name="junit-sqlcount-no-compile"
  +    	    depends="prepare, prepare-testdb, junit-sqlcount-no-compile-no-prepare, junit-sqlcount-impossible"
  +          description="Run the sql statement count tests"
  +    />
  +
  +  <target name="junit-sqlcount-impossible" depends="checkP6Spy" unless="shouldUseP6Spy">
  + 		<echo message="junit-sqlcount does not run without p6spy.  Please set ant property
-DuseP6Spy=true."/>
  +  </target>
  +
  +  <!-- run the sql count tests.-->
  +  <!-- todo: maybe let them run in an extra directory -->
  +  <target name="junit-sqlcount-no-compile-no-prepare" depends="checkP6Spy" if="shouldUseP6Spy">
  +    <junit printsummary="yes" fork="yes" dir="${build.test}/ojb">
  +        	<jvmarg value="-DOJB.bootLogLevel=INFO" />
  +            <classpath refid="runtime-classpath"/>
  +            <formatter type="plain" />
  +            <formatter type="xml" />
  +            <test name="org.apache.ojb.broker.sqlcount.AllTests"
  +                  haltonfailure="no"
  +                  outfile="target/test/tests-sqlcount" >
  +            </test>
  +    </junit>
  +  </target>
  +
   	<target name="junit-report" depends="" description="create JUnit HTML report, requires
Xalan">
   		<junitreport todir="target/test">
   			<fileset dir="target/test">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message