Commit 721f8224 authored by Ramon Nou's avatar Ramon Nou
Browse files

Merge branch '43-enable-asan-build-profile-in-ci' into 'main'

Resolve "Enable ASan build profile in CI"

This MR enables the usage of the ASan build configuration profile in the CI. This makes it so that CMake builds all binaries with ASan support, which in turn allows us to run all tests under ASan automatically.

Closes #43

See merge request !28
parents ed9648dc cfb31545
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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:
+1 −0
Original line number Diff line number Diff line
leak:__margo_handle_cache