User: reverbel
Date: 02/03/14 16:00:38
Modified: . build.xml
Log:
Added initial version of the first IIOP test.
Revision Changes Path
1.92 +190 -2 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- build.xml 14 Mar 2002 19:13:17 -0000 1.91
+++ build.xml 15 Mar 2002 00:00:36 -0000 1.92
@@ -28,7 +28,7 @@
<!-- tests-jmxri-compliance still needs to run over jmxri.jar -->
<!-- the aim of that test is to check our compliance suite. -->
-<!-- $Id: build.xml,v 1.91 2002/03/14 19:13:17 starksm Exp $ -->
+<!-- $Id: build.xml,v 1.92 2002/03/15 00:00:36 reverbel Exp $ -->
<project default="main" name="JBoss/Testsuite">
@@ -143,6 +143,13 @@
<pathelement path="${oswego.concurrent.lib}/concurrent.jar"/>
</path>
+ <!-- JacORB -->
+ <property name="jacorb.jacorb.root"
value="${project.thirdparty}/jacorb/jacorb"/>
+ <property name="jacorb.jacorb.lib" value="${jacorb.jacorb.root}/lib"/>
+ <path id="jacorb.jacorb.classpath">
+ <pathelement path="${jacorb.jacorb.lib}/jacorb.jar"/>
+ </path>
+
<!-- JSR 77 -->
<property name="sun.jsr77.root" value="${project.thirdparty}/sun/jsr77"/>
<property name="sun.jsr77.lib" value="${sun.jsr77.root}/lib"/>
@@ -264,6 +271,13 @@
<pathelement path="${jboss.management.lib}/jboss-management.jar"/>
</path>
+ <!-- IIOP -->
+ <property name="jboss.iiop.root" value="${project.root}/iiop/output"/>
+ <property name="jboss.iiop.lib" value="${jboss.iiop.root}/lib"/>
+ <path id="jboss.iiop.classpath">
+ <pathelement path="${jboss.iiop.lib}/jboss-iiop-client.jar"/>
+ </path>
+
<!-- The combined dependant module classpath -->
<path id="dependentmodule.classpath">
<path refid="jboss.j2ee.classpath"/>
@@ -707,7 +721,8 @@
_jars-jsr77,
_jars-jbossmx,
_jars-ejbconf,
- _jars-proxycompiler">
+ _jars-proxycompiler,
+ _jars-helloiiop">
</target>
<!--
@@ -883,6 +898,34 @@
</jar>
</target>
+ <!-- helloiiop test -->
+ <target name="_jars-helloiiop">
+ <mkdir dir="${build.lib}"/>
+
+ <!-- build helloiioptest.jar -->
+ <jar jarfile="${build.lib}/helloiioptest.jar"
+ manifest="${build.etc}/manifest.mf">
+ <fileset dir="${build.classes}">
+ <patternset refid="common.test.client.classes"/>
+ <include name="org/jboss/test/helloiiop/interfaces/**"/>
+ <include name="org/jboss/test/helloiiop/test/**"/>
+ </fileset>
+ <fileset dir="${build.resources}/helloiiop">
+ <include name="*.*"/>
+ </fileset>
+ </jar>
+
+ <!-- build helloiiop.jar -->
+ <jar jarfile="${build.lib}/helloiiop.jar">
+ <metainf dir="${build.resources}/helloiiop/META-INF" />
+ <fileset dir="${build.classes}">
+ <patternset refid="common.test.application.classes"/>
+ <include name="org/jboss/test/helloiiop/interfaces/**"/>
+ <include name="org/jboss/test/helloiiop/ejb/**"/>
+ </fileset>
+ </jar>
+ </target>
+
<!-- idgen test -->
<target name="_jars-idgen">
<mkdir dir="${build.lib}"/>
@@ -2887,6 +2930,103 @@
</target>
<!--
+ | Run iiop testcases in a single directory by specifing the test
+ | directory name in -Dtest=dirname in tests/dirname/test/**TestCase.class
+ -->
+ <target name="iiop-test" depends="jars" if="test"
+ description="Execute a single test.">
+ <mkdir dir="${build.reports}"/>
+ <mkdir dir="${build.testlog}"/>
+ <junit dir="${module.output}"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="${junit.fork}"
+ timeout="${junit.timeout}"
+ jvm="${junit.jvm}">
+
+ <jvmarg value="${junit.jvm.options}"/>
+ <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/>
+
+ <jvmarg value="-Xbootclasspath/p:${jacorb.jacorb.lib}/jacorb.jar"/>
+ <jvmarg value="-Djava.security.manager"/>
+ <sysproperty key="log4j.properties"
file="${build.resources}/log4j.properties"/>
+ <sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/>
+ <sysproperty key="jbosstest.iterationcount"
value="${jbosstest.iterationcount}"/>
+ <sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/>
+
+ <classpath>
+ <pathelement location="${build.classes}"/>
+ <pathelement location="${build.resources}"/>
+ <path refid="tests.classpath"/>
+ <path refid="jboss.iiop.classpath"/>
+ </classpath>
+
+ <formatter classname="org.jboss.ant.taskdefs.XMLJUnitResultFormatter"
+ extension=".xml" usefile="${junit.formatter.usefile}"/>
+
+ <batchtest todir="${build.reports}"
+ haltonerror="${junit.batchtest.haltonerror}"
+ haltonfailure="${junit.batchtest.haltonfailure}"
+ fork="${junit.batchtest.fork}">
+
+ <fileset dir="${build.classes}">
+ <include name="org/jboss/test/${test}/*/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <!--
+ | Run iiop testcases in a single directory by specifing the test
+ | directory name in -Dtest=dirname in tests/dirname/test/**TestCase.class
+ | This version does not rebuild the test jars every time.
+ -->
+ <target name="iiop-test-nojars" depends="init" if="test"
+ description="Execute a single test.">
+ <mkdir dir="${build.reports}"/>
+ <mkdir dir="${build.testlog}"/>
+ <junit dir="${module.output}"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="${junit.fork}"
+ timeout="${junit.timeout}"
+ jvm="${junit.jvm}">
+
+ <jvmarg value="${junit.jvm.options}"/>
+ <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/>
+
+ <jvmarg value="-Xbootclasspath/p:${jacorb.jacorb.lib}/jacorb.jar"/>
+ <jvmarg value="-Djava.security.manager"/>
+ <sysproperty key="log4j.properties"
file="${build.resources}/log4j.properties"/>
+ <sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/>
+ <sysproperty key="jbosstest.iterationcount"
value="${jbosstest.iterationcount}"/>
+ <sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/>
+
+ <classpath>
+ <pathelement location="${build.classes}"/>
+ <pathelement location="${build.resources}"/>
+ <path refid="tests.classpath"/>
+ <path refid="jboss.iiop.classpath"/>
+ </classpath>
+
+ <formatter classname="org.jboss.ant.taskdefs.XMLJUnitResultFormatter"
+ extension=".xml" usefile="${junit.formatter.usefile}"/>
+
+ <batchtest todir="${build.reports}"
+ haltonerror="${junit.batchtest.haltonerror}"
+ haltonfailure="${junit.batchtest.haltonfailure}"
+ fork="${junit.batchtest.fork}">
+
+ <fileset dir="${build.classes}">
+ <include name="org/jboss/test/${test}/*/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <!--
| Run a single testcase by specifing the fully qualified class name
| of the unit test using the test property, -Dtest=org.jboss.test....
| Here you specify the testcase class, not the directory
@@ -2961,6 +3101,54 @@
<pathelement location="${build.classes}"/>
<pathelement location="${build.resources}"/>
<path refid="tests.classpath"/>
+ </classpath>
+
+ <formatter classname="org.jboss.ant.taskdefs.XMLJUnitResultFormatter"
+ extension=".xml" usefile="${junit.formatter.usefile}"/>
+
+ <test todir="${build.reports}" name="${test}"
+ haltonerror="${junit.batchtest.haltonerror}"
+ haltonfailure="${junit.batchtest.haltonfailure}"
+ fork="${junit.batchtest.fork}"/>
+ </junit>
+ </target>
+
+ <!--
+ | Run a single iiop testcase by specifing the fully qualified class name
+ | of the unit test using the test property, -Dtest=org.jboss.test....
+ | Here you specify the testcase class, not the directory. This
+ version does not rebuild the test jars every time.
+ -->
+ <target name="one-iiop-test-nojars" depends="init" if="test"
+ description="Execute a single test without rebuilding.">
+ <mkdir dir="${build.reports}"/>
+ <mkdir dir="${build.testlog}"/>
+ <!-- Remove the test.log so each test has a fresh log -->
+ <delete file="${build.testlog}/test.log" />
+ <junit dir="${module.output}"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="${junit.fork}"
+ timeout="${junit.timeout}"
+ jvm="${junit.jvm}">
+
+ <jvmarg value="${junit.jvm.options}"/>
+ <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/>
+
+ <jvmarg value="-Xbootclasspath/p:${jacorb.jacorb.lib}/jacorb.jar"/>
+ <jvmarg value="-Djava.security.manager"/>
+
+ <sysproperty key="log4j.properties"
file="${build.resources}/log4j.properties"/>
+ <sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/>
+ <sysproperty key="jbosstest.iterationcount"
value="${jbosstest.iterationcount}"/>
+ <sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/>
+
+ <classpath>
+ <pathelement location="${build.classes}"/>
+ <pathelement location="${build.resources}/"/>
+ <path refid="tests.classpath"/>
+ <path refid="jboss.iiop.classpath"/>
</classpath>
<formatter classname="org.jboss.ant.taskdefs.XMLJUnitResultFormatter"
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development