When developing the cameo-api-cpp project, it is useful to install the files in a dedicated directory and compile run the tests with these files.
Change the target directory in cameo-api-cpp to :
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=<local-test> ..
The directory is a directory owned by the user and not root.
Configure the tests with :
$ cd cameo-tests/build $ ../configure --with-cameo=<local-test> --prefix=<cameo-tests>/build
To run the tests, the LD_LIBRARY_PATH must be changed in the shell you run the tests:
$ export LD_LIBRARY_PATH=<local-test>/lib:/usr/lib/x86_64-linux-gnu/jni
Set the PATH variable so that the C++ programs are found:
$ export PATH=<cameo-tests path>/build/bin:$PATH
Start a simple c++ test with jzmq:
$ cd cameo-tests $ java -jar cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar jzmq-api-config.xml startsimplecpp 10
Start all the c++ tests:
$ java -jar cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar jzmq-api-config.xml cpp 1