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