Delete some unstructured tests ({fetch,peristent,transaction}.sh) and
authorMartin Schwenke <martin@meltin.net>
Thu, 8 Jan 2009 06:12:03 +0000 (17:12 +1100)
committerMartin Schwenke <martin@meltin.net>
Thu, 8 Jan 2009 06:12:03 +0000 (17:12 +1100)
commit33cdf3e4bcfadf8e20822ca352babf7acca16821
treef6a315ebb5419169c4cfb58df68bcdba62579dc9
parent486ed3b5b483f1c12c2d978ec6564bd33a2c6aee
Delete some unstructured tests ({fetch,peristent,transaction}.sh) and
replace them with new simple tests (52_ctdb_fetch.sh,
53_ctdb_transaction.sh, 61_ctdb_persistent_safe.sh,
62_ctdb_persistent_unsafe.sh).  Remove "_simple" from some test
filenames in the simple subdirectory - that's redundant.  Always run
ctdb as $CTDB to allow $VALGRIND magic to be used.  Use pgrep/pkill to
detect/kill local daemons so those running under valgrind can be found
too - to support this, always run local daemons with the full path to
the executable.  run_tests now supports -s option to print sumamry
when done - with more and more tests, it is getting hard to follow
progress.  Sort the output of commands in 06_ctdb_getpid.sh to make
sure they compare nicely and also allow the processes' executables to
be called "memcheck" to catch those running under valgrind.  Remove
redundant calls to onnode in commands run from calls
try_command_on_node in some tests.  41_ctdb_ban.sh and
42_ctdb_unban.sh avoid banning the recmaster, since this causes the
recmaster to be reassigned and all nodes to be unbanned.  Minor
cleanups.

Signed-off-by: Martin Schwenke <martin@meltin.net>
40 files changed:
tests/fetch.sh [deleted file]
tests/persistent.sh [deleted file]
tests/scripts/ctdb_test_env
tests/scripts/ctdb_test_functions.bash
tests/scripts/run_tests
tests/simple/01_ctdb_version.sh
tests/simple/02_ctdb_listvars.sh
tests/simple/03_ctdb_getvar.sh
tests/simple/04_ctdb_setvar.sh
tests/simple/05_ctdb_listnodes.sh
tests/simple/06_ctdb_getpid.sh
tests/simple/07_ctdb_process_exists.sh
tests/simple/08_ctdb_isnotrecmaster.sh
tests/simple/09_ctdb_ping.sh
tests/simple/11_ctdb_ip.sh
tests/simple/12_ctdb_getdebug.sh
tests/simple/13_ctdb_setdebug.sh
tests/simple/14_ctdb_statistics.sh
tests/simple/15_ctdb_statisticsreset.sh
tests/simple/16_ctdb_config_add_ip.sh
tests/simple/17_ctdb_config_delete_ip.sh
tests/simple/18_ctdb_freeze.sh
tests/simple/19_ctdb_thaw.sh
tests/simple/20_ctdb_getmonmode.sh
tests/simple/21_ctdb_disablemonitor.sh
tests/simple/22_ctdb_enablemonitor.sh
tests/simple/23_ctdb_moveip.sh
tests/simple/24_ctdb_getdbmap.sh
tests/simple/25_dumpmemory.sh
tests/simple/26_ctdb_config_check_error_on_unreachable_ctdb.sh
tests/simple/31_ctdb_disable.sh [moved from tests/simple/31_ctdb_disable_simple.sh with 94% similarity]
tests/simple/32_ctdb_enable.sh [moved from tests/simple/32_ctdb_enable_simple.sh with 93% similarity]
tests/simple/41_ctdb_ban.sh [moved from tests/simple/41_ctdb_ban_simple.sh with 74% similarity]
tests/simple/42_ctdb_unban.sh [moved from tests/simple/42_ctdb_unban_simple.sh with 80% similarity]
tests/simple/51_ctdb_bench.sh
tests/simple/52_ctdb_fetch.sh [new file with mode: 0755]
tests/simple/53_ctdb_transaction.sh [new file with mode: 0755]
tests/simple/61_ctdb_persistent_safe.sh [new file with mode: 0755]
tests/simple/62_ctdb_persistent_unsafe.sh [new file with mode: 0755]
tests/transaction.sh [deleted file]