tests: Update top-level wrapper scripts
[vlendec/samba-autobuild/.git] / ctdb / tests / run_tests.sh
index e628bad80035b53867ea3ad2dabc491907964148..f3cc840fb0da2f5fae876d8cecabb23fa5fb6fd8 100755 (executable)
@@ -1,8 +1,18 @@
 #!/bin/sh
 
-tests/fetch.sh 4 || exit 1
-tests/bench.sh 4 || exit 1
-tests/test.sh || exit 1
+test_dir=$(dirname "$0")
+
+if [ -n "$1" ] ; then
+    "${test_dir}/scripts/run_tests" -l -s "$@" || exit 1
+else
+    cd "$test_dir"
+
+    # By default, run all unit tests and the tests against local
+    # daemons
+    dirs="onnode takeover tool eventscripts simple"
+
+    ./scripts/run_tests -l -s $dirs || exit 1
+fi
 
 echo "All OK"
 exit 0