]> git.0d.be Git - empathy.git/blob - tests/Makefile.am
Merge branch 'irc-command'
[empathy.git] / tests / Makefile.am
1 SUBDIRS = interactive xml
2
3 CLEANFILES=
4
5 SUPPRESSIONS=valgrind.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
19 LDADD =                                                         \
20         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
21         $(top_builddir)/libempathy/libempathy.la                \
22         $(EMPATHY_LIBS)
23
24 TEST_PROGS =                                     \
25      empathy-utils-test                          \
26      empathy-irc-server-test                     \
27      empathy-irc-network-test                    \
28      empathy-irc-network-manager-test            \
29      empathy-chatroom-test                       \
30      empathy-chatroom-manager-test
31
32 empathy_utils_test_SOURCES = empathy-utils-test.c \
33      test-helper.c test-helper.h
34
35 empathy_irc_server_test_SOURCES = empathy-irc-server-test.c \
36      test-helper.c test-helper.h                       \
37      test-irc-helper.h test-irc-helper.c
38
39 empathy_irc_network_test_SOURCES = empathy-irc-network-test.c \
40      test-helper.c test-helper.h                       \
41      test-irc-helper.h test-irc-helper.c
42
43 empathy_irc_network_manager_test_SOURCES = empathy-irc-network-manager-test.c \
44      test-helper.c test-helper.h                       \
45      test-irc-helper.h test-irc-helper.c
46
47 empathy_chatroom_test_SOURCES = empathy-chatroom-test.c \
48      test-helper.c test-helper.h
49
50 empathy_chatroom_manager_test_SOURCES = empathy-chatroom-manager-test.c \
51      test-helper.c test-helper.h
52
53 check_PROGRAMS = $(TEST_PROGS)
54
55 TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
56                     MC_PROFILE_DIR=@abs_top_srcdir@/tests \
57                     MC_MANAGER_DIR=@abs_top_srcdir@/tests
58
59 test-report: test-report.xml
60         gtester-report $(top_builddir)/tests/$@.xml > \
61           $(top_builddir)/tests/$@.html
62
63 test-report.xml: ${TEST_PROGS} test
64
65 test: ${TEST_PROGS}
66         gtester -o test-report.xml -k --verbose ${TEST_PROGS}
67
68 test-%: empathy-%-test
69         gtester -o $@-report.xml -k --verbose $<
70
71 .PHONY: test test-report