Skip to content

Fix the test_valgrind.sh script running tests under valgrind #17

Fix the test_valgrind.sh script running tests under valgrind

Fix the test_valgrind.sh script running tests under valgrind #17

Workflow file for this run

name: Nightly
on: [push, pull_request]
jobs:
Valgrind:
name: Valgrind
strategy:
fail-fast: false
matrix:
tool: ['memcheck'] # TODO: enable 'drd' and 'helgrind' when all issues are fixed
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y cmake hwloc libhwloc-dev libjemalloc-dev libnuma-dev libtbb-dev valgrind
- name: Configure CMake
run: >
cmake
-B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=Debug
-DUMF_FORMAT_CODE_STYLE=OFF
-DUMF_DEVELOPER_MODE=ON
-DUMF_ENABLE_POOL_TRACKING=ON
-DUMF_BUILD_LIBUMF_POOL_SCALABLE=ON
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
- name: Build
run: >
cmake --build ${{github.workspace}}/build --config Debug -j$(nproc)
- name: Run tests under valgrind
working-directory: ${{github.workspace}}/build
run: ../test/test_valgrind.sh ${{matrix.tool}}