]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: shell test helpers to run MONs from sources
authorLoic Dachary <loic@dachary.org>
Wed, 8 Jan 2014 11:41:06 +0000 (12:41 +0100)
committerLoic Dachary <loic@dachary.org>
Sun, 26 Jan 2014 12:40:53 +0000 (13:40 +0100)
commitd9a689d69ac8f1803fc0e057a274e3bc1d7fe044
tree53a6c8022ce74fada01ef6bdc4d38bcef84782ae
parent97edd2fcad04e8766f965e3c487d469afbdb5a3f
mon: shell test helpers to run MONs from sources

The intent is to make it more convenient to reproduce a specific mon
behavior and observe the result by grepping the logs. It can be handy
for bug diagnostic. The test could be included as a unit test to
be run on make check.

The setup function will prepare a directory and kill leftover from a
previous run. The teardown function cleans up on success. The run
function is expected to be provided by the calling script and can make
use of the run_mon function to mkfs + run a monitor.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/mon/mon-test-helpers.sh [new file with mode: 0644]