1 # Pass FOLKS_TEST_VALGRIND=1 to make to enable Valgrind on the tests
2 # This file must be included _after_ TESTS_ENVIRONMENT has been set by the Makefile.am.
4 ifeq ($(FOLKS_TEST_CALLGRIND),1)
7 $(LIBTOOL) --mode=execute valgrind --tool=callgrind
10 ifeq ($(FOLKS_TEST_VALGRIND),1)
11 TESTS_ENVIRONMENT := \
12 G_DEBUG=$(G_DEBUG),gc-friendly \
13 G_SLICE=$(G_SLICE),always-malloc \
14 $(TESTS_ENVIRONMENT) \
15 $(LIBTOOL) --mode=execute valgrind \
18 --gen-suppressions=all \
21 --log-file=valgrind.log.%p