[jboss-cvs] JBossAS SVN: r101014 - branches/EWP_5_0/testsuite.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Feb 16 06:24:32 EST 2010
Author: jcosta at redhat.com
Date: 2010-02-16 06:24:32 -0500 (Tue, 16 Feb 2010)
New Revision: 101014
Modified:
branches/EWP_5_0/testsuite/build.xml
Log:
JBPAPP-3611 - Adapted the build.xml to EWP. If build.ewp option is not provided, it's the same behaviour as without this commit.
Modified: branches/EWP_5_0/testsuite/build.xml
===================================================================
--- branches/EWP_5_0/testsuite/build.xml 2010-02-16 11:22:01 UTC (rev 101013)
+++ branches/EWP_5_0/testsuite/build.xml 2010-02-16 11:24:32 UTC (rev 101014)
@@ -1148,20 +1148,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>
@@ -1180,7 +1180,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">
@@ -1194,7 +1194,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"/>
@@ -1267,9 +1267,9 @@
</patternset>
<patternset id="profileservice.includes">
<include name="org/jboss/test/profileservice/test/*TestCase.class"/>
- <include name="org/jboss/test/profileservice/override/test/*TestCase.class"/>
+ <include name="org/jboss/test/profileservice/override/test/*TestCase.class"/>
<!-- deployers + seam -->
- <include name="org/jboss/test/deployers/test/*UnitTestCase.class"/>
+ <include name="org/jboss/test/deployers/test/*UnitTestCase.class"/>
<include name="org/jboss/test/deployers/client/test/*UnitTestCase.class"/>
<include name="org/jboss/test/deployers/ear/test/*UnitTestCase.class"/>
<include name="org/jboss/test/deployers/ejb/test/*UnitTestCase.class"/>
@@ -1283,9 +1283,9 @@
</patternset>
<patternset id="profileservice.excludes">
<exclude name="org/jboss/test/profileservice/test/*TestCase.class"/>
- <exclude name="org/jboss/test/profileservice/override/test/*TestCase.class"/>
+ <exclude name="org/jboss/test/profileservice/override/test/*TestCase.class"/>
<!-- deployers + seam -->
- <exclude name="org/jboss/test/deployers/test/*UnitTestCase.class"/>
+ <exclude name="org/jboss/test/deployers/test/*UnitTestCase.class"/>
<exclude name="org/jboss/test/deployers/client/test/*UnitTestCase.class"/>
<exclude name="org/jboss/test/deployers/ear/test/*UnitTestCase.class"/>
<exclude name="org/jboss/test/deployers/ejb/test/*UnitTestCase.class"/>
@@ -1309,6 +1309,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"/>
@@ -1348,6 +1423,8 @@
<!-- jmx-remoting.sar is now disabled for security reasons -->
<exclude name="org/jboss/test/jmx/test/JMXConnectorUnitTestCase.class"/>
+ <patternset refid="ewp.excludes"/>
+
</patternset>
<patternset id="aop-with-classloader.excludes">
@@ -1390,12 +1467,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" />
@@ -1458,7 +1577,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" />
@@ -2787,7 +2906,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}"
@@ -3062,7 +3181,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}"
@@ -3205,7 +3324,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" />
@@ -3304,7 +3423,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">
More information about the jboss-cvs-commits
mailing list