Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
cameo
cameo
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Cameo
  • cameocameo
  • Wiki
  • python

python

Last edited by yannick legoc Dec 14, 2020
Page history

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
Clone repository
  • JZMQ or JeroMQ?
  • Version 1.0
  • all tests
  • cpp installation
  • dependencies
  • developments
  • example of code
  • examples
  • Home
  • implementation
  • linux tests
  • python
  • windows compilation
  • windows package
  • windows tests