]> git.0d.be Git - empathy.git/blob - tests/Makefile.am
Use a flat namespace for internal includes
[empathy.git] / tests / Makefile.am
1 SUBDIRS = interactive xml certificates
2
3 CLEANFILES=
4
5 SUPPRESSIONS=tp-glib.supp dlopen.supp
6
7 EXTRA_DIST =            \
8         test.manager    \
9         test.profile
10
11 AM_CPPFLAGS =                                           \
12         $(ERROR_CFLAGS)                                 \
13         -I$(top_srcdir)/libempathy                      \
14         -I$(top_srcdir)/libempathy-gtk                  \
15         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
16         -DGCR_API_SUBJECT_TO_CHANGE                     \
17         $(EMPATHY_CFLAGS)                               \
18         $(WARN_CFLAGS)                                  \
19         $(DISABLE_DEPRECATED)                           \
20         -DSRCDIR=\""$(abs_srcdir)"\"                    \
21         $(NULL)
22
23 LDADD =                                                         \
24         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
25         $(top_builddir)/libempathy/libempathy.la                \
26         $(EMPATHY_LIBS)                                         \
27         $(NULL)
28
29 tests_list =  \
30      empathy-irc-server-test                     \
31      empathy-irc-network-test                    \
32      empathy-irc-network-manager-test            \
33      empathy-chatroom-test                       \
34      empathy-chatroom-manager-test               \
35      empathy-parser-test                         \
36      empathy-live-search-test                    \
37      empathy-tls-test
38
39 noinst_PROGRAMS = $(tests_list)
40 TESTS = $(tests_list)
41
42 empathy_tls_test_SOURCES = empathy-tls-test.c \
43      test-helper.c test-helper.h \
44      mock-pkcs11.c mock-pkcs11.h
45
46 empathy_irc_server_test_SOURCES = empathy-irc-server-test.c \
47      test-helper.c test-helper.h                       \
48      test-irc-helper.h test-irc-helper.c
49
50 empathy_irc_network_test_SOURCES = empathy-irc-network-test.c \
51      test-helper.c test-helper.h                       \
52      test-irc-helper.h test-irc-helper.c
53
54 empathy_irc_network_manager_test_SOURCES = empathy-irc-network-manager-test.c \
55      test-helper.c test-helper.h                       \
56      test-irc-helper.h test-irc-helper.c
57
58 empathy_chatroom_test_SOURCES = empathy-chatroom-test.c \
59      test-helper.c test-helper.h
60
61 empathy_chatroom_manager_test_SOURCES = empathy-chatroom-manager-test.c \
62      test-helper.c test-helper.h
63
64 empathy_parser_test_SOURCES = empathy-parser-test.c \
65      test-helper.c test-helper.h
66
67 empathy_live_search_test_SOURCES = empathy-live-search-test.c \
68      test-helper.c test-helper.h
69
70 TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
71                     MC_PROFILE_DIR=@abs_top_srcdir@/tests \
72                     MC_MANAGER_DIR=@abs_top_srcdir@/tests
73
74 test-report: test-report.xml
75         gtester-report $(top_builddir)/tests/$@.xml > \
76           $(top_builddir)/tests/$@.html
77
78 test-report.xml: ${TESTS} test
79
80 test: ${TESTS}
81         gtester -o test-report.xml -k --verbose ${TESTS}
82
83 test-%: empathy-%-test
84         gtester -o $@-report.xml -k --verbose $<
85
86 .PHONY: test test-report