]> git.0d.be Git - empathy.git/blob - tests/Makefile.am
Updated Russian translation
[empathy.git] / tests / Makefile.am
1 SUBDIRS = interactive xml
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         $(NULL)
20
21 LDADD =                                                         \
22         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
23         $(top_builddir)/libempathy/libempathy.la                \
24         $(EMPATHY_LIBS)                                         \
25         $(NULL)
26
27 TEST_PROGS =                                     \
28      empathy-utils-test                          \
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 empathy_utils_test_SOURCES = empathy-utils-test.c \
39      test-helper.c test-helper.h
40
41 empathy_tls_test_SOURCES = empathy-tls-test.c \
42      test-helper.c test-helper.h
43
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
47
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
51
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
55
56 empathy_chatroom_test_SOURCES = empathy-chatroom-test.c \
57      test-helper.c test-helper.h
58
59 empathy_chatroom_manager_test_SOURCES = empathy-chatroom-manager-test.c \
60      test-helper.c test-helper.h
61
62 empathy_parser_test_SOURCES = empathy-parser-test.c \
63      test-helper.c test-helper.h
64
65 empathy_live_search_test_SOURCES = empathy-live-search-test.c \
66      test-helper.c test-helper.h
67
68 check_PROGRAMS = $(TEST_PROGS)
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: ${TEST_PROGS} test
79
80 test: ${TEST_PROGS}
81         gtester -o test-report.xml -k --verbose ${TEST_PROGS}
82
83 test-%: empathy-%-test
84         gtester -o $@-report.xml -k --verbose $<
85
86 .PHONY: test test-report