tests: allow running tests without valgrind by setting NMTST_NO_VALGRIND

When configuring with --with-valgrind, tests will be invoked
via valgrind. That significantly slows down the tests. Allow
user to set the environment variable NMTST_NO_VALGRIND to invoke
tests directly, even when valgrind was enabled at configure time.
This commit is contained in:
Thomas Haller 2015-02-09 15:46:15 +01:00
parent 2981839bde
commit 95a750e4fa

View file

@ -13,6 +13,11 @@ if [ "$1" = "--launch-dbus" ]; then
fi
TEST="$1"; shift
if [ "$NMTST_NO_VALGRIND" != "" ]; then
"$TEST"
exit $?
fi
LOGFILE="valgrind-`echo "$TEST" | tr -cd '[:alpha:]-'`.log"
export G_SLICE=always-malloc