summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-03-21 11:51:56 +1100
committerAmitay Isaacs <amitay@gmail.com>2012-04-13 14:51:13 +1000
commitdbe7fa9ff0a693db3ee86750211eb8b1049fc849 (patch)
treeb0386bca76770f02bacd5294b9b10aac7414e0c1
parent926f656580f055cb514755e5b5a32d7c6ba86af8 (diff)
downloadsamba-dbe7fa9ff0a693db3ee86750211eb8b1049fc849.tar.gz
samba-dbe7fa9ff0a693db3ee86750211eb8b1049fc849.tar.xz
samba-dbe7fa9ff0a693db3ee86750211eb8b1049fc849.zip
tests: Add a script to run cluster tests and make target "test_cluster"
Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 420a10be89c62b4d605f3b972d78fd69dd9f5bb1)
-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