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