Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/reusable_valgrind.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Run tests with valgrind intstrumentation tools: memcheck, drd, helgrind
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intstrumentation -> instrumentation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix that in the next PR; I'd like to omit waiting for the whole CI to re-run 😄

name: Valgrind

on: workflow_call
Expand All @@ -8,10 +9,6 @@ permissions:
jobs:
valgrind:
name: Valgrind
strategy:
fail-fast: false
matrix:
tool: ['memcheck', 'drd', 'helgrind']
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -42,5 +39,11 @@ jobs:
- name: Build
run: cmake --build ${{github.workspace}}/build --config Debug -j$(nproc)

- name: Run tests under valgrind
run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}}
- name: Run tests with 'memcheck'
run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build memcheck

- name: Run tests with 'drd'
run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build drd

- name: Run tests with 'helgrind'
run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build helgrind
2 changes: 2 additions & 0 deletions test/test_valgrind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ for test in $(ls -1 umf_test-*); do
fi || true
done

rm -rf ${BUILD_DIR}/test/cpuid

[ $ANY_TEST_FAILED -eq 0 ] && echo PASSED && exit 0

echo
Expand Down