diff options
author | Michael Adam <obnox@samba.org> | 2013-11-29 10:15:20 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-12-05 00:47:43 +0100 |
commit | b0bbb59c49bd068a0a8feea76b2564da8cfabb11 (patch) | |
tree | 1ff6966cd7f675cea9ac1f25a3f7e79256571790 | |
parent | 3c81066105b70921a616feede33e7327c0f49c61 (diff) | |
download | samba-b0bbb59c49bd068a0a8feea76b2564da8cfabb11.tar.gz samba-b0bbb59c49bd068a0a8feea76b2564da8cfabb11.tar.xz samba-b0bbb59c49bd068a0a8feea76b2564da8cfabb11.zip |
ctdb:tests: update README
explain how to run individual tests and test collections and remove mention of
tests/scripts/run_tests which does not exist any more.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r-- | ctdb/tests/README | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/ctdb/tests/README b/ctdb/tests/README index 1c9983b092..92b637ae76 100644 --- a/ctdb/tests/README +++ b/ctdb/tests/README @@ -19,12 +19,30 @@ 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 ------------------ +tests/run_tests.sh +------------------ -The above scripts invoke tests/scripts/run_tests. This script has a -lot of command-line switches. Some of the more useful options -include: +This script can be used to manually run all or selected unit tests and +simple integration tests against local daemons. Test selection is done +by specifying optional call parameters. If no parameter is given, +all unit tests and simple integration tests are run. + +This runs all unit tests of the "tool" category: + + ./tests/run_tests.sh tool + +In order to run a single test, one simply specifies the path of the +test script to run as the last parameter, e.g.: + + ./tests/run_tests.sh ./tests/eventscripts/00.ctdb.monitor.001 + ./tests/run_tests.sh ./tests/simple/76_ctdb_pdb_recovery.sh + +One can also specify multiple test suites and tests: + + ./tests/run_tests.sh eventscripts tool ./tests/onnode/0001.sh + +The script also has number of command-line switches. +Some of the more useful options include: -s Print a summary of tests results after running all tests |