1 # Hey Emacs, this is a -*- shell-script -*- !!! :-)
3 test_prog="ctdb_takeover_tests ctdb_takeover_run_core"
7 _f=$(basename "$0" ".sh")
9 export CTDB_IP_ALGORITHM="${_f%%.*}"
10 case "$CTDB_IP_ALGORITHM" in
12 *) die "Unknown algorithm for testcase \"$_f\"" ;;
15 printf "%-12s - %s\n" "$_f" "$1"
20 _out=$($VALGRIND $test_prog "$@" 2>&1)
22 result_check "Algorithm: $CTDB_IP_ALGORITHM"