mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-02-02 18:48:26 +00:00
Add Valgrind to sanitizer script (#1978)
Theoretically msan can do this but practically it requires a custom libc++.
This commit is contained in:
parent
3f55c98a3f
commit
4d303caa62
@ -30,7 +30,7 @@ COMMON_FLAGS="-g -O0 -Wno-cpp"
|
|||||||
make clean
|
make clean
|
||||||
./configure CXXFLAGS="$COMMON_FLAGS -D_GLIBCXX_DEBUG"
|
./configure CXXFLAGS="$COMMON_FLAGS -D_GLIBCXX_DEBUG"
|
||||||
make
|
make
|
||||||
DBGLEVEL=debug make check -C test/
|
make check -C test/
|
||||||
|
|
||||||
# run tests under AddressSanitizer, https://clang.llvm.org/docs/AddressSanitizer.html
|
# run tests under AddressSanitizer, https://clang.llvm.org/docs/AddressSanitizer.html
|
||||||
make clean
|
make clean
|
||||||
@ -39,6 +39,7 @@ make
|
|||||||
ASAN_OPTIONS='detect_leaks=1,detect_stack_use_after_return=1' make check -C test/
|
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
|
# run tests under MemorySanitizer, https://clang.llvm.org/docs/MemorySanitizer.html
|
||||||
|
# TODO: this requires a custom libc++
|
||||||
#make clean
|
#make clean
|
||||||
#./configure CXX=clang++ CXXFLAGS="$COMMON_FLAGS -fsanitize=memory"
|
#./configure CXX=clang++ CXXFLAGS="$COMMON_FLAGS -fsanitize=memory"
|
||||||
#make
|
#make
|
||||||
@ -56,6 +57,12 @@ make clean
|
|||||||
make
|
make
|
||||||
make check -C test/
|
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:
|
# Local variables:
|
||||||
# tab-width: 4
|
# tab-width: 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user