build: improve valgrind-testing
This commit is contained in:
5
Makefile
5
Makefile
@ -70,9 +70,12 @@ clean:
|
|||||||
test-verbose-if-fail: all
|
test-verbose-if-fail: all
|
||||||
@cd $(BUILDDIR); $(MESON) test || $(MESON) test --verbose
|
@cd $(BUILDDIR); $(MESON) test || $(MESON) test --verbose
|
||||||
|
|
||||||
|
vg_opts:=--enable-debuginfod=no --leak-check=full --error-exitcode=1
|
||||||
|
test-valgrind: export G_SLICE=always-malloc
|
||||||
|
test-valgrind: export G_DEBUG=gc-friendly
|
||||||
test-valgrind: $(BUILDDIR)
|
test-valgrind: $(BUILDDIR)
|
||||||
@cd $(BUILDDIR); $(MESON) test \
|
@cd $(BUILDDIR); $(MESON) test \
|
||||||
--wrap='valgrind --leak-check=full --error-exitcode=1' \
|
--wrap="valgrind $(vg_opts)" \
|
||||||
--timeout-multiplier 100
|
--timeout-multiplier 100
|
||||||
|
|
||||||
# we do _not_ pass helgrind; but this seems to be a false-alarm
|
# we do _not_ pass helgrind; but this seems to be a false-alarm
|
||||||
|
|||||||
Reference in New Issue
Block a user