summaryrefslogtreecommitdiff
path: root/ctdb/tests/onnode/scripts
AgeCommit message (Collapse)AuthorFilesLines
2015-07-09ctdb-tests: Add test cleanup hooksAmitay Isaacs1-1/+1
To do any cleanup before exiting the test, register hooks with test_cleanup(). Multiple hooks can be registered. All the hooks will be called before exiting from the test. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2015-07-09ctdb-tests: Remove extra_header and extra_footer variablesAmitay Isaacs1-7/+5
This is now achieved by defining functions extra_header() and extra_footer(). Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2012-04-27tests: Unit tests should use $TEST_VAR_DIRMartin Schwenke1-1/+1
This directory is already guaranteed to be absolute, so no check is needed. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 78f6f209eb15102f4e8baa9106583df0ef4bb693)
2012-04-27tests: Make run_tests -X more flexible - it now works with onnodeMartin Schwenke1-1/+6
Hardcoding "sh -x" is suboptimal because some scripts, like onnode, require bash. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 246809af64c03d26288abff5907ed46614e72b15)
2012-04-18tests: More unit test factoring/rationalisation and bug fixesMartin Schwenke1-21/+14
Move some options from eventscripts/run_tests.sh to scripts/run_tests. Remove the former. Move some functions from eventscripts/scripts/local.sh to scripts/unit.sh. Both of these are modified during move so they are no longer eventscript-specific. Tweak */local.sh so that the new functions in unit.sh are used. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7ff485687891732074c9fc9998502ca197663d02)
2012-04-16tests/onnode - Restructure according to new conventionMartin Schwenke1-0/+88
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4c87888b2a559c0d1f285919a42de450a537a02f)