mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
8bcad72c41
Need to filter dates before comparing... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6127515ea62173ff1574d1217129ec05a8fbeb3f)
36 lines
477 B
Bash
Executable File
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
|