Back to Rabbitmq Server

RUNNING TESTS

deps/rabbitmq_peer_discovery_etcd/RUNNING_TESTS.md

4.3.0959 B
Original Source

Running Common Test Suites

shell
gmake tests

When running tests via gmake tests, there is no need to run the init-etcd.sh script as the test suite will do it for you.

etcd Node Management

The test suite of this plugin ships with a script that starts an etcd node in the background.

This script can also be used to start a node for experimenting with this plugin. To run it:

shell
./test/system_SUITE_data/init-etcd.sh [etcd data dir] [etcd client port]

where [etcd data dir] is the desired etcd node data directory path.

The script depends on the daemonize tool for running the process in the background and pid file creation.

To stop a node started this way use the pid file created by daemonize:

shell
pkill -INT $(cat [etcd data dir]/etcd.pid)