3 test_dir=$(dirname "$0")
5 case $(basename "$0") in
7 # Running on a cluster:
8 # * print summary, run any integration tests against cluster
9 # * default to running: all integration tests, no unit tests
11 tests="simple complex"
14 # Running on local machine:
15 # * print summary, run any integration tests against local daemons
16 # * default to running: all unit tests, simple integration tests
18 tests="onnode takeover tool eventscripts simple"
21 # Allow options to be passed to this script. However, if any options
22 # are passed there must be a "--" between the options and the tests.
23 # This makes it easy to handle options that take arguments.
26 while [ -n "$1" ] ; do
29 *) opts="$opts $1" ; shift ;;
34 # If no tests are specified, then run the defaults.
35 [ -n "$1" ] || set -- $tests
37 "${test_dir}/scripts/run_tests" $opts "$@" || exit 1