X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fmem_functions.c;h=5b6dd2fe3feb11a68a364be2ca455ec54b29c10d;hb=aaf07fb6d380f4e4f0b5404d6b006afcfe62aa7f;hp=74ab33a0fc692a183eb586b1475918f7c35ce533;hpb=10f3d6bf1bc11c235779ae735f30758cfb035686;p=awesomized%2Flibmemcached diff --git a/tests/mem_functions.c b/tests/mem_functions.c index 74ab33a0..5b6dd2fe 100644 --- a/tests/mem_functions.c +++ b/tests/mem_functions.c @@ -34,6 +34,8 @@ #define SMALL_STRING_LEN 1024 #include +#include "tests/parser.h" +#include "tests/print.h" #ifdef HAVE_LIBMEMCACHEDUTIL @@ -189,21 +191,6 @@ static test_return_t server_sort2_test(memcached_st *ptr) return TEST_SUCCESS; } -static memcached_return_t server_print_callback(const memcached_st *ptr, - const memcached_server_st *server, - void *context) -{ - (void)server; // Just in case we aren't printing. - (void)ptr; - (void)context; - -#if 0 - fprintf(stderr, "%s(%d)", memcached_server_name(server), memcached_server_port(server)); -#endif - - return MEMCACHED_SUCCESS; -} - static test_return_t memcached_server_remove_test(memcached_st *ptr) { memcached_return_t rc; @@ -6561,6 +6548,13 @@ test_st error_conditions[] ={ {0, 0, (test_callback_fn)0} }; + +test_st parser_tests[] ={ + {"server", 0, (test_callback_fn)server_test }, + {"servers", 0, (test_callback_fn)servers_test }, + {0, 0, (test_callback_fn)0} +}; + collection_st collection[] ={ #if 0 {"hash_sanity", 0, 0, hash_sanity}, @@ -6623,6 +6617,7 @@ collection_st collection[] ={ {"behaviors", 0, 0, behavior_tests}, {"regression_binary_vs_block", (test_callback_fn)key_setup, (test_callback_fn)key_teardown, regression_binary_vs_block}, {"error_conditions", 0, 0, error_conditions}, + {"parser", 0, 0, parser_tests}, {0, 0, 0, 0} };