mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 11:20:33 +01:00
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:
parent
2981839bde
commit
95a750e4fa
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue