summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xctdb/Makefile.in3
-rwxr-xr-xctdb/tests/run_cluster_tests.sh13
2 files changed, 16 insertions, 0 deletions
diff --git a/ctdb/Makefile.in b/ctdb/Makefile.in
index 1794be504a..7b7f356331 100755
--- a/ctdb/Makefile.in
+++ b/ctdb/Makefile.in
@@ -367,6 +367,9 @@ install_pmda:
test: all
tests/run_tests.sh
+test_cluster: all
+ tests/run_cluster_tests.sh
+
valgrindtest: all
VALGRIND="valgrind -q --trace-children=yes" tests/run_tests.sh
diff --git a/ctdb/tests/run_cluster_tests.sh b/ctdb/tests/run_cluster_tests.sh
new file mode 100755
index 0000000000..6917fd9315
--- /dev/null
+++ b/ctdb/tests/run_cluster_tests.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+CTDB_TEST_REAL_CLUSTER=1
+export CTDB_TEST_REAL_CLUSTER
+
+if [ -n "$*" ]; then
+ tests/scripts/run_tests -s $* || exit 1
+else
+ tests/scripts/run_tests -s tests/simple/*.sh tests/complex/*.sh || exit 1
+fi
+
+echo "All OK"
+exit 0