[jboss-cvs] JBossAS SVN: r97282 - in trunk/testsuite: imports and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 2 03:17:01 EST 2009


Author: istudens at redhat.com
Date: 2009-12-02 03:17:01 -0500 (Wed, 02 Dec 2009)
New Revision: 97282

Added:
   trunk/testsuite/imports/config/tests-jts.xml
Modified:
   trunk/testsuite/build.xml
   trunk/testsuite/imports/config/configs.xml
   trunk/testsuite/imports/server-config.xml
Log:
added smoke tests for the JTS Transactions, JBAS-6492

Modified: trunk/testsuite/build.xml
===================================================================
--- trunk/testsuite/build.xml	2009-12-02 07:44:15 UTC (rev 97281)
+++ trunk/testsuite/build.xml	2009-12-02 08:17:01 UTC (rev 97282)
@@ -1237,6 +1237,7 @@
       <antcall target="pooled-invoker-tests" inheritRefs="true"/>
       <antcall target="tests-clustered-profileservice" inheritRefs="true"/>
       <antcall target="tests-web-profile" inheritRefs="true"/>
+      <antcall target="tests-jts" inheritRefs="true"/>
    	
       <!-- JBAS-7247 classloader leak tests have been moved out of this
            target; see target tests-all-classloader-leak -->

Modified: trunk/testsuite/imports/config/configs.xml
===================================================================
--- trunk/testsuite/imports/config/configs.xml	2009-12-02 07:44:15 UTC (rev 97281)
+++ trunk/testsuite/imports/config/configs.xml	2009-12-02 08:17:01 UTC (rev 97282)
@@ -13,5 +13,6 @@
 <import file="tests-crash-recovery.xml"/>
 <import file="tests-bootstrap-dependencies.xml"/>
 <import file="tests-password-mask.xml"/>
+<import file="tests-jts.xml"/>
 
 </project>

Added: trunk/testsuite/imports/config/tests-jts.xml
===================================================================
--- trunk/testsuite/imports/config/tests-jts.xml	                        (rev 0)
+++ trunk/testsuite/imports/config/tests-jts.xml	2009-12-02 08:17:01 UTC (rev 97282)
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+
+<!--
+   | Targets that run the JCA and TM tests on JTS configuration
+-->
+ 
+<!-- $Id$ -->
+<project name="main.server.config.jts" xmlns:server="http://jboss.org/ns/test/ant/server">
+
+  <!--
+  |  Define the Pattern Sets Here
+  --> 
+  <patternset id="jts.includes">
+    <include name="org/jboss/test/jca/**/*TestCase.class"/>
+    <include name="org/jboss/test/tm/**/*TestCase.class"/>
+    <exclude name="org/jboss/test/jca/test/BackgroundValidationUnitTestCase.class"/>
+    <exclude name="org/jboss/test/jca/test/BaseConnectionManagerUnitTestCase.class"/>
+    <exclude name="org/jboss/test/jca/test/PreFillPoolingUnitTestCase.class"/>
+    <exclude name="org/jboss/test/jca/test/SecurityContextUnitTestCase.class"/>
+    <exclude name="org/jboss/test/jca/test/StatisticsReporterUnitTestCase.class"/>
+    <exclude name="org/jboss/test/jca/test/TxConnectionManagerUnitTestCase.class"/>
+    <exclude name="org/jboss/test/jca/test/*StressTestCase.class"/>
+  </patternset>
+  <patternset id="jts.security.includes">
+    <include name="org/jboss/test/jca/test/SecurityContextUnitTestCase.class"/>
+  </patternset>
+
+  <!--
+    | Targets
+  -->
+
+   <!-- JBAS-6492 -->
+   <target name="tests-jts" unless="without.jts.smoke.tests" depends="init"
+   	description="Runs the JCA and TM tests on JTS configuration">
+      
+      <delete dir="${jboss.dist}/server/jts" />
+      <create-config baseconf="all" newconf="jts">
+         <patternset>
+            <include name="conf/**"/>
+            <include name="deploy/**"/>
+            <include name="deploy-hasingleton/**"/>
+            <include name="deployers/**"/>
+            <include name="lib/**"/>
+         </patternset>
+      </create-config>
+
+      <!-- install JTS transactions -->
+      <ant dir="${jboss.dist}/docs/examples/transactions" target="jts">
+         <property name="target.server.dir" location="${jboss.dist}/server/jts"/>
+      </ant>
+
+
+      <server:start name="jts"/>
+
+      <run-junit junit.patternset="jts.includes"
+         junit.configuration="jts" />
+      
+      <property name="jbosstest.secure" value="true"/>
+      <property name="java.security.auth.login.config"
+        value="${build.resources}/security/auth.conf"/>
+      <propertyset id="jts-security-tests-props">
+         <propertyref prefix="java.security.auth"/>
+      </propertyset>
+      <run-junit junit.patternset="jts.security.includes"
+         junit.syspropertyset="jts-security-tests-props"
+         junit.configuration="jts" />
+
+      <server:stop name="jts"/>
+
+   </target>
+	
+</project>


Property changes on: trunk/testsuite/imports/config/tests-jts.xml
___________________________________________________________________
Name: svn:keywords
   + Date Author Revision HeadURL Id

Modified: trunk/testsuite/imports/server-config.xml
===================================================================
--- trunk/testsuite/imports/server-config.xml	2009-12-02 07:44:15 UTC (rev 97281)
+++ trunk/testsuite/imports/server-config.xml	2009-12-02 08:17:01 UTC (rev 97282)
@@ -218,6 +218,15 @@
          <sysproperty key="java.net.preferIPv4Stack" value="true" />
          <sysproperty key="java.endorsed.dirs" value="${jboss.dist}/lib/endorsed" />
       </server>
+      <server name="jts" host="${node0}">
+         <jvmarg value="-Xms128m" />
+         <jvmarg value="-Xmx512m" />
+         <jvmarg value="-XX:MaxPermSize=512m" />
+         <jvmarg value="-XX:+HeapDumpOnOutOfMemoryError" />
+         <sysproperty key="java.net.preferIPv4Stack" value="true" />
+         <sysproperty key="java.endorsed.dirs" value="${jboss.dist}/lib/endorsed" />
+         <sysproperty key="jgroups.udp.ip_ttl" value="${jbosstest.udp.ip_ttl}" />
+      </server>
       <server name="tomcat-sso" host="${node0}">
          <jvmarg value="-Xms128m" />
          <jvmarg value="-Xmx256m" />
@@ -990,7 +999,7 @@
         <sysproperty key="jgroups.udp.ip_ttl" value="${jbosstest.udp.ip_ttl}" />
         <sysproperty key="jboss.messaging.ServerPeerID" value="1" />
       </server>
-   	
+      
     </server:config>
   
     <property name="server-config.target.complete" value="true"/>




More information about the jboss-cvs-commits mailing list