File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1+ # Run tests with valgrind intstrumentation tools: memcheck, drd, helgrind
12name : Valgrind
23
34on : workflow_call
@@ -8,10 +9,6 @@ permissions:
89jobs :
910 valgrind :
1011 name : Valgrind
11- strategy :
12- fail-fast : false
13- matrix :
14- tool : ['memcheck', 'drd', 'helgrind']
1512 runs-on : ubuntu-latest
1613
1714 steps :
4239 - name : Build
4340 run : cmake --build ${{github.workspace}}/build --config Debug -j$(nproc)
4441
45- - name : Run tests under valgrind
46- run : ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}}
42+ - name : Run tests with 'memcheck'
43+ run : ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build memcheck
44+
45+ - name : Run tests with 'drd'
46+ run : ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build drd
47+
48+ - name : Run tests with 'helgrind'
49+ run : ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build helgrind
Original file line number Diff line number Diff line change @@ -145,6 +145,8 @@ for test in $(ls -1 umf_test-*); do
145145 fi || true
146146done
147147
148+ rm -rf ${BUILD_DIR} /test/cpuid
149+
148150[ $ANY_TEST_FAILED -eq 0 ] && echo PASSED && exit 0
149151
150152echo
You can’t perform that action at this time.
0 commit comments