summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorKarel Zak2017-11-23 14:59:05 +0100
committerKarel Zak2017-11-23 14:59:05 +0100
commitb97cc9a8299ad84bf75093dc390e36eb6ff77761 (patch)
treea8300730960d2378efadd3b867e73dd174d45e17 /tests/run.sh
parenttests: rename --memcheck to --memcheck-valgrind (diff)
downloadkernel-qcow2-util-linux-b97cc9a8299ad84bf75093dc390e36eb6ff77761.tar.gz
kernel-qcow2-util-linux-b97cc9a8299ad84bf75093dc390e36eb6ff77761.tar.xz
kernel-qcow2-util-linux-b97cc9a8299ad84bf75093dc390e36eb6ff77761.zip
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 <kzak@redhat.com>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh2
1 files changed, 2 insertions, 0 deletions
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"