diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e88e0d23c0425f735a7dd0782f2e60ced6f37d18..3ef6b1bd1bf30f1c87bd9fb25d0ba67401f02799 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,9 @@ build: - cd build - cmake .. - cmake --build . -- -j 4 - - ctest -j4 -V >& test.log + - UBSAN_OPTIONS=print_stacktrace=1 + LSAN_OPTIONS=verbosity=1:log_threads=1 + ASAN_OPTIONS=detect_leaks=1:detect_stack_use_after_return=1 ctest -j4 -V -O test.log after_script: - cd build - ls diff --git a/CMakeModules/CorsikaUtilities.cmake b/CMakeModules/CorsikaUtilities.cmake index 6804e5a3e41861ca26fe8e7d096d8d2a3dc95700..3d78907f342523574d38918bc876fe34855cdc10 100644 --- a/CMakeModules/CorsikaUtilities.cmake +++ b/CMakeModules/CorsikaUtilities.cmake @@ -101,8 +101,7 @@ endmacro(CORSIKA_ADD_FILES_ABSOLUTE) function (CORSIKA_ADD_TEST name) target_include_directories (${name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test_outputs/) - add_test (NAME ${name} COMMAND LSAN_OPTIONS=verbosity=1:log_threads=1 - ${name} -o ${PROJECT_BINARY_DIR}/test_outputs/junit-${name}.xml -r junit) + add_test (NAME ${name} COMMAND ${name} -o ${PROJECT_BINARY_DIR}/test_outputs/junit-${name}.xml -r junit) # set(sanitize "address,implicit-integer-truncation,implicit-conversion,integer,alignment,bool,builtin,bounds,enum,float-cast-overflow,function,pointer-overflow,return,shift,shift-base,shift-exponent,unreachable,vla-bound,vptr") set(sanitize "address,undefined") ### leak sanitizer disabled for now, doesn't work on buildbot