blob: c49597188e63e12524a975b0567c4a0971d05366 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
SUBDIRS = interactive xml
CLEANFILES=
include $(top_srcdir)/rules/check.mak
SUPPRESSIONS=valgrind.supp dlopen.supp
EXTRA_DIST = \
test.manager \
test.profile
AM_CPPFLAGS = \
$(ERROR_CFLAGS) \
-I$(top_srcdir) \
-DPKGDATADIR=\""$(pkgdatadir)"\" \
$(EMPATHY_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)
LDADD = \
$(top_builddir)/libempathy-gtk/libempathy-gtk.la \
$(top_builddir)/libempathy/libempathy.la \
$(EMPATHY_LIBS)
TEST_PROGS = \
empathy-utils-test \
empathy-irc-server-test \
empathy-irc-network-test \
empathy-irc-network-manager-test \
empathy-chatroom-test \
empathy-chatroom-manager-test
empathy_utils_test_SOURCES = empathy-utils-test.c \
test-helper.c test-helper.h
empathy_irc_server_test_SOURCES = empathy-irc-server-test.c \
test-helper.c test-helper.h \
check-irc-helper.h check-irc-helper.c
empathy_irc_network_test_SOURCES = empathy-irc-network-test.c \
test-helper.c test-helper.h \
check-irc-helper.h check-irc-helper.c
empathy_irc_network_manager_test_SOURCES = empathy-irc-network-manager-test.c \
test-helper.c test-helper.h \
check-irc-helper.h check-irc-helper.c \
check-empathy-helpers.h check-empathy-helpers.c
empathy_chatroom_test_SOURCES = empathy-chatroom-test.c \
test-helper.c test-helper.h
empathy_chatroom_manager_test_SOURCES = empathy-chatroom-manager-test.c \
test-helper.c test-helper.h
check_PROGRAMS = check-main $(TEST_PROGS)
TESTS = check-main
check_main_SOURCES = \
check-main.c \
check-helpers.c \
check-helpers.h \
check-libempathy.h \
check-empathy-helpers.h \
check-empathy-helpers.c \
check-irc-helper.h \
check-irc-helper.c
check_c_sources = \
$(check_main_SOURCES)
include $(top_srcdir)/tools/check-coding-style.mk
check-local: test check-coding-style
check_main_LDADD = \
@CHECK_LIBS@ \
$(top_builddir)/libempathy-gtk/libempathy-gtk.la \
$(top_builddir)/libempathy/libempathy.la \
$(AM_LDFLAGS)
check_main_CFLAGS = \
@CHECK_CFLAGS@ \
$(AM_CFLAGS)
TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
MC_PROFILE_DIR=@abs_top_srcdir@/tests \
MC_MANAGER_DIR=@abs_top_srcdir@/tests
test-report: test-report.xml
gtester-report $(top_builddir)/tests/$@.xml > \
$(top_builddir)/tests/$@.html
test-report.xml: ${TEST_PROGS} test
test: ${TEST_PROGS}
gtester -o test-report.xml -k --verbose ${TEST_PROGS}
test-%: empathy-%-test
gtester -o $@-report.xml -k --verbose $<
.PHONY: test test-report
|