Skip to content

Commit 3902889

Browse files
committed
ci: add the python tests to the valgrind CI
Don't bother checking for leaks, since we don't clean up in these tests.
1 parent aa7d4c8 commit 3902889

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ test_with_valgrind:
2323
- make check -j $(($(grep ^processor /proc/cpuinfo | wc -l) / 2))
2424
- for t in $(ls src/.libs/test_* | egrep -v '_clear|xml|json' | tr '\n' ' '); do LD_LIBRARY_PATH=./src/.libs/ valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --xml=yes --xml-file=$t.xml $t; done
2525
- for t in $(ls src/.libs/test_* | egrep -v '_clear|xml|json' | tr '\n' ' '); do valgrind-codequality --input-file $t.xml --output-file $t.json; done
26-
- jq '[.[]|.[]]' -s ./src/.libs/test_*.json > valgrind.json
26+
- for t in $(ls src/test/test_*.py | tr '\n' ' '); do WALLY_SKIP_EXPENSIVE_TESTS=1 PYTHONMALLOC=malloc PYTHONDEVMODE=1 MALLOC_CHECK_=3 valgrind --tool=memcheck --leak-check=no --verbose --xml=yes --xml-file=$t.xml python $t; done
27+
- for t in $(ls src/test/test_*.py | tr '\n' ' '); do valgrind-codequality --input-file $t.xml --output-file $t.json; done
28+
- jq '[.[]|.[]]' -s ./src/.libs/test_*.json src/test/test_*.json > valgrind.json
2729

2830
test_asan_ubsan_gcc:
2931
stage: test

0 commit comments

Comments
 (0)