From b97cc9a8299ad84bf75093dc390e36eb6ff77761 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 23 Nov 2017 14:59:05 +0100 Subject: build-sys: add --enable-asan and --memcheck-asan for tests The command ./configure --enable-asan adds -fsanitize=address to the compiler command line. In the regression tests leaks detection is disabled by default. You have to use --memcheck-asan on test command line to enable. Signed-off-by: Karel Zak --- tests/run.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/run.sh') diff --git a/tests/run.sh b/tests/run.sh index 1d4cc9d21..15e6c6baa 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -46,6 +46,7 @@ while [ -n "$1" ]; do --force |\ --fake |\ --memcheck-valgrind |\ + --memcheck-asan |\ --show-diff |\ --verbose |\ --skip-loopdevs |\ @@ -82,6 +83,7 @@ while [ -n "$1" ]; do echo " --force execute demanding tests" echo " --fake do not run, setup tests only" echo " --memcheck-valgrind run with valgrind" + echo " --memcheck-asan enable ASAN (requires ./configure --enable-asan)" echo " --verbose verbose mode" echo " --show-diff show diff from failed tests" echo " --nonroot ignore test suite if user is root" -- cgit v1.2.3-55-g7522