Preliminaries
The Python tests can be run using either jzmq or jeromq.
Open a shell where you will run the Cameo server. If necessary, define the variables LD_LIBRARY_PATH and PYTHONPATH so that a python script is able to load the cameopy module.
Tests
Set the PATH variable so that the Python scripts and the C++ programs are found:
$ export PATH=<cameo-tests path>/src:<cameo-tests path>/build/bin:$PATH
You start the jzmq server:
$ java -classpath <cameo-tests path>/cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server --log-console <cameo-tests path>/jzmq-api-config.xml
Or start the jeromq server:
$ java -classpath <cameo-tests path>/cameo-tests-jeromq/target/cameo-tests-jeromq-full.jar fr.ill.ics.cameo.server.Server --log-console <cameo-tests path>/jeromq-api-config.xml
Then in another shell, start the startsimplepy test:
$ cmo -p 10000 exec startsimplepy 100
Start the startstoppy test:
$ cmo -p 10000 exec startstoppy 100
Examples
Set the PATH variable so that the Python scripts are found:
$ export PATH=<cameo-tests path>/src/examples:$PATH
You start the server:
$ java -classpath <cameo-tests path>/cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server --log-console <cameo-tests path>/src/examples/python-config.xml
Requester/Responder
Then in another shell, start the responderpy test:
$ cmo -p 11000 exec responderpy
Start the requesterpy application:
$ cmo -p 11000 exec requesterpy 1000
Publisher/Subscriber
Start the publisherpy test:
$ cmo -p 11000 exec publisherpy
Start the subscriberpy application:
$ cmo -p 11000 exec subscriberpy