Commit 18d519eb authored by monticelli's avatar monticelli

jira: JORAM-58

fix bug on execution if bridgeamqp tests
parent 53c7caac
<?xml version="1.0"?>
<config>
<property name="Transaction" value="fr.dyade.aaa.util.NTransaction" />
<server id="1" name="S1" hostname="localhost">
<!-- <service class="org.objectweb.joram.mom.proxies.ConnectionManager" -->
<!-- args="root root" /> -->
<!-- <service class="org.objectweb.joram.mom.proxies.tcp.TcpProxyService" -->
<!-- args="16010" /> -->
<service class="org.ow2.joram.mom.amqp.AMQPService"
args="5672" />
<!-- <service class="fr.dyade.aaa.jndi2.server.JndiServer" args="16400" /> -->
</server>
</config>
......@@ -4837,98 +4837,152 @@
<antcall target="bridge.amqp.test4"/>
<antcall target="bridge.amqp.test5"/>
</target>
<target name="server.amqp" description=" --> start an amqp server" depends="init.a3props">
<antcall target="init.test" inheritAll="true">
<param name="a3conf" value="amqp_a3servers.xml" />
</antcall>
<java classname="fr.dyade.aaa.agent.AgentServer" failonerror="no" fork="no" dir="${test.dir}">
<classpath path="${project.class.path}"/>
<jvmarg line="-Dcom.sun.management.jmxremote"/>
<!-- jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y"/ -->
<arg line="1 ./s1"/>
</java>
</target>
<target name="bridge.amqp.test1" depends="init.a3props,compile"
description=" --> Use 2 bridge queues to send and receive messages from a foreign AMQP queue, stop/start of the Joram bridge server.">
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test1"/>
<param name="className" value="joram.bridgeamqp.Test1"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
</antcall>
<parallel>
<antcall target="server.amqp" />
<sequential>
<sleep seconds="2"/>
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test1"/>
<param name="className" value="joram.bridgeamqp.Test1"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
</antcall>
</sequential>
</parallel>
</target>
<target name="bridge.amqp.test2" depends="init.a3props,compile"
description=" --> Use 2 bridge queues to send and receive messages from a foreign AMQP queue, kill/start of the Joram bridge server.">
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test2"/>
<param name="className" value="joram.bridgeamqp.Test2"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
</antcall>
<parallel>
<antcall target="server.amqp" />
<sequential>
<sleep seconds="2"/>
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test2"/>
<param name="className" value="joram.bridgeamqp.Test2"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
</antcall>
</sequential>
</parallel>
</target>
<target name="bridge.amqp.test3" depends="init.a3props,compile"
description=" --> Use a bridge queue to send messages to a foreign AMQP queue,randomly kill and start of the Joram bridge server.">
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test3"/>
<param name="className" value="joram.bridgeamqp.Test3"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
</antcall>
<parallel>
<antcall target="server.amqp" />
<sequential>
<sleep seconds="2"/>
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test3"/>
<param name="className" value="joram.bridgeamqp.Test3"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
</antcall>
</sequential>
</parallel>
</target>
<target name="bridge.amqp.test4" depends="init.a3props,compile"
description=" --> ????? .">
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test4"/>
<param name="className" value="joram.bridgeamqp.Test4"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
<param name="jvmargs" value="-DDEBUG=false -Dnbloop=5"/>
</antcall>
<parallel>
<antcall target="server.amqp" />
<sequential>
<sleep seconds="2"/>
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test4"/>
<param name="className" value="joram.bridgeamqp.Test4"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
<param name="jvmargs" value="-DDEBUG=false -Dnbloop=5"/>
</antcall>
</sequential>
</parallel>
</target>
<target name="bridge.amqp.test5" depends="init.a3props,compile"
description=" --> ????? .">
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test5"/>
<param name="className" value="joram.bridgeamqp.Test5"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value="-DDEBUG=false -Dnbloop=5"/>
</antcall>
<parallel>
<antcall target="server.amqp" />
<sequential>
<sleep seconds="2"/>
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test5"/>
<param name="className" value="joram.bridgeamqp.Test5"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value="-DDEBUG=false -Dnbloop=5"/>
</antcall>
</sequential>
</parallel>
</target>
<target name="bridge.amqp.test4.long" depends="init.a3props,compile"
description=" --> ????? .">
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test4"/>
<param name="className" value="joram.bridgeamqp.Test4"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
<param name="jvmargs" value="-DDEBUG=true -Dnbloop=50"/>
</antcall>
<parallel>
<antcall target="server.amqp" />
<sequential>
<sleep seconds="2"/>
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test4"/>
<param name="className" value="joram.bridgeamqp.Test4"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value=""/>
<param name="jvmargs" value="-DDEBUG=true -Dnbloop=50"/>
</antcall>
</sequential>
</parallel>
</target>
<target name="bridge.amqp.test5.long" depends="init.a3props,compile"
description=" --> ????? .">
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test5"/>
<param name="className" value="joram.bridgeamqp.Test5"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value="-DDEBUG=false -Dnbloop=50"/>
</antcall>
<parallel>
<antcall target="server.amqp" />
<sequential>
<sleep seconds="2"/>
<antcall target="test.run" inheritAll="true">
<param name="testid" value="bridge.amqp.test5"/>
<param name="className" value="joram.bridgeamqp.Test5"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="bridgeamqp/jndi.properties"/>
<param name="a3conf" value="bridgeamqp/a3servers1.xml"/>
<param name="jvmargs" value="-DDEBUG=false -Dnbloop=50"/>
</antcall>
</sequential>
</parallel>
</target>
<!-- end bridgeamqp test -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment