ow2-proactive / agent-linux

Linux Agent for ProActive Workflows & Scheduling
http://proactive.activeeon.com/
GNU Affero General Public License v3.0
0 stars 8 forks source link

ProActive Agent is a system daemon to automatically starts ProActive runtimes according to a weekly schedule

Testing

You can test parsing all configuration files by simply running:

./run-tests.sh

A blackbox test is also available, first build the blackbox test from the agent-linux root.

PYTHONPATH=. python palinagent/daemon/tests/blackbox/build_jar.py

For running the blackbox test use:

PYTHONPATH=. python palinagent/daemon/tests/blackbox/testblackbox.py

Changing schema

Schema is hardcoded in several part, including the tests.

First create your new schema on a separate folder, for instance:

cp -fr palinagent/daemon/xsd/1.0 palinagent/daemon/xsd/1.1

Then replace the version on the new schema. After you can update all configuration files and also update the hardcoded files.

palinagent/daemon/main.py
palinagent/daemon/tests/helpers.py
palinagent/daemon/tests/testXMLConfig.py

Building locally

The deb and rpm packages can be built locally following these steps:

  1. Install ruby-dev for Debian distributions or ruby-devel for Redhat distributions.

    sudo apt install ruby-dev

    or

    sudo yum install ruby-devel
  2. Create a new directory node and place the archives of activeeon_enterprise-node-linux-i586-X and activeeon_enterprise-node-linux-x64-X in it.

  3. Finally execute the run-build.sh as root.

    sudo ./run-build.sh

    Once finished you can find the packages in build/distributions


Copyright (C) 2007-2016 ActiveEon Visit http://proactive.inria.fr/ and http://www.activeeon.com/ Contact: +33 (0)9 88 777 660, contact@activeeon.com