]> git.0d.be Git - empathy.git/blob - tests/Makefile.am
Fixed headers in galician translation file
[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
20 LDADD =                                                         \
21         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
22         $(top_builddir)/libempathy/libempathy.la                \
23         $(EMPATHY_LIBS)
24
25 TEST_PROGS =                                     \
26      empathy-utils-test                          \
27      empathy-irc-server-test                     \
28      empathy-irc-network-test                    \
29      empathy-irc-network-manager-test            \
30      empathy-chatroom-test                       \
31      empathy-chatroom-manager-test               \
32      empathy-parser-test                         \
33      empathy-live-search-test
34
35 empathy_utils_test_SOURCES = empathy-utils-test.c \
36      test-helper.c test-helper.h
37
38 empathy_irc_server_test_SOURCES = empathy-irc-server-test.c \
39      test-helper.c test-helper.h                       \
40      test-irc-helper.h test-irc-helper.c
41
42 empathy_irc_network_test_SOURCES = empathy-irc-network-test.c \
43      test-helper.c test-helper.h                       \
44      test-irc-helper.h test-irc-helper.c
45
46 empathy_irc_network_manager_test_SOURCES = empathy-irc-network-manager-test.c \
47      test-helper.c test-helper.h                       \
48      test-irc-helper.h test-irc-helper.c
49
50 empathy_chatroom_test_SOURCES = empathy-chatroom-test.c \
51      test-helper.c test-helper.h
52
53 empathy_chatroom_manager_test_SOURCES = empathy-chatroom-manager-test.c \
54      test-helper.c test-helper.h
55
56 empathy_parser_test_SOURCES = empathy-parser-test.c \
57      test-helper.c test-helper.h
58
59 empathy_live_search_test_SOURCES = empathy-live-search-test.c \
60      test-helper.c test-helper.h
61
62 check_PROGRAMS = $(TEST_PROGS)
63
64 TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
65                     MC_PROFILE_DIR=@abs_top_srcdir@/tests \
66                     MC_MANAGER_DIR=@abs_top_srcdir@/tests
67
68 test-report: test-report.xml
69         gtester-report $(top_builddir)/tests/$@.xml > \
70           $(top_builddir)/tests/$@.html
71
72 test-report.xml: ${TEST_PROGS} test
73
74 test: ${TEST_PROGS}
75         gtester -o test-report.xml -k --verbose ${TEST_PROGS}
76
77 test-%: empathy-%-test
78         gtester -o $@-report.xml -k --verbose $<
79
80 .PHONY: test test-report