[jboss-cvs] JBossAS SVN: r76999 - trunk/varia.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Aug 12 23:42:21 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-08-12 23:42:21 -0400 (Tue, 12 Aug 2008)
New Revision: 76999

Added:
   trunk/varia/build-test.xml
Log:
[JBAS-5192] Update the ServiceBindingManager test infrastructure

Added: trunk/varia/build-test.xml
===================================================================
--- trunk/varia/build-test.xml	                        (rev 0)
+++ trunk/varia/build-test.xml	2008-08-13 03:42:21 UTC (rev 76999)
@@ -0,0 +1,241 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE project [
+   <!ENTITY buildmagic SYSTEM "../tools/etc/buildmagic/buildmagic.ent">
+   <!ENTITY libraries  SYSTEM "../thirdparty/libraries.ent">
+   <!ENTITY modules SYSTEM "../tools/etc/buildmagic/modules.ent">
+   <!ENTITY targets SYSTEM "../tools/etc/buildmagic/targets.ent">
+]>
+
+<!-- $Id$ -->
+
+<project default="main" name="JBoss/System Tests">
+
+   <!-- ================================================================== -->
+   <!-- Setup                                                              -->
+   <!-- ================================================================== -->
+
+   <!--
+     | Include the common Buildmagic elements.
+     |
+     | This defines several different targets, properties and paths.
+     | It also sets up the basic extention tasks amoung other things.
+   -->
+
+  &buildmagic;
+
+  <!--
+     | Include the normal targets.
+   -->
+  &targets;
+
+  <!-- ================================================================== -->
+   <!-- Configuration                                                      -->
+   <!-- ================================================================== -->
+
+   <!--
+     | Configure the build system.
+     |
+     | This target is invoked by the Buildmagic initialization logic and
+     | should contain module specific configuration elements.
+   -->
+   <property name="javac.deprecation" value="false" />
+   <property name="javac.target" value="5" />
+   <property name="javac.source" value="5" />
+   
+   <target name="configure" unless="configure.disable">
+
+      <!-- =================== -->
+      <!-- Basic Configuration -->
+      <!-- =================== -->
+
+      <!-- Module name(s) & version -->
+      <property name="module.name" value="varia" />
+      <property name="source.java" value="${module.source}/tests" />
+      <property name="build.classes" value="${module.output}/classes-tests" />
+      <property name="build.test.lib" value="${module.output}/test-lib"
+         description="Separate lib directory for source.test classes"/>
+      <property name="build.testlog" value="${module.output}/log" />
+      <property name="build-bypass.disabled" value="true" />
+      <property name="build.gen.test" value="${module.output}/gen-test"/>
+
+      <!-- ========= -->
+      <!-- Libraries -->
+      <!-- ========= -->
+
+    &libraries;
+
+    <!-- The combined library classpath -->
+      <path id="library.classpath">
+        <path refid="sun.jaf.classpath"/>
+        <path refid="sun.javamail.classpath"/>
+        <path refid="sun.jaxb.classpath"/>
+        <path refid="sun.servlet.classpath"/>
+        <path refid="apache.bsf.classpath"/>
+        <path refid="apache.commons.classpath"/>
+        <path refid="apache.log4j.classpath"/>
+        <path refid="apache.xerces.classpath"/>
+        <path refid="apache.velocity.classpath"/>      
+        <path refid="junit.junit.classpath"/>
+        <path refid="hsqldb.hsqldb.classpath"/>
+        <path refid="apache.ant.classpath"/>
+        <path refid="beanshell.beanshell.classpath"/>
+        <path refid="opennms.joesnmp.classpath"/>
+        <path refid="opensaml.opensaml.classpath"/>
+        <path refid="oswego.concurrent.classpath"/>
+        <path refid="juddi.juddi.classpath"/>
+        <path refid="jboss.metadata.classpath"/>
+        <path refid="jboss.jboss.deployers.classpath"/>      
+        <path refid="jboss.jboss.man.classpath"/>      
+        <path refid="jboss.microcontainer.classpath"/>
+        <path refid="org.jboss.ws.native.classpath"/>
+        <path refid="jboss.jbossxb.classpath"/>
+        <path refid="jboss.integration.classpath"/>
+        <path refid="jboss.jboss.ha.server.api.classpath"/>
+        <path refid="jboss.jboss.vfs.classpath"/>
+        <path refid="jboss.test.classpath" />
+        <path refid="junit.junit.classpath"/>
+      </path>
+
+      <!-- ======= -->
+      <!-- Modules -->
+      <!-- ======= -->
+
+    &modules;
+	<!-- this -->
+      <property name="jboss.this.root" value="${module.root}/output" />
+      <property name="jboss.this.lib" value="${jboss.this.root}/lib" />
+      <path id="jboss.this.classpath">
+         <fileset dir="${jboss.this.lib}">
+            <include name="*.jar" />
+            <exclude name="run.jar" />
+         </fileset>
+      </path>
+
+      <!-- The combined dependant module classpath -->
+      <path id="dependentmodule.classpath">
+        <path refid="jboss.jboss.javaee.classpath"/>
+        <path refid="jboss.common.core.classpath"/>
+        <path refid="jboss.common.logging.spi.classpath"/>
+        <path refid="jboss.common.logging.log4j.classpath"/>
+        <path refid="jboss.common.logging.jdk.classpath"/>
+        <path refid="jboss.jmx.classpath"/>
+        <path refid="jboss.cluster.classpath"/>
+        <path refid="jboss.main.classpath"/>
+        <path refid="jboss.system.classpath"/>
+        <path refid="jboss.systemjmx.classpath"/>
+        <path refid="jboss.j2se.classpath"/>
+        <path refid="jboss.jnpserver.classpath"/>
+        <path refid="jboss.server.classpath"/>
+        <path refid="jboss.jbosssx.classpath"/>
+        <pathelement location="output/classes" />
+      </path>
+
+      <!-- ===== -->
+      <!-- Tasks -->
+      <!-- ===== -->
+
+      <call target="_default:task-init" />
+
+      <path id="thirdparty.classpath">
+         <path refid="library.classpath" />
+         <path refid="dependentmodule.classpath" />
+      </path>
+
+   </target>
+   <patternset id="compile-resources.pattern">
+      <include name="${src.resources}/**" />
+   </patternset>
+
+   <!-- ================================================================== -->
+   <!-- Compile                                                            -->
+   <!-- ================================================================== -->
+
+   <!--
+     | Compile everything.
+     |
+     | This target should depend on other compile-* targets for each
+     | different type of compile that needs to be performed, short of
+     | documentation compiles.
+   -->
+
+   <target name="compile" description="Compile all source files."
+      depends="_default:compile-classes, _default:compile-resources" />
+
+   <!-- ================================================================== -->
+   <!-- Archives                                                           -->
+   <!-- ================================================================== -->
+
+   <target name="module-jars">
+       <!-- Build jboss-varia-test.jar -->
+       <jar jarfile="${build.lib}/jboss-varia-test.jar" manifest="${build.etc}/default.mf">
+          <fileset dir="${build.classes}"/>
+          <fileset dir="${build.resources}/tests">
+             <include name="org/**"/>
+          </fileset>
+       </jar>
+   </target>
+
+   <!-- ================================================================== -->
+   <!-- Tests                                                              -->
+   <!-- ================================================================== -->
+
+   <target name="tests" depends="most"
+      description="Execute all tests in the given test directory.">
+      <mkdir dir="${build.reports}" />
+      <mkdir dir="${build.testlog}" />
+      <!-- Remove the test.log so each run has a fresh log -->
+      <delete file="${build.testlog}/test.log" />
+      <junit dir="${module.output}" printsummary="yes" haltonerror="false" haltonfailure="false" fork="true">
+
+         <sysproperty key="build.testlog" value="${build.testlog}" />
+         <syspropertyset id="jbosstest-properties">
+            <propertyref prefix="jbosstest" />
+         </syspropertyset>
+
+         <classpath>
+            <pathelement location="${build.classes}" />
+            <pathelement location="${build.resources}/tests" />
+            <path refid="javac.classpath" />
+            <path refid="apache.xerces.classpath" />
+         </classpath>
+
+         <formatter type="plain" usefile="true" />
+         <formatter type="xml" usefile="true" />
+
+         <batchtest todir="${build.reports}" haltonerror="false" haltonfailure="false" fork="true">
+
+            <fileset dir="${build.classes}">
+               <include name="org/jboss/test/**/*TestCase.class" />
+            </fileset>
+         </batchtest>
+      </junit>
+   </target>
+
+   <target name="one-test" depends="init"
+      description="Execute the test defined by ${test}">
+      <mkdir dir="${build.reports}" />
+      <mkdir dir="${build.testlog}" />
+      <!-- Remove the test.log so each run has a fresh log -->
+      <delete file="${build.testlog}/test.log" />
+      <junit dir="${module.output}" printsummary="yes" haltonerror="false" haltonfailure="false" fork="true">
+
+         <sysproperty key="build.testlog" value="${build.testlog}" />
+         <syspropertyset id="jbosstest-properties">
+            <propertyref prefix="jbosstest" />
+         </syspropertyset>
+
+         <classpath>
+            <pathelement location="${build.classes}" />
+            <pathelement location="${build.resources}/tests" />
+            <path refid="thirdparty.classpath" />
+            <path refid="apache.xerces.classpath"/>
+         </classpath>
+
+         <formatter type="plain" usefile="true" />
+         <formatter type="xml" usefile="true" />
+
+         <test todir="${build.reports}" name="${test}" haltonerror="${junit.batchtest.haltonerror}" haltonfailure="${junit.batchtest.haltonfailure}" fork="${junit.batchtest.fork}" />
+      </junit>
+   </target>
+
+</project>


Property changes on: trunk/varia/build-test.xml
___________________________________________________________________
Name: svn:executable
   + *




More information about the jboss-cvs-commits mailing list