summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 78a3ecef947fa6492dda04c745de93443d949dd0 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
CLEANFILES=

include $(top_srcdir)/rules/check.mak

SUPPRESSIONS=valgrind.supp dlopen.supp

SUBDIRS = twisted

.PHONY: always-run test test-report

# ------------------------------------------------------------------------------
# telepathy-salut-debug

noinst_PROGRAMS = \
        telepathy-salut-debug

telepathy_salut_debug_SOURCES = \
    salut-debug.c

telepathy_salut_debug_LDADD = \
    $(top_builddir)/src/libsalut-convenience.la \
    $(top_builddir)/lib/gibber/libgibber.la \
    $(top_builddir)/extensions/libsalut-extensions.la \
    -ltelepathy-glib

# Teach it how to make libgibber.la
$(top_builddir)/lib/gibber/libgibber.la:
	${MAKE} -C $(top_builddir)/lib/gibber libgibber.la

.PHONY: $(top_builddir)/lib/gibber/libgibber.la

# ------------------------------------------------------------------------------
# TESTS

check_PROGRAMS = check-node-properties

AM_CFLAGS = $(ERROR_CFLAGS) @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ @WOCKY_CFLAGS@ \
    @DBUS_CFLAGS@ @TELEPATHY_GLIB_CFLAGS@ \
    -I $(top_srcdir) -I $(top_builddir) \
    -I $(top_srcdir)/lib -I $(top_builddir)/lib \
    -I $(top_srcdir)/src -I $(top_builddir)/src

AM_LDFLAGS = @GLIB_LIBS@ @TELEPATHY_GLIB_LIBS@

check_node_properties_LDADD = \
    $(top_builddir)/lib/gibber/libgibber.la \
    $(top_builddir)/src/libsalut-convenience.la \
    $(top_builddir)/src/libsalut-backend-avahi.la \
    $(AM_LDFLAGS)

check_node_properties_CFLAGS = \
    $(AM_CFLAGS)

test: ${TEST_PROGS}
	gtester -k --verbose $(check_PROGRAMS)

# ------------------------------------------------------------------------------
# CODING STYLE

# Coding style checks
check_c_sources = \
    $(telepathy_salut_debug_SOURCES) \
    $(test_xmpp_connection_SOURCES) \
    $(test_r_multicast_transport_io_SOURCES) \
    $(check_main_SOURCES)

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

check-local: check-coding-style test