1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-09 09:57:48 +03:00
Martin Schwenke 155862ea21 Tests - IP allocation - initial unit tests
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 3922225ddff90281189ebdab77620b560d233e04)
2011-09-25 14:45:48 +10:00

32 lines
433 B
Bash
Executable File

#!/bin/sh
# Run some IP allocation unit tests.
cd $(dirname "$0")
export TAKEOVER_TESTS_DIR=$(pwd)
test_dir=$(dirname "$TAKEOVER_TESTS_DIR")
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