]> git.0d.be Git - empathy.git/blob - tests/Makefile.am
Update Simplifid Chinese 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         $(EMPATHY_CFLAGS)                               \
16         $(GTK_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         $(GTK_LIBS)                                             \
26         $(NULL)
27
28 TEST_PROGS =                                     \
29      empathy-utils-test                          \
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
38 empathy_utils_test_SOURCES = empathy-utils-test.c \
39      test-helper.c test-helper.h
40
41 empathy_irc_server_test_SOURCES = empathy-irc-server-test.c \
42      test-helper.c test-helper.h                       \
43      test-irc-helper.h test-irc-helper.c
44
45 empathy_irc_network_test_SOURCES = empathy-irc-network-test.c \
46      test-helper.c test-helper.h                       \
47      test-irc-helper.h test-irc-helper.c
48
49 empathy_irc_network_manager_test_SOURCES = empathy-irc-network-manager-test.c \
50      test-helper.c test-helper.h                       \
51      test-irc-helper.h test-irc-helper.c
52
53 empathy_chatroom_test_SOURCES = empathy-chatroom-test.c \
54      test-helper.c test-helper.h
55
56 empathy_chatroom_manager_test_SOURCES = empathy-chatroom-manager-test.c \
57      test-helper.c test-helper.h
58
59 empathy_parser_test_SOURCES = empathy-parser-test.c \
60      test-helper.c test-helper.h
61
62 empathy_live_search_test_SOURCES = empathy-live-search-test.c \
63      test-helper.c test-helper.h
64
65 check_PROGRAMS = $(TEST_PROGS)
66
67 TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
68                     MC_PROFILE_DIR=@abs_top_srcdir@/tests \
69                     MC_MANAGER_DIR=@abs_top_srcdir@/tests
70
71 test-report: test-report.xml
72         gtester-report $(top_builddir)/tests/$@.xml > \
73           $(top_builddir)/tests/$@.html
74
75 test-report.xml: ${TEST_PROGS} test
76
77 test: ${TEST_PROGS}
78         gtester -o test-report.xml -k --verbose ${TEST_PROGS}
79
80 test-%: empathy-%-test
81         gtester -o $@-report.xml -k --verbose $<
82
83 .PHONY: test test-report