- printf("\n");
-
- /* Clean the server before beginning testing */
- test_st tests[] ={
- {"flush", 0, flush_test },
- {"init", 0, init_test },
- {"allocation", 0, allocation_test },
- {"clone_test", 0, clone_test },
- {"error", 0, error_test },
- {"set", 0, set_test },
- {"set2", 0, set_test2 },
- {"set3", 0, set_test3 },
- {"add", 0, add_test },
- {"replace", 0, replace_test },
- {"delete", 1, delete_test },
- {"get", 1, get_test },
- {"get2", 0, get_test2 },
- {"get3", 0, get_test3 },
- {"get4", 0, get_test4 },
- {"stats_servername", 0, stats_servername_test },
- {"increment", 0, increment_test },
- {"decrement", 0, decrement_test },
- {"quit", 0, quit_test },
- {"mget", 1, mget_test },
- {"mget_result", 1, mget_result_test },
- {"mget_result_alloc", 1, mget_result_alloc_test },
- {"get_stats", 0, get_stats },
- {"add_host_test", 0, add_host_test },
- {"get_stats_keys", 0, get_stats_keys },
- {"behavior_test", 0, get_stats_keys },
- {0, 0, 0}
- };
-
- test_st string_tests[] ={
- {"string static with null", 0, string_static_null },
- {"string alloc with null", 0, string_alloc_null },
- {"string alloc with 1K", 0, string_alloc_with_size },
- {"string alloc with malloc failure", 0, string_alloc_with_size_toobig },
- {"string append", 0, string_alloc_append },
- {"string append failure (too big)", 0, string_alloc_append_toobig },
- {0, 0, 0}
- };
-
- test_st result_tests[] ={
- {"result static", 0, result_static},
- {"result alloc", 0, result_alloc},
- {0, 0, 0}
- };
-
- test_st user_tests[] ={
- {"user_supplied_bug1", 0, user_supplied_bug1 },
- {"user_supplied_bug2", 0, user_supplied_bug2 },
- {"user_supplied_bug3", 0, user_supplied_bug3 },
- {0, 0, 0}
- };
-
-
- collection_st collection[] ={
- {"block", 0, 0, tests},
- {"nonblock", pre_nonblock, 0, tests},
- {"nodelay", pre_nodelay, 0, tests},
- {"md5", pre_md5, 0, tests},
- {"crc", pre_crc, 0, tests},
- {"fnv1_64", pre_hash_fnv1_64, 0, tests},
- {"fnv1a_64", pre_hash_fnv1a_64, 0, tests},
- {"fnv1_32", pre_hash_fnv1_32, 0, tests},
- {"fnv1a_32", pre_hash_fnv1a_32, 0, tests},
- {"ketama", pre_hash_ketama, 0, tests},
- {"unix_socket", pre_unix_socket, 0, tests},
- {"unix_socket_nodelay", pre_nodelay, 0, tests},
- {"string", 0, 0, string_tests},
- {"result", 0, 0, result_tests},
- {"user", 0, 0, user_tests},
- {0, 0, 0, 0}
- };
-
- collection_st *next;
- for (next= collection; next->name; next++)