From c30356c1408d2e15e48dd6561e7c2c0cf0e3df26 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 27 Apr 2012 17:19:45 +1000 Subject: tests: Update README Signed-off-by: Martin Schwenke (This used to be ctdb commit e9fad1ff82e6fb9e6bf615986c41c746fd415058) --- ctdb/tests/README | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ctdb/tests/README b/ctdb/tests/README index 87c7db397e..1c9983b092 100644 --- a/ctdb/tests/README +++ b/ctdb/tests/README @@ -14,7 +14,10 @@ When running tests against a real or virtual cluster the script tests/run_cluster_tests.sh can be used. This runs all integration tests (simple, complex). -Both of these scripts can also take a list of tests to run. +Both of these scripts can also take a list of tests to run. You can +also pass options, which are then passed to run_tests. However, if +you just try to pass options to run_tests then you lose the default +list of tests that are run. You can't have everything... scripts/run_tests ----------------- @@ -41,6 +44,20 @@ include: -e Exit on the first test failure + -C Clean up - kill daemons and remove $TEST_VAR_DIR when done + + Tests uses a temporary/var directory for test state. By default, + this directory is not removed when tests are complete, so you + can do forensics or, for integration tests, re-run tests that + have failed against the same directory (with the same local + daemons setup). So this option cleans things up. + + Also kills local daemons associated with directory. + + -V Use as $TEST_VAR_DIR + + Use the specified temporary temporary/var directory. + -H No headers - for running single test with other wrapper This allows tests to be embedded in some other test framework -- cgit