[jboss-cvs] JBossAS SVN: r104261 - branches/JBPAPP_5_0/testsuite.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 27 04:31:06 EDT 2010
Author: jcosta at redhat.com
Date: 2010-04-27 04:31:05 -0400 (Tue, 27 Apr 2010)
New Revision: 104261
Modified:
branches/JBPAPP_5_0/testsuite/build.xml
Log:
Added options to run the testsuite for EWP, excluding some tests which uses features absent from EWP.
Modified: branches/JBPAPP_5_0/testsuite/build.xml
===================================================================
--- branches/JBPAPP_5_0/testsuite/build.xml 2010-04-27 06:52:08 UTC (rev 104260)
+++ branches/JBPAPP_5_0/testsuite/build.xml 2010-04-27 08:31:05 UTC (rev 104261)
@@ -372,7 +372,7 @@
<!-- path refid="hibernate3.classpath"/ -->
<pathelement path="${jboss.dist.common.lib}/hibernate-core.jar" />
<pathelement path="${jboss.dist.common.lib}/hibernate-jmx.jar" />
- <pathelement path="${jboss.dist.common.lib}/hibernate-ehcache.jar" />
+ <pathelement path="${jboss.dist.common.lib}/hibernate-ehcache.jar" />
<pathelement path="${jboss.dist.common.lib}/hibernate-oscache.jar" />
<pathelement path="${jboss.dist.common.lib}/hibernate-swarmcache.jar" />
<pathelement path="${jboss.dist.common.lib}/hibernate-c3p0.jar" />
@@ -785,6 +785,14 @@
<propertyref prefix="jbosstest."/>
</propertyset>
+ <!-- Choose between EAP and EWP build -->
+ <condition property="build.ewp">
+ <and>
+ <isset property="version.name"/>
+ <equals arg1="${version.name}" arg2="EWP"/>
+ </and>
+ </condition>
+
<target name="init">
<record name="${basedir}/build.log" append="yes" action="start" loglevel="error"/>
<mkdir dir="${build.gen-src}/org/jboss/test/cts/ejb"/>
@@ -1157,20 +1165,20 @@
</patternset>
<!-- Tests needing jrmp invoker -->
<patternset id="jrmp-invoker.includes">
- <include name="org/jboss/test/cts/test/BmpUnitTestCase.class"/>
+ <include name="org/jboss/test/cts/test/BmpUnitTestCase.class" unless="build.ewp"/>
<!--include name="org/jboss/test/cts/test/ClientCallbackImpl.class"/-->
- <include name="org/jboss/test/cts/test/CmpUnitTestCase.class"/>
+ <include name="org/jboss/test/cts/test/CmpUnitTestCase.class" unless="build.ewp"/>
<include name="org/jboss/test/cts/test/CtsCmp2UnitTestCase.class"/>
- <include name="org/jboss/test/cts/test/IndependentJarsUnitTestCase.class"/>
- <include name="org/jboss/test/cts/test/LocalEjbTestCase.class"/>
- <include name="org/jboss/test/cts/test/LongWaitStatefulSessionUnitTestCase.class"/>
+ <include name="org/jboss/test/cts/test/IndependentJarsUnitTestCase.class" unless="build.ewp"/>
+ <include name="org/jboss/test/cts/test/LocalEjbTestCase.class" unless="build.ewp"/>
+ <include name="org/jboss/test/cts/test/LongWaitStatefulSessionUnitTestCase.class" unless="build.ewp"/>
<!--include name="org/jboss/test/cts/test/MDBInvoker.class"/-->
<!--include name="org/jboss/test/cts/test/MDBUnitTestCase.class"/-->
<!--include name="org/jboss/test/cts/test/SessionInvoker.class"/-->
- <include name="org/jboss/test/cts/test/StatefulSessionLocalUnitTestCase.class"/>
- <include name="org/jboss/test/cts/test/StatefulSessionUnitTestCase.class"/>
- <include name="org/jboss/test/cts/test/StatelessSessionStressTestCase.class"/>
- <include name="org/jboss/test/cts/test/StatelessSessionUnitTestCase.class"/>
+ <include name="org/jboss/test/cts/test/StatefulSessionLocalUnitTestCase.class" unless="build.ewp"/>
+ <include name="org/jboss/test/cts/test/StatefulSessionUnitTestCase.class" unless="build.ewp"/>
+ <include name="org/jboss/test/cts/test/StatelessSessionStressTestCase.class" unless="build.ewp"/>
+ <include name="org/jboss/test/cts/test/StatelessSessionUnitTestCase.class" unless="build.ewp"/>
<include name="org/jboss/test/bank/test/BankEJB20StressTestCase.class"/>
<include name="org/jboss/test/testbean/test/BeanUnitTestCase.class"/>
</patternset>
@@ -1189,7 +1197,7 @@
<include name="**/test/jmx/test/Secure*TestCase.class"/>
<include name="**/test/jmx/test/RMIAdaptorAuthorizationUnitTestCase.class"/>
<include name="**/test/perf/test/SecurePerfStressTestCase.class"/>
- <include name="**/test/timer/test/SecureTimerUnitTestCase.class"/>
+ <include name="**/test/timer/test/SecureTimerUnitTestCase.class" unless="build.ewp"/>
<include name="**/test/security/test/client/*UnitTestCase.class"/>
</patternset>
<patternset id="security.excludes">
@@ -1203,7 +1211,7 @@
<exclude name="**/test/jrmp/test/DynLoadingFromSARUnitTestCase.class"/>
<exclude name="**/test/jrmp/test/DynLoadingFromSARUnpackedUnitTestCase.class"/>
<exclude name="**/test/perf/test/SecurePerfStressTestCase.class"/>
- <exclude name="**/test/timer/test/SecureTimerUnitTestCase.class"/>
+ <exclude name="**/test/timer/test/SecureTimerUnitTestCase.class" unless="build.ewp"/>
<exclude name="**/test/web/security/authorization/XACMLWeb*.class"/>
<exclude name="**/test/security/test/client/*UnitTestCase.class"/>
<exclude name="**/test/profileservice/testsecure/*UnitTestCase.class"/>
@@ -1318,6 +1326,81 @@
<exclude name="org/jboss/test/spring/test/*TestCase.class"/>
</patternset>
+ <!-- Remove tests known to not work with EWP -->
+ <patternset id="ewp.excludes">
+ <!-- Don't forget the if="build.ewp" ! -->
+
+ <!-- EWP doesn't ships JMS -->
+ <exclude name="org/jboss/test/client/test/AppClientUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/BmpUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/CmpUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/CtsCmp2OptionDUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/IndependentJarsUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/LongWaitStatefulSessionUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/MDBUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/StatefulSessionLocalUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/StatefulSessionUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/StatelessSessionBrokenCreateUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/StatelessSessionStressTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cts/test/StatelessSessionUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/ee5client/unit/AppClientUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/ejb3/jbas6239/unit/RunAsMDBUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/ejb/lifecycle/test/*.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/invokers/test/MultiInvokersUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/jacc/test/EJBSpecUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/jacc/test/WebIntegrationUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/jbossmessaging/**/*.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/jca/test/ExecuteJMSDuringRollbackStressTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/jca/test/TransactionActiveUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/jms/**/*.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/jmsra/**/*.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/jmx/test/RedeployStressTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/mdbsessionpoolclear/test/MDBUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/mdb/test/MDBUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/messagedriven/**/*.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/naming/test/ENCUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/naming/test/NamingStressTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/profileservice/override/restart/test/JmsDestinationRestartUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/profileservice/override/test/ConnectionFactoryOverrideTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/profileservice/override/test/JmsDestinationOverrideTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/profileservice/test/ConnectionFactoryUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/profileservice/test/Ejb3MetricsUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/refs/test/ResourceResolutionUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/security/test/client/SecurityClientUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/security/test/EJBSpecUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/timer/test/*.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/web/test/EncAnnotationsUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/web/test/EncXmlUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/web/test/JSFInjectionUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/web/test/JSPAnnotationENCUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/web/test/WebIntegrationUnitTestCase.class" if="build.ewp"/>
+
+ <!-- EWP doesn't ships bsh.jar -->
+ <exclude name="org/jboss/test/deployers/seam/test/SeamDvdExampleUnitTestCase.class" if="build.ewp"/>
+
+ <!-- EWP doesn't ships management console (console-mgr.sar) -->
+ <exclude name="org/jboss/test/console/jbas3861/*.class" if="build.ewp"/>
+
+ <!-- Depends on lots of things which aren't shipped with EWP, like jms-ra.rar, jmx-remoting.sar, jsr88-service.xml -->
+ <exclude name="org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.class" if="build.ewp"/>
+
+ <!-- Missing uuid-key-generator.sar -->
+ <exclude name="org/jboss/test/cmp2/optimisticlock/test/OptimisticLockUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cmp2/passivation/test/EntityPassivationUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cmp2/keygen/test/KeyGenerationUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cmp2/fkmapping/test/FKMappingUnitTestCase.class" if="build.ewp"/>
+
+ <!-- Uses InvalidationManager, not available in EWP -->
+ <exclude name="org/jboss/test/cluster/multicfg/ejb2/test/CacheInvalidationUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cluster/multicfg/ejb2/test/StatefulPassivationExpirationUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cluster/defaultcfg/test/PartitionRestartUnitTestCase.class" if="build.ewp"/>
+ <exclude name="org/jboss/test/cmp2/cacheinvalidation/test/CacheInvalidationUnitTestCase.class" if="build.ewp"/>
+
+ <!-- HTTP invokers -->
+ <exclude name="org/jboss/test/hello/test/*.class" if="build.ewp"/>
+ </patternset>
+
<!-- Tests that are currently broken -->
<patternset id="badtest.excludes">
<exclude name="org/jboss/test/aop/test/RemotingUnitTestCase"/>
@@ -1333,22 +1416,22 @@
<exclude name="org/jboss/test/deployers/ear/test/EmbeddedDatasourceUnitTestCase.class"/>
<!-- Test of old farming implementation -->
<exclude name="org/jboss/test/cluster/multicfg/test/ClusterFileTransferTestCase.class"/>
- <!-- Unfinished test of clustered deployment via profile service -->
+ <!-- Unfinished test of clustered deployment via profile service -->
<exclude name="org/jboss/test/cluster/defaultcfg/profileservice/test/ClusteredDeployUnitTestCase.class"/>
<!-- JASPI needs revisiting -->
<exclude name="org/jboss/test/web/test/JASPIFormAuthUnitTestCase.class"/>
- <!-- New diagnostic test that has transient failures; needs further work -->
- <exclude name="org/jboss/test/cluster/defaultcfg/simpleweb/test/ClusteredSessionMemoryLeakTestCase.class"/>
+ <!-- New diagnostic test that has transient failures; needs further work -->
+ <exclude name="org/jboss/test/cluster/defaultcfg/simpleweb/test/ClusteredSessionMemoryLeakTestCase.class"/>
- <!-- Exclude some classloader leak tests on Sun VM only; they should run on JRockit, OpenJDK -->
- <exclude name="org/jboss/test/classloader/leak/test/AopPreparedClassesClassloaderLeakUnitTestCase.class" if="sun-vm"/>
- <exclude name="org/jboss/test/cluster/classloader/leak/test/*Field*TestCase.class" if="sun-vm"/>
+ <!-- Exclude some classloader leak tests on Sun VM only; they should run on JRockit, OpenJDK -->
+ <exclude name="org/jboss/test/classloader/leak/test/AopPreparedClassesClassloaderLeakUnitTestCase.class" if="sun-vm"/>
+ <exclude name="org/jboss/test/cluster/classloader/leak/test/*Field*TestCase.class" if="sun-vm"/>
<!-- JBAS-6582, http://lists.jboss.org/pipermail/jboss-development/2008-December/013254.html -->
<exclude name="org/jboss/test/ejb3/servlet/unit/ServletUnitTestCase.class"/>
- <exclude name="org/jboss/test/jbossmessaging/test/UnackedUnitTestCase.class"/>
- <exclude name="org/jboss/test/ejb3/jbpapp2260/unit/MessageInflowTransactionUnitTestCase.class"/>
+ <exclude name="org/jboss/test/jbossmessaging/test/UnackedUnitTestCase.class"/>
+ <exclude name="org/jboss/test/ejb3/jbpapp2260/unit/MessageInflowTransactionUnitTestCase.class"/>
<!-- JBAS-6792 fix temporarily reverted -->
@@ -1357,6 +1440,9 @@
<!-- jmx-remoting.sar is now disabled for security reasons -->
<exclude name="org/jboss/test/jmx/test/JMXConnectorUnitTestCase.class"/>
+
+ <!-- if we are testing EWP, we need to exclude some tests -->
+ <patternset refid="ewp.excludes"/>
</patternset>
<patternset id="aop-with-classloader.excludes">
@@ -1399,12 +1485,54 @@
<antcall target="jars" inheritRefs="true"/>
</target>
+ <!--
+ This is an ugly hack, but our only option. In EWP, there's nothing like
+ the "all" profile. So, we take "production", which contains "everything" for
+ the distribution, but we use some configuration files from "default", as
+ "production" is secured and optimized, so some options are disabled
+ -->
+ <target name="create-profiles-for-ewp" if="build.ewp">
+ <copy todir="${jboss.dist}/server/testing">
+ <fileset dir="${jboss.dist}/server/production"/>
+ </copy>
+
+ <copy file="${jboss.dist}/server/default/deploy/jca-jboss-beans.xml"
+ tofile="${jboss.dist}/server/testing/deploy/jca-jboss-beans.xml" overwrite="true"/>
+
+ <copy file="${jboss.dist}/server/default/conf/jboss-service.xml"
+ tofile="${jboss.dist}/server/testing/conf/jboss-service.xml" overwrite="true"/>
+
+ <copy file="${jboss.dist}/server/default/deploy/hdscanner-jboss-beans.xml"
+ tofile="${jboss.dist}/server/testing/deploy/hdscanner-jboss-beans.xml" overwrite="true"/>
+
+ <copy todir="${jboss.dist}/server/all">
+ <fileset dir="${jboss.dist}/server/testing"/>
+ </copy>
+
+ <copy todir="${jboss.dist}/server/minimal">
+ <fileset dir="${jboss.dist}/server/testing"/>
+ </copy>
+
+ <copy todir="${jboss.dist}/server/standard">
+ <fileset dir="${jboss.dist}/server/testing"/>
+ </copy>
+
+ <copy todir="${jboss.dist}/server/web">
+ <fileset dir="${jboss.dist}/server/testing"/>
+ </copy>
+
+ <delete dir="${jboss.dist}/server/default"/>
+ <copy todir="${jboss.dist}/server/default">
+ <fileset dir="${jboss.dist}/server/testing"/>
+ </copy>
+ </target>
+
<!-- The top level entry point for all tests that can be run against
variations of the standard jboss dist. This does not include long
running benchmark oriented tests.
-->
<target name="tests" description="Execute all non-benchmark tests."
- depends="maybejars">
+ depends="maybejars,create-profiles-for-ewp">
<record name="${basedir}/output/tests.log" append="no" action="start" loglevel="info"/>
<property name="nojars" value="true"/>
<antcall target="jboss-minimal-tests" />
@@ -1467,7 +1595,7 @@
</target>
<target name="jboss-minimal-tests"
- description="Validate the minimal config">
+ description="Validate the minimal config" unless="build.ewp">
<server:start name="minimal"/>
<copy file="${build.lib}/shutdown.sar"
todir="${jboss.dist}/server/minimal/deploy" />
@@ -2796,7 +2924,7 @@
<!--
| IIOP test cases that should run successfully
-->
- <target name="tests-iiop">
+ <target name="tests-iiop" unless="build.ewp">
<mkdir dir="${build.reports}"/>
<mkdir dir="${build.testlog}"/>
<junit dir="${module.output}"
@@ -3074,7 +3202,7 @@
| JBoss server distribution build that contains jaxr.
-->
<!-- Test for JAXR under the Web Services Umbrella -->
- <target name="tests-scout-jaxr" >
+ <target name="tests-scout-jaxr" unless="build.ewp">
<mkdir dir="${build.reports}"/>
<mkdir dir="${build.testlog}"/>
<junit dir="${module.output}"
@@ -3217,7 +3345,7 @@
<!-- Starts two servers, run few simultaneous tests, kill the server only once and get the results of all the tests -->
<target name="tests-jbossmessaging-cluster"
- description="Run JBM in cluster">
+ description="Run JBM in cluster" unless="build.ewp">
<delete dir="${jboss.dist}/server/jbm-cluster1" />
<delete dir="${jboss.dist}/server/jbm-cluster2" />
@@ -3318,7 +3446,7 @@
| Run JMS tests against the Messaging JMS provider
-->
<target name="tests-jbossmessaging"
- description="Run JMS tests against the Messaging JMS provider">
+ description="Run JMS tests against the Messaging JMS provider" unless="build.ewp">
<!-- Create a separate messaging config -->
<create-config baseconf="default" newconf="jbossmessaging">
@@ -4228,4 +4356,6 @@
</junit>
</target>
+
+ <target name="check-build-type"><echo message="build.ewp is ${build.ewp} and version is ${version} and version.name is ${version.name}"/></target>
</project>
More information about the jboss-cvs-commits
mailing list