From: Brian Aker Date: Sat, 28 Apr 2012 06:40:01 +0000 (-0700) Subject: Update the tests make include, and fix a redundant symbol. X-Git-Tag: 1.0.7~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=80628be129a55622efb7cc9f723ac52b5e1faccd;p=awesomized%2Flibmemcached Update the tests make include, and fix a redundant symbol. --- diff --git a/tests/libmemcached-1.0/atomsmasher.cc b/tests/libmemcached-1.0/atomsmasher.cc index e0872368..45171c8b 100644 --- a/tests/libmemcached-1.0/atomsmasher.cc +++ b/tests/libmemcached-1.0/atomsmasher.cc @@ -34,6 +34,8 @@ #include +#include "tests/libmemcached-1.0/generate.h" + using namespace libtest; /* Number of items generated for tests */ @@ -46,14 +48,14 @@ static pairs_st *global_pairs; static char *global_keys[GLOBAL_COUNT]; static size_t global_keys_length[GLOBAL_COUNT]; -static test_return_t cleanup_pairs(memcached_st *) +static test_return_t cleanup_pairs_TEST(memcached_st *) { pairs_free(global_pairs); return TEST_SUCCESS; } -static test_return_t generate_pairs(memcached_st *) +static test_return_t generate_pairs_TEST(memcached_st *) { global_pairs= pairs_generate(GLOBAL_COUNT, 400); @@ -66,26 +68,22 @@ static test_return_t generate_pairs(memcached_st *) return TEST_SUCCESS; } -static test_return_t drizzle(memcached_st *memc) +static test_return_t drizzle_TEST(memcached_st *memc) { infinite: for (ptrdiff_t x= 0; x < TEST_COUNTER; x++) { memcached_return_t rc; - char *return_value; - size_t return_value_length; - uint32_t flags; - - uint32_t test_bit; - uint8_t which; - test_bit= (uint32_t)(random() % GLOBAL_COUNT); - which= (uint8_t)(random() % 2); + uint32_t test_bit= (uint32_t)(random() % GLOBAL_COUNT); + uint8_t which= (uint8_t)(random() % 2); if (which == 0) { - return_value= memcached_get(memc, global_keys[test_bit], global_keys_length[test_bit], - &return_value_length, &flags, &rc); + size_t return_value_length; + uint32_t flags; + char* return_value= memcached_get(memc, global_keys[test_bit], global_keys_length[test_bit], + &return_value_length, &flags, &rc); if (rc == MEMCACHED_SUCCESS && return_value) { free(return_value); @@ -123,7 +121,7 @@ infinite: static test_return_t pre_nonblock(memcached_st *memc) { - memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NO_BLOCK, 0); + test_skip(MEMCACHED_SUCCESS, memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NO_BLOCK, 0)); return TEST_SUCCESS; } @@ -137,10 +135,9 @@ static test_return_t add_test(memcached_st *memc) const char *key= "foo"; const char *value= "when we sanitize"; - memcached_return_t rc; - rc= memcached_set(memc, key, strlen(key), - value, strlen(value), - (time_t)0, (uint32_t)0); + memcached_return_t rc= memcached_set(memc, key, strlen(key), + value, strlen(value), + time_t(0), uint32_t(0)); test_true_got(rc == MEMCACHED_SUCCESS or rc == MEMCACHED_BUFFERED, memcached_strerror(NULL, rc)); memcached_quit(memc); rc= memcached_add(memc, key, strlen(key), @@ -180,9 +177,9 @@ static test_return_t many_adds(memcached_st *memc) } test_st smash_tests[] ={ - {"generate_pairs", true, (test_callback_fn*)generate_pairs }, - {"drizzle", true, (test_callback_fn*)drizzle }, - {"cleanup", true, (test_callback_fn*)cleanup_pairs }, + {"generate_pairs", true, (test_callback_fn*)generate_pairs_TEST }, + {"drizzle", true, (test_callback_fn*)drizzle_TEST }, + {"cleanup", true, (test_callback_fn*)cleanup_pairs_TEST }, {"many_adds", true, (test_callback_fn*)many_adds }, {0, 0, 0} }; @@ -203,8 +200,7 @@ static test_return_t memcached_create_benchmark(memcached_st *) for (ptrdiff_t x= 0; x < BENCHMARK_TEST_LOOP; x++) { - memcached_st *ptr; - ptr= memcached_create(&benchmark_state.create[x]); + memcached_st *ptr= memcached_create(&benchmark_state.create[x]); test_true(ptr); } diff --git a/tests/libmemcached-1.0/generate.cc b/tests/libmemcached-1.0/generate.cc index 419d1ca2..836ea2c9 100644 --- a/tests/libmemcached-1.0/generate.cc +++ b/tests/libmemcached-1.0/generate.cc @@ -38,7 +38,7 @@ #include #include -#include +#include #include #include diff --git a/tests/libmemcached-1.0/include.am b/tests/libmemcached-1.0/include.am index e71c4eb8..5201653a 100644 --- a/tests/libmemcached-1.0/include.am +++ b/tests/libmemcached-1.0/include.am @@ -8,43 +8,50 @@ # included from Top Level Makefile.am # All paths should be given relative to the root -noinst_HEADERS+= \ - tests/basic.h \ - tests/callbacks.h \ - tests/debug.h \ - tests/deprecated.h \ - tests/error_conditions.h \ - tests/exist.h \ - tests/ketama.h \ - tests/ketama_test_cases.h \ - tests/ketama_test_cases_spy.h \ - tests/libmemcached-1.0/all_tests.h \ - tests/libmemcached-1.0/callback_counter.h \ - tests/libmemcached-1.0/dump.h \ - tests/libmemcached-1.0/fetch_all_results.h \ - tests/libmemcached-1.0/generate.h \ - tests/libmemcached-1.0/encoding_key.h \ - tests/libmemcached-1.0/haldenbrand.h \ - tests/libmemcached-1.0/mem_functions.h \ - tests/libmemcached-1.0/memcached_get.h \ - tests/libmemcached-1.0/setup_and_teardowns.h \ - tests/libmemcached-1.0/stat.h \ - tests/namespace.h \ - tests/parser.h \ - tests/pool.h \ - tests/print.h \ - tests/replication.h \ - tests/server_add.h \ - tests/string.h \ - tests/touch.h \ - tests/virtual_buckets.h +noinst_HEADERS+= tests/basic.h +noinst_HEADERS+= tests/callbacks.h +noinst_HEADERS+= tests/debug.h +noinst_HEADERS+= tests/deprecated.h +noinst_HEADERS+= tests/error_conditions.h +noinst_HEADERS+= tests/exist.h +noinst_HEADERS+= tests/ketama.h +noinst_HEADERS+= tests/ketama_test_cases.h +noinst_HEADERS+= tests/ketama_test_cases_spy.h +noinst_HEADERS+= tests/libmemcached-1.0/all_tests.h +noinst_HEADERS+= tests/libmemcached-1.0/callback_counter.h +noinst_HEADERS+= tests/libmemcached-1.0/dump.h +noinst_HEADERS+= tests/libmemcached-1.0/fetch_all_results.h +noinst_HEADERS+= tests/libmemcached-1.0/generate.h +noinst_HEADERS+= tests/libmemcached-1.0/encoding_key.h +noinst_HEADERS+= tests/libmemcached-1.0/haldenbrand.h +noinst_HEADERS+= tests/libmemcached-1.0/mem_functions.h +noinst_HEADERS+= tests/libmemcached-1.0/memcached_get.h +noinst_HEADERS+= tests/libmemcached-1.0/setup_and_teardowns.h +noinst_HEADERS+= tests/libmemcached-1.0/stat.h +noinst_HEADERS+= tests/namespace.h +noinst_HEADERS+= tests/parser.h +noinst_HEADERS+= tests/pool.h +noinst_HEADERS+= tests/print.h +noinst_HEADERS+= tests/replication.h +noinst_HEADERS+= tests/server_add.h +noinst_HEADERS+= tests/string.h +noinst_HEADERS+= tests/touch.h +noinst_HEADERS+= tests/virtual_buckets.h # Test internals -tests_libmemcached_1_0_internals_SOURCES= tests/libmemcached-1.0/internals.cc +tests_libmemcached_1_0_internals_CXXFLAGS= +tests_libmemcached_1_0_internals_DEPENDENCIES= +tests_libmemcached_1_0_internals_LDADD= +tests_libmemcached_1_0_internals_SOURCES= + +tests_libmemcached_1_0_internals_SOURCES+= tests/libmemcached-1.0/internals.cc tests_libmemcached_1_0_internals_SOURCES+= tests/libmemcached-1.0/string.cc -tests_libmemcached_1_0_internals_CXXFLAGS = $(AM_CXXFLAGS) ${PTHREAD_CFLAGS} -tests_libmemcached_1_0_internals_DEPENDENCIES= libmemcachedinternal/libmemcachedinternal.la libtest/libtest.la libmemcachedinternal/libmemcachedutilinternal.la -tests_libmemcached_1_0_internals_LDADD= libmemcachedinternal/libmemcachedinternal.la +tests_libmemcached_1_0_internals_CXXFLAGS+= $(AM_CXXFLAGS) +tests_libmemcached_1_0_internals_CXXFLAGS+= ${PTHREAD_CFLAGS} +tests_libmemcached_1_0_internals_DEPENDENCIES+= libmemcachedinternal/libmemcachedinternal.la +tests_libmemcached_1_0_internals_DEPENDENCIES+= libtest/libtest.la +tests_libmemcached_1_0_internals_DEPENDENCIES+= libmemcachedinternal/libmemcachedutilinternal.la +tests_libmemcached_1_0_internals_LDADD+= libmemcachedinternal/libmemcachedinternal.la tests_libmemcached_1_0_internals_LDADD+= ${PTHREAD_LIBS} tests_libmemcached_1_0_internals_LDADD+= libmemcachedinternal/libmemcachedutilinternal.la tests_libmemcached_1_0_internals_LDADD+= libtest/libtest.la @@ -52,151 +59,178 @@ check_PROGRAMS+= tests/libmemcached-1.0/internals noinst_PROGRAMS+= tests/libmemcached-1.0/internals -tests_libmemcached_1_0_testapp_CXXFLAGS = $(AM_CXXFLAGS) ${PTHREAD_CFLAGS} -tests_libmemcached_1_0_testapp_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING) +tests_libmemcached_1_0_testapp_CXXFLAGS= +tests_libmemcached_1_0_testapp_CFLAGS= tests_libmemcached_1_0_testapp_SOURCES= +tests_libmemcached_1_0_testapp_DEPENDENCIES= +tests_libmemcached_1_0_testapp_LDADD= + +tests_libmemcached_1_0_testapp_CXXFLAGS+= $(AM_CXXFLAGS) +tests_libmemcached_1_0_testapp_CXXFLAGS+= ${PTHREAD_CFLAGS} +tests_libmemcached_1_0_testapp_CFLAGS+= $(AM_CFLAGS) +tests_libmemcached_1_0_testapp_CFLAGS+= $(NO_CONVERSION) +tests_libmemcached_1_0_testapp_CFLAGS+= $(NO_STRICT_ALIASING) +tests_libmemcached_1_0_testapp_SOURCES+= clients/generator.cc clients/execute.cc tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/all_tests.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/basic.cc tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/callback_counter.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/callbacks.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/debug.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/deprecated.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/dump.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/encoding_key.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/error_conditions.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/exist.cc tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/generate.cc -tests_libmemcached_1_0_testapp_SOURCES+= \ - tests/libmemcached-1.0/basic.cc \ - tests/libmemcached-1.0/callbacks.cc \ - tests/libmemcached-1.0/debug.cc \ - tests/libmemcached-1.0/deprecated.cc \ - tests/libmemcached-1.0/dump.cc \ - tests/libmemcached-1.0/encoding_key.cc \ - tests/libmemcached-1.0/error_conditions.cc \ - tests/libmemcached-1.0/exist.cc \ - tests/libmemcached-1.0/haldenbrand.cc \ - tests/libmemcached-1.0/ketama.cc \ - tests/libmemcached-1.0/mem_functions.cc \ - tests/libmemcached-1.0/memcached_get.cc \ - tests/libmemcached-1.0/namespace.cc \ - tests/libmemcached-1.0/parser.cc \ - tests/libmemcached-1.0/pool.cc \ - tests/libmemcached-1.0/print.cc \ - tests/libmemcached-1.0/replication.cc \ - tests/libmemcached-1.0/server_add.cc \ - tests/libmemcached-1.0/setup_and_teardowns.cc \ - tests/libmemcached-1.0/stat.cc \ - tests/libmemcached-1.0/touch.cc \ - tests/libmemcached-1.0/virtual_buckets.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/haldenbrand.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/ketama.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/mem_functions.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/memcached_get.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/namespace.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/parser.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/pool.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/print.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/replication.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/server_add.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/setup_and_teardowns.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/stat.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/touch.cc +tests_libmemcached_1_0_testapp_SOURCES+= tests/libmemcached-1.0/virtual_buckets.cc +tests_libmemcached_1_0_testapp_DEPENDENCIES+= libmemcached/libmemcached.la +tests_libmemcached_1_0_testapp_DEPENDENCIES+= libtest/libtest.la +tests_libmemcached_1_0_testapp_DEPENDENCIES+= libhashkit/libhashkit.la +tests_libmemcached_1_0_testapp_DEPENDENCIES+= libmemcached/libmemcachedutil.la -tests_libmemcached_1_0_testapp_SOURCES+= clients/generator.cc clients/execute.cc -tests_libmemcached_1_0_testapp_DEPENDENCIES= \ - libmemcached/libmemcached.la \ - libtest/libtest.la \ - libhashkit/libhashkit.la \ - libmemcached/libmemcachedutil.la - -tests_libmemcached_1_0_testapp_LDADD= \ - $(LIBUUID_LDFLAGS) \ - ${PTHREAD_LIBS} \ - libmemcached/libmemcached.la \ - libmemcached/libmemcachedutil.la \ - libtest/libtest.la \ - libhashkit/libhashkit.la +tests_libmemcached_1_0_testapp_LDADD+= $(LIBUUID_LDFLAGS) +tests_libmemcached_1_0_testapp_LDADD+= ${PTHREAD_LIBS} +tests_libmemcached_1_0_testapp_LDADD+= libmemcached/libmemcached.la +tests_libmemcached_1_0_testapp_LDADD+= libmemcached/libmemcachedutil.la +tests_libmemcached_1_0_testapp_LDADD+= libtest/libtest.la +tests_libmemcached_1_0_testapp_LDADD+= libhashkit/libhashkit.la check_PROGRAMS+= tests/libmemcached-1.0/testapp noinst_PROGRAMS+= tests/libmemcached-1.0/testapp -tests_libmemcached_1_0_testsocket_CXXFLAGS = $(AM_CXXFLAGS) ${PTHREAD_CFLAGS} -tests_libmemcached_1_0_testsocket_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING) -tests_libmemcached_1_0_testsocket_SOURCES= \ - tests/libmemcached-1.0/all_tests_socket.cc \ - tests/libmemcached-1.0/basic.cc \ - tests/libmemcached-1.0/callbacks.cc \ - tests/libmemcached-1.0/debug.cc \ - tests/libmemcached-1.0/deprecated.cc \ - tests/libmemcached-1.0/dump.cc \ - tests/libmemcached-1.0/encoding_key.cc \ - tests/libmemcached-1.0/error_conditions.cc \ - tests/libmemcached-1.0/exist.cc \ - tests/libmemcached-1.0/haldenbrand.cc \ - tests/libmemcached-1.0/ketama.cc \ - tests/libmemcached-1.0/mem_functions.cc \ - tests/libmemcached-1.0/memcached_get.cc \ - tests/libmemcached-1.0/namespace.cc \ - tests/libmemcached-1.0/parser.cc \ - tests/libmemcached-1.0/pool.cc \ - tests/libmemcached-1.0/print.cc \ - tests/libmemcached-1.0/replication.cc \ - tests/libmemcached-1.0/server_add.cc \ - tests/libmemcached-1.0/setup_and_teardowns.cc \ - tests/libmemcached-1.0/stat.cc \ - tests/libmemcached-1.0/touch.cc \ - tests/libmemcached-1.0/virtual_buckets.cc +tests_libmemcached_1_0_testsocket_CXXFLAGS= +tests_libmemcached_1_0_testsocket_CFLAGS= +tests_libmemcached_1_0_testsocket_SOURCES= +tests_libmemcached_1_0_testsocket_DEPENDENCIES= +tests_libmemcached_1_0_testsocket_LDADD= + +tests_libmemcached_1_0_testsocket_CXXFLAGS+= ${PTHREAD_CFLAGS} +tests_libmemcached_1_0_testsocket_CXXFLAGS+= $(AM_CXXFLAGS) +tests_libmemcached_1_0_testsocket_CFLAGS+= $(AM_CFLAGS) +tests_libmemcached_1_0_testsocket_CFLAGS+= $(NO_CONVERSION) +tests_libmemcached_1_0_testsocket_CFLAGS+= $(NO_STRICT_ALIASING) -tests_libmemcached_1_0_testsocket_SOURCES+= clients/generator.cc tests_libmemcached_1_0_testsocket_SOURCES+= clients/execute.cc -tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/generate.cc +tests_libmemcached_1_0_testsocket_SOURCES+= clients/generator.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/all_tests_socket.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/basic.cc tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/callback_counter.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/callbacks.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/debug.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/deprecated.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/dump.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/encoding_key.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/error_conditions.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/exist.cc tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc -tests_libmemcached_1_0_testsocket_DEPENDENCIES= \ - libmemcached/libmemcached.la \ - libtest/libtest.la \ - libhashkit/libhashkit.la \ - libmemcached/libmemcachedutil.la - -tests_libmemcached_1_0_testsocket_LDADD= \ - $(LIBUUID_LDFLAGS) \ - ${PTHREAD_LIBS} \ - libmemcached/libmemcached.la \ - libmemcached/libmemcachedutil.la \ - libtest/libtest.la \ - libhashkit/libhashkit.la +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/generate.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/haldenbrand.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/ketama.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/mem_functions.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/memcached_get.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/namespace.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/parser.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/pool.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/print.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/replication.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/server_add.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/setup_and_teardowns.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/stat.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/touch.cc +tests_libmemcached_1_0_testsocket_SOURCES+= tests/libmemcached-1.0/virtual_buckets.cc + +tests_libmemcached_1_0_testsocket_DEPENDENCIES+= libmemcached/libmemcached.la +tests_libmemcached_1_0_testsocket_DEPENDENCIES+= libtest/libtest.la +tests_libmemcached_1_0_testsocket_DEPENDENCIES+= libhashkit/libhashkit.la +tests_libmemcached_1_0_testsocket_DEPENDENCIES+= libmemcached/libmemcachedutil.la + +tests_libmemcached_1_0_testsocket_LDADD+= $(LIBUUID_LDFLAGS) +tests_libmemcached_1_0_testsocket_LDADD+= ${PTHREAD_LIBS} +tests_libmemcached_1_0_testsocket_LDADD+= libmemcached/libmemcached.la +tests_libmemcached_1_0_testsocket_LDADD+= libmemcached/libmemcachedutil.la +tests_libmemcached_1_0_testsocket_LDADD+= libtest/libtest.la +tests_libmemcached_1_0_testsocket_LDADD+= libhashkit/libhashkit.la check_PROGRAMS+= tests/libmemcached-1.0/testsocket noinst_PROGRAMS+= tests/libmemcached-1.0/testsocket -tests_libmemcached_1_0_sasl_CXXFLAGS = $(AM_CXXFLAGS) ${PTHREAD_CFLAGS} -tests_libmemcached_1_0_sasl_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING) -tests_libmemcached_1_0_sasl_SOURCES= \ - tests/libmemcached-1.0/basic.cc \ - tests/libmemcached-1.0/debug.cc \ - tests/libmemcached-1.0/deprecated.cc \ - tests/libmemcached-1.0/error_conditions.cc \ - tests/libmemcached-1.0/ketama.cc \ - tests/libmemcached-1.0/namespace.cc \ - tests/libmemcached-1.0/parser.cc \ - tests/libmemcached-1.0/pool.cc \ - tests/libmemcached-1.0/print.cc \ - tests/libmemcached-1.0/replication.cc \ - tests/libmemcached-1.0/sasl.cc \ - tests/libmemcached-1.0/virtual_buckets.cc +tests_libmemcached_1_0_sasl_SOURCES= +tests_libmemcached_1_0_sasl_DEPENDENCIES= +tests_libmemcached_1_0_sasl_LDADD= +tests_libmemcached_1_0_sasl_CXXFLAGS= +tests_libmemcached_1_0_sasl_CFLAGS= + +tests_libmemcached_1_0_sasl_CXXFLAGS+= $(AM_CXXFLAGS) +tests_libmemcached_1_0_sasl_CXXFLAGS+= ${PTHREAD_CFLAGS} +tests_libmemcached_1_0_sasl_CFLAGS+= $(AM_CFLAGS) +tests_libmemcached_1_0_sasl_CFLAGS+= $(NO_CONVERSION) +tests_libmemcached_1_0_sasl_CFLAGS+= $(NO_STRICT_ALIASING) +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/basic.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/debug.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/deprecated.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/error_conditions.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/ketama.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/namespace.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/parser.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/pool.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/print.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/replication.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/sasl.cc +tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/virtual_buckets.cc tests_libmemcached_1_0_sasl_SOURCES+= clients/execute.cc tests_libmemcached_1_0_sasl_SOURCES+= clients/generator.cc tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/callback_counter.cc tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc tests_libmemcached_1_0_sasl_SOURCES+= tests/libmemcached-1.0/generate.cc -tests_libmemcached_1_0_sasl_DEPENDENCIES= \ - libmemcached/libmemcached.la \ - libtest/libtest.la -tests_libmemcached_1_0_sasl_LDADD= \ - ${PTHREAD_LIBS} \ - libmemcached/libmemcached.la \ - libmemcached/libmemcachedutil.la \ - libtest/libtest.la \ - libhashkit/libhashkit.la +tests_libmemcached_1_0_sasl_DEPENDENCIES+= libmemcached/libmemcached.la +tests_libmemcached_1_0_sasl_DEPENDENCIES+= libtest/libtest.la + +tests_libmemcached_1_0_sasl_LDADD+= ${PTHREAD_LIBS} +tests_libmemcached_1_0_sasl_LDADD+= libmemcached/libmemcached.la +tests_libmemcached_1_0_sasl_LDADD+= libmemcached/libmemcachedutil.la +tests_libmemcached_1_0_sasl_LDADD+= libtest/libtest.la +tests_libmemcached_1_0_sasl_LDADD+= libhashkit/libhashkit.la + check_PROGRAMS+= tests/libmemcached-1.0/sasl noinst_PROGRAMS+= tests/libmemcached-1.0/sasl -tests_atomsmasher_SOURCES= \ - tests/libmemcached-1.0/atomsmasher.cc \ - tests/libmemcached-1.0/debug.cc \ - tests/libmemcached-1.0/print.cc \ - clients/generator.cc \ - clients/execute.cc -tests_atomsmasher_DEPENDENCIES= $(TESTS_LDADDS) -tests_atomsmasher_LDADD= $(tests_atomsmasher_DEPENDENCIES) +tests_atomsmasher_SOURCES= +tests_atomsmasher_DEPENDENCIES= +tests_atomsmasher_LDADD= + +tests_atomsmasher_DEPENDENCIES+= $(TESTS_LDADDS) +tests_atomsmasher_LDADD+= $(tests_atomsmasher_DEPENDENCIES) +tests_atomsmasher_SOURCES+= clients/execute.cc +tests_atomsmasher_SOURCES+= clients/generator.cc +tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/atomsmasher.cc +tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/callback_counter.cc +tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/debug.cc +tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc +tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/generate.cc +tests_atomsmasher_SOURCES+= tests/libmemcached-1.0/print.cc noinst_PROGRAMS+= tests/atomsmasher -tests_testudp_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING) +tests_testudp_CFLAGS= tests_testudp_SOURCES= +tests_testudp_DEPENDENCIES= +tests_testudp_LDADD= - +tests_testudp_CFLAGS+= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING) tests_testudp_SOURCES+= clients/execute.cc tests_testudp_SOURCES+= clients/generator.cc tests_testudp_SOURCES+= tests/libmemcached-1.0/callback_counter.cc @@ -204,8 +238,8 @@ tests_testudp_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc tests_testudp_SOURCES+= tests/libmemcached-1.0/generate.cc tests_testudp_SOURCES+= tests/libmemcached-1.0/print.cc tests_testudp_SOURCES+= tests/mem_udp.cc -tests_testudp_DEPENDENCIES= $(TESTS_LDADDS) -tests_testudp_LDADD= $(tests_testudp_DEPENDENCIES) +tests_testudp_DEPENDENCIES+= $(TESTS_LDADDS) +tests_testudp_LDADD+= $(tests_testudp_DEPENDENCIES) check_PROGRAMS+= tests/testudp noinst_PROGRAMS+= tests/testudp @@ -213,17 +247,20 @@ test-udp: tests/testudp @tests/testudp tests_testplus_SOURCES= +tests_testplus_CXXFLAGS= +tests_testplus_DEPENDENCIES= +tests_testplus_LDADD= -tests_testplus_SOURCES+= tests/libmemcached-1.0/plus.cpp tests_testplus_SOURCES+= clients/execute.cc tests_testplus_SOURCES+= clients/generator.cc tests_testplus_SOURCES+= tests/libmemcached-1.0/callback_counter.cc tests_testplus_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc tests_testplus_SOURCES+= tests/libmemcached-1.0/generate.cc +tests_testplus_SOURCES+= tests/libmemcached-1.0/plus.cpp tests_testplus_SOURCES+= tests/libmemcached-1.0/print.cc -tests_testplus_CXXFLAGS = $(AM_CXXFLAGS) $(NO_EFF_CXX) -tests_testplus_DEPENDENCIES= $(TESTS_LDADDS) -tests_testplus_LDADD= $(tests_testplus_DEPENDENCIES) +tests_testplus_CXXFLAGS+= $(AM_CXXFLAGS) $(NO_EFF_CXX) +tests_testplus_DEPENDENCIES+= $(TESTS_LDADDS) +tests_testplus_LDADD+= $(tests_testplus_DEPENDENCIES) check_PROGRAMS+= tests/testplus noinst_PROGRAMS+= tests/testplus