blob: 4b0cc5b0407764fcd1f0023a0e31179e0a99117f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
SUPPRESSIONS = $(top_srcdir)/test/valgrind.supp
%.valgrind: %
@$(TESTS_ENVIRONMENT) \
CK_FORK=no \
CK_DEFAULT_TIMEOUT=120 \
G_SLICE=always-malloc \
$(LIBTOOL) --mode=execute \
valgrind -q \
$(foreach s,$(SUPPRESSIONS),--suppressions=$(s)) \
--tool=memcheck --leak-check=full --trace-children=yes \
--leak-resolution=high --num-callers=20 \
--error-exitcode=1 \
./$*
valgrind: $(check_PROGRAMS)
for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(check_PROGRAMS)); do \
$(MAKE) $$t.valgrind; \
done;
|