Commit 328b7e7f authored by legoc's avatar legoc

Simplified usage

parent 0268f310
......@@ -150,32 +150,28 @@ public class TestSelector {
public static void main(String[] args) {
if (args.length == 0) {
System.out.println("Usage: <application name> <number of iterations>");
System.exit(1);
}
int argsIndex = 0;
// Define the server process.
Process serverProcess = null;
// Start the server.
serverProcess = startServer(args[0]);
serverProcess = startServer("tests.xml");
Server server = new Server("tcp://localhost:10000"); // change depending on config
Server server = new Server("tcp://localhost:10000");
if (server.isAvailable()) {
System.out.println("*** Server is available ***");
}
argsIndex = 1;
int argsIndex = 0;
try {
String appName;
String[] appArgs;
ArrayList<String> apps = new ArrayList<String>();
apps.addAll(getJavaTests());
apps.addAll(getCppTests());
apps.addAll(getPythonTests());
if (args.length < argsIndex + 1) {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -7,111 +7,111 @@
<!-- Java apps -->
<application name="simplejava" starting_time="0" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.Simple"/>
<start executable="java" args="fr.ill.ics.cameo.test.Simple"/>
</application>
<application name="testsimplejava" starting_time="0" stopping_time="1" output_stream="yes" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestSimple"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestSimple"/>
</application>
<application name="veryfastjava" starting_time="0" stopping_time="0" output_stream="yes" multiple="no" restart="no" info_arg="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.VeryFast"/>
<start executable="java" args="fr.ill.ics.cameo.test.VeryFast"/>
</application>
<application name="testveryfastjava" starting_time="0" stopping_time="1" output_stream="yes" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestVeryFast"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestVeryFast"/>
</application>
<application name="stopjava" starting_time="0" stopping_time="2" output_stream="yes" multiple="yes" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.Stop"/>
<start executable="java" args="fr.ill.ics.cameo.test.Stop"/>
</application>
<application name="teststopjava" starting_time="0" stopping_time="1" output_stream="yes" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestStop"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestStop"/>
</application>
<application name="resultjava" starting_time="0" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.Result"/>
<start executable="java" args="fr.ill.ics.cameo.test.Result"/>
</application>
<application name="testresultjava" starting_time="0" stopping_time="1" output_stream="yes" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestResult"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestResult"/>
</application>
<application name="errorjava" starting_time="0" stopping_time="1" multiple="no" restart="no" info_arg="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.Error"/>
<start executable="java" args="fr.ill.ics.cameo.test.Error"/>
</application>
<application name="testerrorjava" starting_time="0" stopping_time="1" output_stream="yes" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestError"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestError"/>
</application>
<application name="teststoragejava" starting_time="0" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestStorage"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestStorage"/>
</application>
<application name="waitstoragejava" starting_time="0" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.WaitStorage"/>
<start executable="java" args="fr.ill.ics.cameo.test.WaitStorage"/>
</application>
<application name="testwaitstoragejava" starting_time="0" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestWaitStorage"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestWaitStorage"/>
</application>
<application name="publisherjava" starting_time="inf" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.Publisher"/>
<start executable="java" args="fr.ill.ics.cameo.test.Publisher"/>
</application>
<application name="testpublisherjava" starting_time="0" stopping_time="1" output_stream="yes" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestPublisher publisherjava"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestPublisher publisherjava"/>
</application>
<application name="subscriberjava" starting_time="0" stopping_time="1" log_directory="logs" multiple="yes" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.Subscriber"/>
<start executable="java" args="fr.ill.ics.cameo.test.Subscriber"/>
</application>
<application name="testsubscriberjava" starting_time="0" stopping_time="1" output_stream="yes" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestSubscriber subscriberjava"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestSubscriber subscriberjava"/>
</application>
<application name="responderjava" starting_time="inf" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.Responder"/>
<start executable="java" args="fr.ill.ics.cameo.test.Responder"/>
</application>
<application name="testresponderjava" starting_time="inf" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestResponder responderjava"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestResponder responderjava"/>
</application>
<application name="requesterjava" starting_time="inf" stopping_time="1" output_stream="yes" log_directory="logs" multiple="yes" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.Requester"/>
<start executable="java" args="fr.ill.ics.cameo.test.Requester"/>
</application>
<application name="testrequesterjava" starting_time="inf" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestRequester requesterjava"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestRequester requesterjava"/>
</application>
<application name="publisherloopjava" starting_time="inf" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.PublisherLoop"/>
<start executable="java" args="fr.ill.ics.cameo.test.PublisherLoop"/>
</application>
<application name="testcanceljava" starting_time="0" stopping_time="1" output_stream="yes" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestCancel"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestCancel"/>
</application>
<application name="comportjava" starting_time="0" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.ComPort"/>
<start executable="java" args="fr.ill.ics.cameo.test.ComPort"/>
</application>
<application name="testcomportjava" starting_time="0" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestComPort"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestComPort"/>
</application>
<application name="streamjava" starting_time="0" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.Stream"/>
<start executable="java" args="fr.ill.ics.cameo.test.Stream"/>
</application>
<application name="teststreamjava" starting_time="0" stopping_time="1" output_stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestStream"/>
<start executable="java" args="fr.ill.ics.cameo.test.TestStream"/>
</application>
......
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