Enable thread sanitizer on CI
This commit is contained in:
parent
b97da2c735
commit
d62356b860
@ -160,16 +160,17 @@ references:
|
|||||||
test: &test
|
test: &test
|
||||||
run:
|
run:
|
||||||
name: Test
|
name: Test
|
||||||
|
no_output_timeout: 120m
|
||||||
command: |
|
command: |
|
||||||
cd cmake
|
cd cmake
|
||||||
./test/gitversion/gitversion-test
|
./test/gitversion/gitversion-test
|
||||||
./test/cpp-utils/cpp-utils-test
|
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] ; then ./test/cpp-utils/cpp-utils-test ; fi
|
||||||
./test/fspp/fspp-test
|
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] && [ ! "$DISABLE_BROKEN_ASAN_TESTS" = true ] ; then ./test/fspp/fspp-test ; fi
|
||||||
./test/parallelaccessstore/parallelaccessstore-test
|
./test/parallelaccessstore/parallelaccessstore-test
|
||||||
./test/blockstore/blockstore-test
|
./test/blockstore/blockstore-test
|
||||||
./test/blobstore/blobstore-test
|
./test/blobstore/blobstore-test
|
||||||
./test/cryfs/cryfs-test
|
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] ; then ./test/cryfs/cryfs-test ; fi
|
||||||
./test/cryfs-cli/cryfs-cli-test
|
if [ ! "$DISABLE_BROKEN_TSAN_TESTS" = true ] ; then ./test/cryfs-cli/cryfs-cli-test ; fi
|
||||||
job_definition: &job_definition
|
job_definition: &job_definition
|
||||||
<<: *container_config
|
<<: *container_config
|
||||||
steps:
|
steps:
|
||||||
@ -191,22 +192,22 @@ references:
|
|||||||
only: /.*/
|
only: /.*/
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
gcc_4_8_debug:
|
gcc_4_9_debug:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
CC: gcc-4.8
|
CC: gcc-4.9
|
||||||
CXX: g++-4.8
|
CXX: g++-4.9
|
||||||
BUILD_TOOLSET: gcc
|
BUILD_TOOLSET: gcc
|
||||||
APT_COMPILER_PACKAGE: "g++-4.8"
|
APT_COMPILER_PACKAGE: "g++-4.9"
|
||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
gcc_4_8_release:
|
gcc_4_9_release:
|
||||||
<<: *job_definition
|
<<: *job_definition
|
||||||
environment:
|
environment:
|
||||||
CC: gcc-4.8
|
CC: gcc-4.9
|
||||||
CXX: g++-4.8
|
CXX: g++-4.9
|
||||||
BUILD_TOOLSET: gcc
|
BUILD_TOOLSET: gcc
|
||||||
APT_COMPILER_PACKAGE: "g++-4.8"
|
APT_COMPILER_PACKAGE: "g++-4.9"
|
||||||
CXXFLAGS: ""
|
CXXFLAGS: ""
|
||||||
BUILD_TYPE: "Release"
|
BUILD_TYPE: "Release"
|
||||||
gcc_5_debug:
|
gcc_5_debug:
|
||||||
@ -355,15 +356,26 @@ jobs:
|
|||||||
BUILD_TYPE: "Debug"
|
BUILD_TYPE: "Debug"
|
||||||
# Note: Leak detection is disabled because libfuse itself is leaky...
|
# Note: Leak detection is disabled because libfuse itself is leaky...
|
||||||
ASAN_OPTIONS: "detect_leaks=0 check_initialization_order=1 detect_stack_use_after_return=1 detect_invalid_pointer_pairs=1 atexit=1"
|
ASAN_OPTIONS: "detect_leaks=0 check_initialization_order=1 detect_stack_use_after_return=1 detect_invalid_pointer_pairs=1 atexit=1"
|
||||||
|
DISABLE_BROKEN_ASAN_TESTS: true
|
||||||
|
thread_sanitizer:
|
||||||
|
<<: *job_definition
|
||||||
|
environment:
|
||||||
|
CC: clang-5.0
|
||||||
|
CXX: clang++-5.0
|
||||||
|
BUILD_TOOLSET: clang
|
||||||
|
APT_COMPILER_PACKAGE: clang-5.0
|
||||||
|
CXXFLAGS: "-O2 -fsanitize=thread -fno-omit-frame-pointer"
|
||||||
|
BUILD_TYPE: "Debug"
|
||||||
|
DISABLE_BROKEN_TSAN_TESTS: true
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
build_and_test:
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
- gcc_4_8_debug:
|
- gcc_4_9_debug:
|
||||||
<<: *enable_for_tags
|
<<: *enable_for_tags
|
||||||
- gcc_4_8_release:
|
- gcc_4_9_release:
|
||||||
<<: *enable_for_tags
|
<<: *enable_for_tags
|
||||||
- gcc_5_debug:
|
- gcc_5_debug:
|
||||||
<<: *enable_for_tags
|
<<: *enable_for_tags
|
||||||
@ -397,4 +409,5 @@ workflows:
|
|||||||
<<: *enable_for_tags
|
<<: *enable_for_tags
|
||||||
- address_sanitizer:
|
- address_sanitizer:
|
||||||
<<: *enable_for_tags
|
<<: *enable_for_tags
|
||||||
|
- thread_sanitizer:
|
||||||
|
<<: *enable_for_tags
|
||||||
|
Loading…
Reference in New Issue
Block a user