summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 41cd6e47e395f399c5566d98ba0a55f54b50494c (plain)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
##
# Global definitions
NULL =
SUBDIRS =
AM_CPPFLAGS =								\
	-I$(top_srcdir)/liblangtag					\
	-I$(top_srcdir)							\
	-DTEST_DATADIR=$(TEST_DATADIR)					\
	-DTEST_MODDIR="\"$(abs_top_builddir)/extensions/.libs\""	\
	-D__LANGTAG_COMPILATION						\
	$(CHECK_CFLAGS)							\
	$(NULL)
DEPS =							\
	$(top_builddir)/liblangtag/liblangtag.la	\
	$(NULL)
LIBS =							\
	@LDFLAGS@					\
	$(top_builddir)/liblangtag/liblangtag.la	\
	$(CHECK_LIBS)					\
	$(NULL)
EXTRA_DIST =					\
	$(NULL)
TESTS =						\
	$(NULL)


##
# Local definitions
common_private_headers =			\
	main.h					\
	$(NULL)
common_sources =				\
	main.c					\
	$(NULL)

##
# Local Rules


##
# Target platform
noinst_HEADERS =				\
	$(common_private_headers)		\
	$(NULL)
noinst_PROGRAMS =				\
	test-extlang-db				\
	test-grandfathered-db			\
	test-lang-db				\
	test-redundant-db			\
	test-region-db				\
	test-script-db				\
	test-tag				\
	test-variant-db				\
	$(NULL)
if ENABLE_UNIT_TEST
testcases =					\
	check-extlang				\
	check-grandfathered			\
	check-lang				\
	check-list				\
	check-region				\
	check-script				\
	check-tag				\
	check-trie				\
	check-variant				\
	$(NULL)
noinst_PROGRAMS +=		\
	$(testcases)		\
	$(NULL)
TESTS +=			\
	$(testcases)		\
	$(NULL)
endif
#
test_extlang_db_SOURCES =	\
	extlang-db.c		\
	$(NULL)
#
test_grandfathered_db_SOURCES =	\
	grandfathered-db.c	\
	$(NULL)
#
test_lang_db_SOURCES =	\
	lang-db.c	\
	$(NULL)
#
test_redundant_db_SOURCES =	\
	redundant-db.c		\
	$(NULL)
#
test_region_db_SOURCES =	\
	region-db.c		\
	$(NULL)
#
test_script_db_SOURCES =	\
	script-db.c		\
	$(NULL)
#
test_tag_SOURCES =	\
	tag.c		\
	$(NULL)
#
test_variant_db_SOURCES =	\
	variant-db.c		\
	$(NULL)
#
if ENABLE_UNIT_TEST
check_extlang_SOURCES =		\
	check-extlang.c		\
	$(common_sources)	\
	$(NULL)
check_grandfathered_SOURCES =	\
	check-grandfathered.c	\
	$(common_sources)	\
	$(NULL)
check_lang_SOURCES =		\
	check-lang.c		\
	$(common_sources)	\
	$(NULL)
check_list_SOURCES =		\
	check-list.c		\
	$(common_sources)	\
	$(NULL)
check_region_SOURCES =		\
	check-region.c		\
	$(common_sources)	\
	$(NULL)
check_script_SOURCES =		\
	check-script.c		\
	$(common_sources)	\
	$(NULL)
check_tag_SOURCES =		\
	check-tag.c		\
	$(common_sources)	\
	$(NULL)
check_trie_SOURCES =		\
	check-trie.c		\
	$(common_sources)	\
	$(NULL)
check_variant_SOURCES =		\
	check-variant.c		\
	$(common_sources)	\
	$(NULL)
endif

-include $(top_srcdir)/git.mk