]> git.0d.be Git - empathy.git/blob - tests/Makefile.am
Use the telepathy-account-widgets submodule instead of the internal copy
[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         $(TPAW_CFLAGS)                                  \
19         $(WARN_CFLAGS)                                  \
20         $(DISABLE_DEPRECATED)                           \
21         -DSRCDIR=\""$(abs_srcdir)"\"                    \
22         $(NULL)
23
24 LDADD =                                                         \
25         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
26         $(top_builddir)/libempathy/libempathy.la                \
27         $(TPAW_LIBS)                                            \
28         $(EMPATHY_LIBS)                                         \
29         $(NULL)
30
31 tests_list =  \
32      empathy-irc-server-test                     \
33      empathy-irc-network-test                    \
34      empathy-irc-network-manager-test            \
35      empathy-chatroom-test                       \
36      empathy-chatroom-manager-test               \
37      empathy-parser-test                         \
38      empathy-live-search-test                    \
39      empathy-tls-test
40
41 noinst_PROGRAMS = $(tests_list)
42 TESTS = $(tests_list)
43
44 empathy_tls_test_SOURCES = empathy-tls-test.c \
45      test-helper.c test-helper.h \
46      mock-pkcs11.c mock-pkcs11.h
47
48 empathy_irc_server_test_SOURCES = empathy-irc-server-test.c \
49      test-helper.c test-helper.h                       \
50      test-irc-helper.h test-irc-helper.c
51
52 empathy_irc_network_test_SOURCES = empathy-irc-network-test.c \
53      test-helper.c test-helper.h                       \
54      test-irc-helper.h test-irc-helper.c
55
56 empathy_irc_network_manager_test_SOURCES = empathy-irc-network-manager-test.c \
57      test-helper.c test-helper.h                       \
58      test-irc-helper.h test-irc-helper.c
59
60 empathy_chatroom_test_SOURCES = empathy-chatroom-test.c \
61      test-helper.c test-helper.h
62
63 empathy_chatroom_manager_test_SOURCES = empathy-chatroom-manager-test.c \
64      test-helper.c test-helper.h
65
66 empathy_parser_test_SOURCES = empathy-parser-test.c \
67      test-helper.c test-helper.h
68
69 empathy_live_search_test_SOURCES = empathy-live-search-test.c \
70      test-helper.c test-helper.h
71
72 TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
73                     MC_PROFILE_DIR=@abs_top_srcdir@/tests \
74                     MC_MANAGER_DIR=@abs_top_srcdir@/tests
75
76 test-report: test-report.xml
77         gtester-report $(top_builddir)/tests/$@.xml > \
78           $(top_builddir)/tests/$@.html
79
80 test-report.xml: ${TESTS} test
81
82 test: ${TESTS}
83         gtester -o test-report.xml -k --verbose ${TESTS}
84
85 test-%: empathy-%-test
86         gtester -o $@-report.xml -k --verbose $<
87
88 .PHONY: test test-report