diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d2ac8d68ea6ade25c7b8a000caad38eb6811b6aa..0bb8359b49337832d0af66fee79e736f9eb23f7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,7 @@ build: - mkdir -p build - cd build - cmake + -DCMAKE_BUILD_TYPE:STRING=ASan -DCMAKE_PREFIX_PATH:STRING=/usr/local -DCMAKE_INSTALL_PREFIX:STRING=${CI_PROJECT_DIR}/compiled -DSCORD_BUILD_EXAMPLES:BOOL=ON @@ -44,6 +45,8 @@ rpc: stage: test needs: [build] script: + - export ASAN_OPTIONS=detect_odr_violation=0 + - export LSAN_OPTIONS=verbosity=1:log_threads=1:suppressions=tests/LSanSuppress.supp - export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64:${CI_PROJECT_DIR}/compiled/lib - compiled/bin/scord -f --force-console & - build/examples/cxx/ADM_ping ofi+tcp://127.0.0.1:52000 @@ -54,9 +57,11 @@ unit: stage: test needs: [build] script: + - export ASAN_OPTIONS=detect_odr_violation=0 + - export LSAN_OPTIONS=verbosity=1:log_threads=1:suppressions=${CI_PROJECT_DIR}/tests/LSanSuppress.supp - export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64:${CI_PROJECT_DIR}/compiled/lib - cd build/tests - - ctest -j$(nproc) --output-junit report.xml + - ctest -j$(nproc) --output-on-failure --output-junit report.xml artifacts: expire_in: 1 week paths: diff --git a/tests/LSanSuppress.supp b/tests/LSanSuppress.supp new file mode 100644 index 0000000000000000000000000000000000000000..d0b3d8a1d8f328fa7cc211a31a3f99a468da71d1 --- /dev/null +++ b/tests/LSanSuppress.supp @@ -0,0 +1 @@ +leak:__margo_handle_cache