#!/bin/sh
-if [ -n "$*" ]; then
- tests/scripts/run_tests -s $* || exit 1
+test_dir=$(dirname "$0")
+
+if [ -n "$1" ] ; then
+ "${test_dir}/scripts/run_tests" -l -s "$@" || exit 1
else
- tests/scripts/run_tests -s tests/simple/*.sh tests/complex/*.sh || exit 1
+ cd "$test_dir"
+
+ # By default, run all unit tests and the tests against local
+ # daemons
+ dirs="simple complex"
+
+ ./scripts/run_tests -s $dirs || exit 1
fi
echo "All OK"
#!/bin/sh
-tests/scripts/run_tests -l -s ${*:-tests/simple/*.sh} || exit 1
+test_dir=$(dirname "$0")
+
+if [ -n "$1" ] ; then
+ "${test_dir}/scripts/run_tests" -l -s "$@" || 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 $dirs || exit 1
+fi
echo "All OK"
exit 0