Commit 69445cd7 authored by Michaël Roynard's avatar Michaël Roynard
Browse files

Add address sanitizer support on CI

parent b602e2d4
Pipeline #12776 failed with stages
in 6 minutes and 59 seconds
......@@ -70,6 +70,49 @@ distcheck-linux-clang-debug:
CC: "clang"
#############
# Sanitizer #
#############
.job-sanitize-linux-base: &distcheck-sanitize-linux-base
stage: test
script:
- mkdir build && cd build
- conan install .. -pr buildfarm --build=missing
- pacman -Sy --noconfirm llvm # TO BE DELETED
- cmake ..
-DCMAKE_BUILD_TYPE=$PYLENE_CONFIGURATION
-DCMAKE_C_FLAGS="-g3 -fsanitize=address -fno-omit-frame-pointer"
-DCMAKE_CXX_FLAGS="-g3 -fsanitize=address -fno-omit-frame-pointer"
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
-DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
-DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
- export ASAN_OPTIONS=symbolize=1
- export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)
- cmake --build .
--config $PYLENE_CONFIGURATION
--target check
dependencies: []
artifacts:
reports:
junit: build/tests/UT*.xml
distcheck-sanitize-linux-gcc-debug:
<<: *distcheck-sanitize-linux-base
variables:
PYLENE_CONFIGURATION: "Debug"
CXX: "g++"
CC: "gcc"
distcheck-sanitize-linux-clang-debug:
<<: *distcheck-sanitize-linux-base
variables:
PYLENE_CONFIGURATION: "Debug"
CXX: "clang++"
CC: "clang"
#########
# Bench #
#########
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment