diff options
| author | Martin Schwenke <martin@meltin.net> | 2012-01-15 14:55:52 +1100 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2012-02-06 16:00:24 +1100 |
| commit | 9f2ce614a792994ffcf2dc13b693429b6b17afcc (patch) | |
| tree | b5ee2557f94e1c59dcd12ad0bed44c3f42f0c5a9 /ctdb/tests/tool/run_tests.sh | |
| parent | e420c6b8019bc66a26b72fa8db457b5eb0f5a6c6 (diff) | |
| download | samba-9f2ce614a792994ffcf2dc13b693429b6b17afcc.tar.gz samba-9f2ce614a792994ffcf2dc13b693429b6b17afcc.tar.xz samba-9f2ce614a792994ffcf2dc13b693429b6b17afcc.zip | |
Tests: initial ctdb tool testcases
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 47e9975fa75a7bb2628a751dc19d35e2c5c57ce3)
Diffstat (limited to 'ctdb/tests/tool/run_tests.sh')
| -rwxr-xr-x | ctdb/tests/tool/run_tests.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ctdb/tests/tool/run_tests.sh b/ctdb/tests/tool/run_tests.sh new file mode 100755 index 0000000000..b4ad737d58 --- /dev/null +++ b/ctdb/tests/tool/run_tests.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +# Run some IP allocation unit tests. + +cd $(dirname "$0") +export TESTS_SUBDIR=$(pwd) + +test_dir=$(dirname "$TESTS_SUBDIR") + +opts="-d" + +for i ; do + case "$i" in + -*) + opts="$opts $i" + shift + ;; + *) + break + esac +done + +tests="" +if [ -z "$*" ] ; then + tests=$(ls testcases/*.[0-9][0-9][0-9].sh 2>/dev/null) +fi + +"$test_dir/scripts/run_tests" $opts "$@" $tests || exit 1 + +echo "All OK" +exit 0 |
