Updated Swedish translation
[empathy-mirror.git] / tests / Makefile.am
blob863282627e8a514ed761775291db9cf77521e6f4
1 SUBDIRS = interactive xml certificates
3 CLEANFILES=
5 SUPPRESSIONS=tp-glib.supp dlopen.supp
7 AM_CPPFLAGS =                                           \
8         $(ERROR_CFLAGS)                                 \
9         -I$(top_srcdir)/libempathy                      \
10         -I$(top_srcdir)/libempathy-gtk                  \
11         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
12         -DGCR_API_SUBJECT_TO_CHANGE                     \
13         $(EMPATHY_CFLAGS)                               \
14         $(TPAW_CFLAGS)                                  \
15         $(WARN_CFLAGS)                                  \
16         $(DISABLE_DEPRECATED)                           \
17         -DSRCDIR=\""$(abs_srcdir)"\"                    \
18         $(NULL)
20 LDADD =                                                         \
21         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
22         $(top_builddir)/libempathy/libempathy.la                \
23         $(TPAW_LIBS)                                            \
24         $(EMPATHY_LIBS)                                         \
25         $(NULL)
27 tests_list =  \
28      empathy-irc-server-test                     \
29      empathy-irc-network-test                    \
30      empathy-irc-network-manager-test            \
31      empathy-chatroom-test                       \
32      empathy-chatroom-manager-test               \
33      empathy-parser-test                         \
34      empathy-live-search-test                    \
35      empathy-tls-test
37 noinst_PROGRAMS = $(tests_list)
38 TESTS = $(tests_list)
40 empathy_tls_test_SOURCES = empathy-tls-test.c \
41      test-helper.c test-helper.h \
42      mock-pkcs11.c mock-pkcs11.h
44 empathy_irc_server_test_SOURCES = empathy-irc-server-test.c \
45      test-helper.c test-helper.h                       \
46      test-irc-helper.h test-irc-helper.c
48 empathy_irc_network_test_SOURCES = empathy-irc-network-test.c \
49      test-helper.c test-helper.h                       \
50      test-irc-helper.h test-irc-helper.c
52 empathy_irc_network_manager_test_SOURCES = empathy-irc-network-manager-test.c \
53      test-helper.c test-helper.h                       \
54      test-irc-helper.h test-irc-helper.c
56 empathy_chatroom_test_SOURCES = empathy-chatroom-test.c \
57      test-helper.c test-helper.h
59 empathy_chatroom_manager_test_SOURCES = empathy-chatroom-manager-test.c \
60      test-helper.c test-helper.h
62 empathy_parser_test_SOURCES = empathy-parser-test.c \
63      test-helper.c test-helper.h
65 empathy_live_search_test_SOURCES = empathy-live-search-test.c \
66      test-helper.c test-helper.h
68 check_c_sources = \
69     $(empathy_tls_test_SOURCES) \
70     $(empathy_irc_server_test_SOURCES) \
71     $(empathy_irc_network_test_SOURCES) \
72     $(empathy_irc_network_manager_test_SOURCES) \
73     $(empathy_chatroom_test_SOURCES) \
74     $(empathy_chatroom_manager_test_SOURCES) \
75     $(empathy_parser_test_SOURCES) \
76     $(empathy_live_search_test_SOURCES)
77 include $(top_srcdir)/tools/check-coding-style.mk
78 check-local: check-coding-style
80 TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
81                     MC_PROFILE_DIR=@abs_top_srcdir@/tests \
82                     MC_MANAGER_DIR=@abs_top_srcdir@/tests
84 test-report: test-report.xml
85         gtester-report $(top_builddir)/tests/$@.xml > \
86           $(top_builddir)/tests/$@.html
88 test-report.xml: ${TESTS} test
90 test: ${TESTS}
91         gtester -o test-report.xml -k --verbose ${TESTS}
93 test-%: empathy-%-test
94         gtester -o $@-report.xml -k --verbose $<
96 .PHONY: test test-report