Tools
Get the source
Tests

Development

crmsh is a free software project, and is open to contributors. Patches, comments, documentation, testing and so on are all very much welcome!

Get the source

The source code for crmsh is kept in a git repository hosted at github. Use git to get a working copy:

git clone https://github.com/ClusterLabs/crmsh.git

crmsh needs the development headers for cluster-glue and pacemaker when installing. On openSUSE, these are packaged as libglue-devel and libpacemaker-devel.

Building
./autogen.sh
./configure
make
make install

Tests

The unit tests for crmsh require nose to run. On most distributions, this can be installed by installing the package python-nose, or using pip.

To run the unit test suite, go to the source code directory of crmsh and call:

./test/unit-tests.sh

crmsh also comes with a comprehensive regression test suite. The regression tests need to run after installation, on a system which has both crmsh and pacemaker installed.

To execute the tests, call:

/usr/share/crmsh/tests/regression.sh
cat crmtestout/regression.out
Fork me on GitHub