Post-release version bump
[platform/upstream/folks.git] / valgrind.mk
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.
3
4 ifeq ($(FOLKS_TEST_CALLGRIND),1)
5 TESTS_ENVIRONMENT := \
6         $(TESTS_ENVIRONMENT) \
7         $(LIBTOOL) --mode=execute valgrind --tool=callgrind
8 endif
9
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 \
16                 --leak-check=full \
17                 --show-reachable=no \
18                 --gen-suppressions=all \
19                 --num-callers=20 \
20                 --error-exitcode=0 \
21                 --log-file=valgrind.log.%p
22 endif