blob: cd90bbbb97e136c9bac3192e788305d0cddf06cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
test_dir=$(dirname "$0")
# Allow options to be passed to this script. However, if any options
# are passed there must be a "--" between the options and the tests.
# This makes it easy to handle options that take arguments.
opts=""
case "$1" in
-*)
while [ -n "$1" ] ; do
case "$1" in
--) shift ; break ;;
*) opts="$opts $1" ; shift ;;
esac
done
esac
if [ -n "$1" ] ; then
"${test_dir}/scripts/run_tests" -l -s $opts "$@" || exit 1
else
cd "$test_dir"
# By default, run all unit tests and the tests against local
# daemons
dirs="onnode takeover tool eventscripts simple"
./scripts/run_tests -l -s $opts $dirs || exit 1
fi
echo "All OK"
exit 0
|