[jboss-cvs] JBoss Messaging SVN: r3001 - in trunk/tests: src/org/jboss/test/messaging and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Aug 10 03:50:58 EDT 2007
Author: timfox
Date: 2007-08-10 03:50:58 -0400 (Fri, 10 Aug 2007)
New Revision: 3001
Added:
trunk/tests/src/org/jboss/test/messaging/DropTablesTest.java
Modified:
trunk/tests/build.xml
Log:
Added special test so we can drop tables on Hudson
Modified: trunk/tests/build.xml
===================================================================
--- trunk/tests/build.xml 2007-08-10 07:23:35 UTC (rev 3000)
+++ trunk/tests/build.xml 2007-08-10 07:50:58 UTC (rev 3001)
@@ -890,6 +890,43 @@
</junit>
</target>
+ <target name="drop-tables" depends="tests-jar, prepare-testdirs, clear-test-logs"
+ description="Drops all tables">
+
+ <echo message=""/>
+ <echo message="Running invm tests, fork=${junit.fork}, junit.batchtest.fork=${junit.batchtest.fork}"/>
+ <echo message=""/>
+
+ <junit printsummary="${junit.printsummary}"
+ fork="on"
+ forkMode="once"
+ includeantruntime="${junit.includeantruntime}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ showoutput="${junit.showoutput}"
+ timeout="${junit.timeout}">
+
+ <sysproperty key="remote" value="false"/>
+ <sysproperty key="module.output" value="${tests.output}"/>
+ <sysproperty key="test.database" value="${functional.tests.database}"/>
+ <sysproperty key="test.logfile.suffix" value="invm"/>
+ <sysproperty key="build.lib" value="${build.lib}"/>
+ <sysproperty key="objectstore.dir" value="${objectstore.dir}"/>
+ <jvmarg value="-Xmx512M"/>
+ <!--
+ <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=antjunit"/>
+ -->
+ <classpath refid="test.execution.classpath"/>
+ <formatter type="xml" usefile="${junit.formatter.usefile}"/>
+ <test name="org.jboss.test.messaging.DropTablesTest"
+ fork="false"
+ todir="${junit.batchtest.todir}"
+ haltonfailure="${junit.test.haltonfailure}"
+ haltonerror="${junit.test.haltonerror}">
+ </test>
+ </junit>
+ </target>
+
<target name="test" depends="tests-jar, prepare-testdirs, clear-test-logs"
description="Runs a single test, specified by its FQ class name via 'test.classname'">
Added: trunk/tests/src/org/jboss/test/messaging/DropTablesTest.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/DropTablesTest.java (rev 0)
+++ trunk/tests/src/org/jboss/test/messaging/DropTablesTest.java 2007-08-10 07:50:58 UTC (rev 3001)
@@ -0,0 +1,44 @@
+package org.jboss.test.messaging;
+
+import org.jboss.test.messaging.tools.container.ServiceContainer;
+
+/**
+ *
+ * This test only exists so we have a way of dropping the tables on Hudson for QA runs
+ *
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ * @version <tt>$Revision: $</tt>10 Aug 2007
+ *
+ * $Id: $
+ *
+ */
+public class DropTablesTest extends MessagingTestCase
+{
+
+ public DropTablesTest(String name)
+ {
+ super(name);
+ }
+
+ public void testDropTables() throws Exception
+ {
+ ServiceContainer sc = null;
+
+ try
+ {
+ sc = new ServiceContainer("all");
+
+ sc.start();
+
+ sc.dropTables();
+ }
+ finally
+ {
+ if (sc != null)
+ {
+ sc.stop();
+ }
+ }
+ }
+
+}
More information about the jboss-cvs-commits
mailing list