2 # Copyright (C) 2011 Data Differential
5 # Use and distribution licensed under the BSD license. See
6 # the COPYING file in the parent directory for full text.
8 # included from Top Level Makefile.am
9 # All paths should be given relative to the root
11 noinst_HEADERS+= tests/basic.h
12 noinst_HEADERS+= tests/callbacks.h
13 noinst_HEADERS+= tests/debug.h
14 noinst_HEADERS+= tests/deprecated.h
15 noinst_HEADERS+= tests/error_conditions.h
16 noinst_HEADERS+= tests/exist.h
17 noinst_HEADERS+= tests/ketama.h
18 noinst_HEADERS+= tests/ketama_test_cases.h
19 noinst_HEADERS+= tests/ketama_test_cases_spy.h
20 noinst_HEADERS+= tests/libmemcached-1.0/all_tests.h
21 noinst_HEADERS+= tests/libmemcached-1.0/callback_counter.h
22 noinst_HEADERS+= tests/libmemcached-1.0/dump.h
23 noinst_HEADERS+= tests/libmemcached-1.0/encoding_key.h
24 noinst_HEADERS+= tests/libmemcached-1.0/fetch_all_results.h
25 noinst_HEADERS+= tests/libmemcached-1.0/generate.h
26 noinst_HEADERS+= tests/libmemcached-1.0/haldenbrand.h
27 noinst_HEADERS+= tests/libmemcached-1.0/mem_functions.h
28 noinst_HEADERS+= tests/libmemcached-1.0/memcached_get.h
29 noinst_HEADERS+= tests/libmemcached-1.0/parser.h
30 noinst_HEADERS+= tests/libmemcached-1.0/setup_and_teardowns.h
31 noinst_HEADERS+= tests/libmemcached-1.0/stat.h
32 noinst_HEADERS+= tests/namespace.h
33 noinst_HEADERS+= tests/pool.h
34 noinst_HEADERS+= tests/print.h
35 noinst_HEADERS+= tests/replication.h
36 noinst_HEADERS+= tests/server_add.h
37 noinst_HEADERS+= tests/string.h
38 noinst_HEADERS+= tests/touch.h
39 noinst_HEADERS+= tests/virtual_buckets.h
42 tests_libmemcached_1_0_internals_CXXFLAGS=
43 tests_libmemcached_1_0_internals_DEPENDENCIES=
44 tests_libmemcached_1_0_internals_LDADD=
45 tests_libmemcached_1_0_internals_SOURCES=
47 tests_libmemcached_1_0_internals_SOURCES+= tests/libmemcached-1.0/internals.cc
48 tests_libmemcached_1_0_internals_SOURCES+= tests/libmemcached-1.0/string.cc
49 tests_libmemcached_1_0_internals_CXXFLAGS+= $(AM_CXXFLAGS)
50 tests_libmemcached_1_0_internals_CXXFLAGS+= ${PTHREAD_CFLAGS}
51 tests_libmemcached_1_0_internals_DEPENDENCIES+= libmemcachedinternal/libmemcachedinternal.la
52 tests_libmemcached_1_0_internals_DEPENDENCIES+= libtest/libtest.la
53 tests_libmemcached_1_0_internals_DEPENDENCIES+= libmemcachedinternal/libmemcachedutilinternal.la
54 tests_libmemcached_1_0_internals_LDADD+= libmemcachedinternal/libmemcachedinternal.la
55 tests_libmemcached_1_0_internals_LDADD+= ${PTHREAD_LIBS}
56 tests_libmemcached_1_0_internals_LDADD+= libmemcachedinternal/libmemcachedutilinternal.la
57 tests_libmemcached_1_0_internals_LDADD+= libtest/libtest.la
58 check_PROGRAMS+= tests/libmemcached-1.0/internals
59 noinst_PROGRAMS+= tests/libmemcached-1.0/internals
62 tests_libmemcached_1_0_testapp_CXXFLAGS=
63 tests_libmemcached_1_0_testapp_CFLAGS=
64 tests_libmemcached_1_0_testapp_SOURCES=
65 tests_libmemcached_1_0_testapp_DEPENDENCIES=
66 tests_libmemcached_1_0_testapp_LDADD=
68 tests_libmemcached_1_0_testapp_CXXFLAGS+= $(AM_CXXFLAGS)
69 tests_libmemcached_1_0_testapp_CXXFLAGS+= ${PTHREAD_CFLAGS}
70 tests_libmemcached_1_0_testapp_CFLAGS+= $(AM_CFLAGS)
71 tests_libmemcached_1_0_testapp_CFLAGS+= $(NO_CONVERSION)
72 tests_libmemcached_1_0_testapp_CFLAGS+= $(NO_STRICT_ALIASING)
73 tests_libmemcached_1_0_testapp_SOURCES+= clients/generator.cc clients/execute.cc
74 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/all_tests.cc
75 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/basic.cc
76 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/callback_counter.cc
77 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/callbacks.cc
78 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/debug.cc
79 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/deprecated.cc
80 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/dump.cc
81 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/encoding_key.cc
82 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/error_conditions.cc
83 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/exist.cc
84 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc
85 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/generate.cc
86 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/haldenbrand.cc
87 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/ketama.cc
88 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/mem_functions.cc
89 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/memcached_get.cc
90 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/namespace.cc
91 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/parser.cc
92 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/pool.cc
93 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/print.cc
94 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/replication.cc
95 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/server_add.cc
96 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/setup_and_teardowns.cc
97 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/stat.cc
98 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/touch.cc
99 tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/virtual_buckets.cc
100 tests_libmemcached_1_0_testapp_DEPENDENCIES+= libmemcached/libmemcached.la
101 tests_libmemcached_1_0_testapp_DEPENDENCIES+= libtest/libtest.la
102 tests_libmemcached_1_0_testapp_DEPENDENCIES+= libhashkit/libhashkit.la
103 tests_libmemcached_1_0_testapp_DEPENDENCIES+= libmemcached/libmemcachedutil.la
105 tests_libmemcached_1_0_testapp_LDADD+= $(LIBUUID_LDFLAGS)
106 tests_libmemcached_1_0_testapp_LDADD+= ${PTHREAD_LIBS}
107 tests_libmemcached_1_0_testapp_LDADD+= libmemcached/libmemcached.la
108 tests_libmemcached_1_0_testapp_LDADD+= libmemcached/libmemcachedutil.la
109 tests_libmemcached_1_0_testapp_LDADD+= libtest/libtest.la
110 tests_libmemcached_1_0_testapp_LDADD+= libhashkit/libhashkit.la
112 check_PROGRAMS+= tests/libmemcached-1.0/testapp
113 noinst_PROGRAMS+= tests/libmemcached-1.0/testapp
115 tests_libmemcached_1_0_testsocket_CXXFLAGS=
116 tests_libmemcached_1_0_testsocket_CFLAGS=
117 tests_libmemcached_1_0_testsocket_SOURCES=
118 tests_libmemcached_1_0_testsocket_DEPENDENCIES=
119 tests_libmemcached_1_0_testsocket_LDADD=
121 tests_libmemcached_1_0_testsocket_CXXFLAGS+= ${PTHREAD_CFLAGS}
122 tests_libmemcached_1_0_testsocket_CXXFLAGS+= $(AM_CXXFLAGS)
123 tests_libmemcached_1_0_testsocket_CFLAGS+= $(AM_CFLAGS)
124 tests_libmemcached_1_0_testsocket_CFLAGS+= $(NO_CONVERSION)
125 tests_libmemcached_1_0_testsocket_CFLAGS+= $(NO_STRICT_ALIASING)
127 tests_libmemcached_1_0_testsocket_SOURCES+= clients/execute.cc
128 tests_libmemcached_1_0_testsocket_SOURCES+= clients/generator.cc
129 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/all_tests_socket.cc
130 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/basic.cc
131 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/callback_counter.cc
132 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/callbacks.cc
133 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/debug.cc
134 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/deprecated.cc
135 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/dump.cc
136 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/encoding_key.cc
137 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/error_conditions.cc
138 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/exist.cc
139 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc
140 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/generate.cc
141 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/haldenbrand.cc
142 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/ketama.cc
143 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/mem_functions.cc
144 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/memcached_get.cc
145 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/namespace.cc
146 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/parser.cc
147 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/pool.cc
148 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/print.cc
149 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/replication.cc
150 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/server_add.cc
151 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/setup_and_teardowns.cc
152 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/stat.cc
153 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/touch.cc
154 tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/virtual_buckets.cc
156 tests_libmemcached_1_0_testsocket_DEPENDENCIES+= libmemcached/libmemcached.la
157 tests_libmemcached_1_0_testsocket_DEPENDENCIES+= libtest/libtest.la
158 tests_libmemcached_1_0_testsocket_DEPENDENCIES+= libhashkit/libhashkit.la
159 tests_libmemcached_1_0_testsocket_DEPENDENCIES+= libmemcached/libmemcachedutil.la
161 tests_libmemcached_1_0_testsocket_LDADD+= $(LIBUUID_LDFLAGS)
162 tests_libmemcached_1_0_testsocket_LDADD+= ${PTHREAD_LIBS}
163 tests_libmemcached_1_0_testsocket_LDADD+= libmemcached/libmemcached.la
164 tests_libmemcached_1_0_testsocket_LDADD+= libmemcached/libmemcachedutil.la
165 tests_libmemcached_1_0_testsocket_LDADD+= libtest/libtest.la
166 tests_libmemcached_1_0_testsocket_LDADD+= libhashkit/libhashkit.la
168 check_PROGRAMS+= tests/libmemcached-1.0/testsocket
169 noinst_PROGRAMS+= tests/libmemcached-1.0/testsocket
171 test-socket: tests/libmemcached-1.0/testsocket
172 @tests/libmemcached-1.0/testsocket
174 tests_libmemcached_1_0_sasl_SOURCES=
175 tests_libmemcached_1_0_sasl_DEPENDENCIES=
176 tests_libmemcached_1_0_sasl_LDADD=
177 tests_libmemcached_1_0_sasl_CXXFLAGS=
178 tests_libmemcached_1_0_sasl_CFLAGS=
180 tests_libmemcached_1_0_sasl_CXXFLAGS+= $(AM_CXXFLAGS)
181 tests_libmemcached_1_0_sasl_CXXFLAGS+= ${PTHREAD_CFLAGS}
182 tests_libmemcached_1_0_sasl_CFLAGS+= $(AM_CFLAGS)
183 tests_libmemcached_1_0_sasl_CFLAGS+= $(NO_CONVERSION)
184 tests_libmemcached_1_0_sasl_CFLAGS+= $(NO_STRICT_ALIASING)
185 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/basic.cc
186 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/debug.cc
187 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/deprecated.cc
188 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/error_conditions.cc
189 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/ketama.cc
190 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/namespace.cc
191 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/parser.cc
192 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/pool.cc
193 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/print.cc
194 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/replication.cc
195 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/sasl.cc
196 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/virtual_buckets.cc
197 tests_libmemcached_1_0_sasl_SOURCES+= clients/execute.cc
198 tests_libmemcached_1_0_sasl_SOURCES+= clients/generator.cc
199 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/callback_counter.cc
200 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc
201 tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/generate.cc
203 tests_libmemcached_1_0_sasl_DEPENDENCIES+= libmemcached/libmemcached.la
204 tests_libmemcached_1_0_sasl_DEPENDENCIES+= libtest/libtest.la
206 tests_libmemcached_1_0_sasl_LDADD+= ${PTHREAD_LIBS}
207 tests_libmemcached_1_0_sasl_LDADD+= libmemcached/libmemcached.la
208 tests_libmemcached_1_0_sasl_LDADD+= libmemcached/libmemcachedutil.la
209 tests_libmemcached_1_0_sasl_LDADD+= libtest/libtest.la
210 tests_libmemcached_1_0_sasl_LDADD+= libhashkit/libhashkit.la
212 check_PROGRAMS+= tests/libmemcached-1.0/sasl
213 noinst_PROGRAMS+= tests/libmemcached-1.0/sasl
215 tests_atomsmasher_SOURCES=
216 tests_atomsmasher_DEPENDENCIES=
217 tests_atomsmasher_LDADD=
219 tests_atomsmasher_DEPENDENCIES+= $(TESTS_LDADDS)
220 tests_atomsmasher_LDADD+= $(tests_atomsmasher_DEPENDENCIES)
221 tests_atomsmasher_SOURCES+= clients/execute.cc
222 tests_atomsmasher_SOURCES+= clients/generator.cc
223 tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/atomsmasher.cc
224 tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/callback_counter.cc
225 tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/debug.cc
226 tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc
227 tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/generate.cc
228 tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/print.cc
229 noinst_PROGRAMS+= tests/atomsmasher
231 tests_testudp_CFLAGS=
232 tests_testudp_SOURCES=
233 tests_testudp_DEPENDENCIES=
236 tests_testudp_CFLAGS+= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING)
237 tests_testudp_SOURCES+= clients/execute.cc
238 tests_testudp_SOURCES+= clients/generator.cc
239 tests_testudp_SOURCES+= tests/libmemcached-1.0/callback_counter.cc
240 tests_testudp_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc
241 tests_testudp_SOURCES+= tests/libmemcached-1.0/generate.cc
242 tests_testudp_SOURCES+= tests/libmemcached-1.0/print.cc
243 tests_testudp_SOURCES+= tests/mem_udp.cc
244 tests_testudp_DEPENDENCIES+= $(TESTS_LDADDS)
245 tests_testudp_LDADD+= $(tests_testudp_DEPENDENCIES)
246 check_PROGRAMS+= tests/testudp
247 noinst_PROGRAMS+= tests/testudp
249 test-udp: tests/testudp
252 tests_testplus_SOURCES=
253 tests_testplus_CXXFLAGS=
254 tests_testplus_DEPENDENCIES=
255 tests_testplus_LDADD=
257 tests_testplus_SOURCES+= clients/execute.cc
258 tests_testplus_SOURCES+= clients/generator.cc
259 tests_testplus_SOURCES+= tests/libmemcached-1.0/callback_counter.cc
260 tests_testplus_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc
261 tests_testplus_SOURCES+= tests/libmemcached-1.0/generate.cc
262 tests_testplus_SOURCES+= tests/libmemcached-1.0/plus.cpp
263 tests_testplus_SOURCES+= tests/libmemcached-1.0/print.cc
265 tests_testplus_CXXFLAGS+= $(AM_CXXFLAGS) $(NO_EFF_CXX)
266 tests_testplus_DEPENDENCIES+= $(TESTS_LDADDS)
267 tests_testplus_LDADD+= $(tests_testplus_DEPENDENCIES)
268 check_PROGRAMS+= tests/testplus
269 noinst_PROGRAMS+= tests/testplus
271 test-plus: tests/testplus
274 gdb-plus: tests/testplus
275 $(DEBUG_COMMAND) tests/testplus
277 valgrind-plus: tests/testplus
278 @$(VALGRIND_COMMAND) tests/testplus
280 helgrind-plus: tests/testplus
281 @$(HELGRIND_COMMAND) tests/testplus