Add Valgrind to sanitizer script (#1978)

Theoretically msan can do this but practically it requires a custom
libc++.
This commit is contained in:
Andrew Gaul 2022-07-09 16:40:23 +09:00 committed by GitHub
parent 3f55c98a3f
commit 4d303caa62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ COMMON_FLAGS="-g -O0 -Wno-cpp"
make clean
./configure CXXFLAGS="$COMMON_FLAGS -D_GLIBCXX_DEBUG"
make
DBGLEVEL=debug make check -C test/
make check -C test/
# run tests under AddressSanitizer, https://clang.llvm.org/docs/AddressSanitizer.html
make clean
@ -39,6 +39,7 @@ make
ASAN_OPTIONS='detect_leaks=1,detect_stack_use_after_return=1' make check -C test/
# run tests under MemorySanitizer, https://clang.llvm.org/docs/MemorySanitizer.html
# TODO: this requires a custom libc++
#make clean
#./configure CXX=clang++ CXXFLAGS="$COMMON_FLAGS -fsanitize=memory"
#make
@ -56,6 +57,12 @@ make clean
make
make check -C test/
# run tests with Valgrind
make clean
./configure CXXFLAGS="$COMMON_FLAGS"
make
RETRIES=100 VALGRIND="--leak-check=full" make check -C test/
#
# Local variables:
# tab-width: 4