summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2025-05-24 19:18:10 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2025-05-24 19:18:10 +0300
commit452969355c19cfe5d90cee5d2507ed6d53b11a0c (patch)
treedb3c10e2602f8cd364ccd8e5145c6f7a1b3223bc /Makefile
parent782e6cbe05f78ff95d86897b47aaec7a4f9fabaf (diff)
mu-test: add valgrind check
Make it a bit easier to skip some tests when running under valgrind.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c30a48e..0a8c8cf 100644
--- a/Makefile
+++ b/Makefile
@@ -93,6 +93,7 @@ $(BUILDDIR_VALGRIND):
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: export MU_VALGRIND=memcheck
test-valgrind: build-valgrind
@$(MESON) test -C $(BUILDDIR_VALGRIND) \
--wrap="$(VALGRIND) $(vg_opts)" \
@@ -102,6 +103,7 @@ check-valgrind: test-valgrind
# we do _not_ pass helgrind; but this seems to be a false-alarm
# https://gitlab.gnome.org/GNOME/glib/-/issues/2662
+test-helgrind: export MU_VALGRIND=helgrind
test-helgrind: $(BUILDDIR_VALGRIND)
$(MESON) -C $(BUILDDIR_VALGRIND) test \
--wrap="$(VALGRIND) --tool=helgrind --error-exitcode=1" \