1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/ctdb/tests/tool/run_tests.sh
Martin Schwenke 8bcad72c41 Tests - ctdb tool - add verbose option and output filtering
Need to filter dates before comparing...

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 6127515ea62173ff1574d1217129ec05a8fbeb3f)
2012-02-06 16:00:24 +11:00

36 lines
477 B
Bash
Executable File

#!/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
-v)
export TESTS_VERBOSE="yes"
shift
;;
-*)
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