summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 436758bdca503a32dfd7d6de8f1716a4d04c2882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
SUBDIRS = $(CHECKTWISTED) suppressions lib dbus

EXTRA_DIST = logs

noinst_PROGRAMS = \
	test-tpl-conf			\
	$(NULL)

TESTS = $(noinst_PROGRAMS)

LDADD = \
	$(top_builddir)/telepathy-logger/libtelepathy-logger.la \
	$(TPL_LIBS)

AM_CFLAGS = \
	$(ERROR_CFLAGS) \
	$(TPL_CFLAGS) \
	-I$(top_srcdir) \
	-I$(top_builddir) \
	$(NULL)

TESTS_ENVIRONMENT = \
	G_DEBUG=fatal-warnings,fatal-criticals		\
	TPL_TEST_MODE=true 				\
	TEST_LOG_DIR=@abs_top_srcdir@/tests/logs	\
	$(top_srcdir)/tools/test-wrapper.sh		\
	$(NULL)

check-valgrind: $(TESTS)
	G_SLICE=always-malloc \
	G_DEBUG=gc-friendly \
	$(MAKE) \
		TESTS_ENVIRONMENT="$(TESTS_ENVIRONMENT) \
		libtool --mode=execute valgrind \
			--leak-check=full \
			--show-reachable=no \
			--gen-suppressions=all \
			--num-callers=20 \
			--suppressions=@abs_top_srcdir@/tests/suppressions/tpl.supp \
			--error-exitcode=1" \
		check-TESTS

check_c_sources = \
	$(dbus_test_sources)	\
	test-tpl-conf.c		\
	$(NULL)

include $(top_srcdir)/tools/check-coding-style.mk
check-local: check-coding-style