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