From 95a750e4fa0ca8148b1bf4ec3319f62d00318abe Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 9 Feb 2015 15:46:15 +0100 Subject: [PATCH] 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. --- tools/run-test-valgrind.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/run-test-valgrind.sh b/tools/run-test-valgrind.sh index fb8cb1482e..200a27d13c 100755 --- a/tools/run-test-valgrind.sh +++ b/tools/run-test-valgrind.sh @@ -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