[go: up one dir, main page]

File: valgrind.mk

package info (click to toggle)
folks 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,488 kB
  • ctags: 39,549
  • sloc: ansic: 328,100; sh: 11,495; makefile: 2,762; python: 137
file content (22 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Pass FOLKS_TEST_VALGRIND=1 to make to enable Valgrind on the tests
# This file must be included _after_ TESTS_ENVIRONMENT has been set by the Makefile.am.

ifeq ($(FOLKS_TEST_CALLGRIND),1)
TESTS_ENVIRONMENT := \
	$(TESTS_ENVIRONMENT) \
	$(LIBTOOL) --mode=execute valgrind --tool=callgrind
endif

ifeq ($(FOLKS_TEST_VALGRIND),1)
TESTS_ENVIRONMENT := \
	G_DEBUG=$(G_DEBUG),gc-friendly \
	G_SLICE=$(G_SLICE),always-malloc \
	$(TESTS_ENVIRONMENT) \
	$(LIBTOOL) --mode=execute valgrind \
		--leak-check=full \
		--show-reachable=no \
		--gen-suppressions=all \
		--num-callers=20 \
		--error-exitcode=0 \
		--log-file=valgrind.log.%p
endif