Preliminaries
The Java and C++ tests can be run using either jzmq or jeromq.
Open a shell where you will run the Cameo server. If necessary, define the variable LD_LIBRARY_PATH.
Tests
Set the PATH variable so that the C++ programs are found:
$ export PATH=<cameo-tests path>/build/bin:$PATH
Go to the cameo-tests directory:
$ cd <cameo-tests path>
To run all the tests with 10 iterations for each individual test:
Start all the tests with jzmq
$ java -jar cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar jzmq-api-config.xml all 10
Start all the tests with jeromq
$ java -jar cameo-tests-jeromq/target/cameo-tests-jeromq-full.jar jeromq-api-config.xml all 10
Start the java tests with jeromq
$ java -jar cameo-tests-jeromq/target/cameo-tests-jeromq-full.jar jeromq-api-config.xml java 10
Start the c++ tests with jzmq
$ java -jar cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar jzmq-api-config.xml cpp 10
Display the available tests
$ java -jar cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar jzmq-api-config.xml
Start a specific test
$ java -jar cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar jzmq-api-config.xml startsimplejava 100
Test the Java unmanaged application: Start the server in a specific shell
$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server jzmq-api-config.xml
Start the application
$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.test.TestStopApplication tcp://localhost:10000:stop
Then kill the application manually that should disappear from the list of applications.
Test the C++ unmanaged application
$ ./build/bin/teststop "{\"name\":\"stop\", \"server\":\"tcp://localhost:10000\"}"