Update testing to allow for distributed testing.
[awesomized/libmemcached] / tests / libmemcached-1.0 / mem_functions.h
1 /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2 *
3 * Libmemcached Client and Server
4 *
5 * Copyright (C) 2012 Data Differential, http://datadifferential.com/
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are
10 * met:
11 *
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 *
15 * * Redistributions in binary form must reproduce the above
16 * copyright notice, this list of conditions and the following disclaimer
17 * in the documentation and/or other materials provided with the
18 * distribution.
19 *
20 * * The names of its contributors may not be used to endorse or
21 * promote products derived from this software without specific prior
22 * written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 *
36 */
37
38 #pragma once
39
40 test_return_t MEMCACHED_BEHAVIOR_CORK_test(memcached_st *memc);
41 test_return_t MEMCACHED_BEHAVIOR_POLL_TIMEOUT_test(memcached_st *memc);
42 test_return_t MEMCACHED_BEHAVIOR_TCP_KEEPALIVE_test(memcached_st *memc);
43 test_return_t MEMCACHED_BEHAVIOR_TCP_KEEPIDLE_test(memcached_st *memc);
44 test_return_t _user_supplied_bug21(memcached_st* memc, size_t key_count);
45 test_return_t add_host_test(memcached_st *memc);
46 test_return_t add_host_test1(memcached_st *memc);
47 test_return_t add_test(memcached_st *memc);
48 test_return_t add_wrapper(memcached_st *memc);
49 test_return_t allocation_test(memcached_st *not_used);
50 test_return_t analyzer_test(memcached_st *memc);
51 test_return_t append_binary_test(memcached_st *memc);
52 test_return_t append_test(memcached_st *memc);
53 test_return_t bad_key_test(memcached_st *memc);
54 test_return_t behavior_test(memcached_st *memc);
55 test_return_t binary_add_regression(memcached_st *memc);
56 test_return_t binary_increment_with_prefix_test(memcached_st *memc);
57 test_return_t block_add_regression(memcached_st *memc);
58 test_return_t callback_test(memcached_st *memc);
59 test_return_t cas2_test(memcached_st *memc);
60 test_return_t cas_test(memcached_st *memc);
61 test_return_t check_for_1_2_3(memcached_st *memc);
62 test_return_t clone_test(memcached_st *memc);
63 test_return_t connection_test(memcached_st *memc);
64 test_return_t crc_run (memcached_st *);
65 test_return_t decrement_by_key_test(memcached_st *memc);
66 test_return_t decrement_test(memcached_st *memc);
67 test_return_t decrement_with_initial_by_key_test(memcached_st *memc);
68 test_return_t decrement_with_initial_test(memcached_st *memc);
69 test_return_t delete_test(memcached_st *memc);
70 test_return_t deprecated_set_memory_alloc(memcached_st *memc);
71 test_return_t enable_cas(memcached_st *memc);
72 test_return_t enable_consistent_crc(memcached_st *memc);
73 test_return_t enable_consistent_hsieh(memcached_st *memc);
74 test_return_t flush_test(memcached_st *memc);
75 test_return_t fnv1_32_run (memcached_st *);
76 test_return_t fnv1_64_run (memcached_st *);
77 test_return_t fnv1a_32_run (memcached_st *);
78 test_return_t fnv1a_64_run (memcached_st *);
79 test_return_t get_stats(memcached_st *memc);
80 test_return_t get_stats_keys(memcached_st *memc);
81 test_return_t get_test(memcached_st *memc);
82 test_return_t get_test2(memcached_st *memc);
83 test_return_t get_test3(memcached_st *memc);
84 test_return_t get_test4(memcached_st *memc);
85 test_return_t get_test5(memcached_st *memc);
86 test_return_t getpid_connection_failure_test(memcached_st *memc);
87 test_return_t getpid_test(memcached_st *memc);
88 test_return_t hash_sanity_test (memcached_st *memc);
89 test_return_t hsieh_avaibility_test (memcached_st *memc);
90 test_return_t hsieh_run (memcached_st *);
91 test_return_t increment_by_key_test(memcached_st *memc);
92 test_return_t increment_test(memcached_st *memc);
93 test_return_t increment_with_initial_by_key_test(memcached_st *memc);
94 test_return_t increment_with_initial_test(memcached_st *memc);
95 test_return_t init_test(memcached_st *not_used);
96 test_return_t jenkins_run (memcached_st *);
97 test_return_t key_setup(memcached_st *memc);
98 test_return_t key_teardown(memcached_st *);
99 test_return_t libmemcached_string_behavior_test(memcached_st *);
100 test_return_t libmemcached_string_distribution_test(memcached_st *);
101 test_return_t md5_run (memcached_st *);
102 test_return_t memcached_fetch_result_NOT_FOUND(memcached_st *memc);
103 test_return_t memcached_get_MEMCACHED_ERRNO(memcached_st *);
104 test_return_t memcached_get_MEMCACHED_NOTFOUND(memcached_st *memc);
105 test_return_t memcached_get_by_key_MEMCACHED_ERRNO(memcached_st *memc);
106 test_return_t memcached_get_by_key_MEMCACHED_NOTFOUND(memcached_st *memc);
107 test_return_t memcached_get_hashkit_test (memcached_st *);
108 test_return_t memcached_mget_mixed_memcached_get_TEST(memcached_st *memc);
109 test_return_t memcached_return_t_TEST(memcached_st *memc);
110 test_return_t memcached_server_cursor_test(memcached_st *memc);
111 test_return_t memcached_server_remove_test(memcached_st*);
112 test_return_t memcached_stat_execute_test(memcached_st *memc);
113 test_return_t mget_end(memcached_st *memc);
114 test_return_t mget_execute(memcached_st *original_memc);
115 test_return_t mget_result_alloc_test(memcached_st *memc);
116 test_return_t mget_result_function(memcached_st *memc);
117 test_return_t mget_result_test(memcached_st *memc);
118 test_return_t mget_test(memcached_st *memc);
119 test_return_t murmur_avaibility_test (memcached_st *memc);
120 test_return_t murmur_run (memcached_st *);
121 test_return_t noreply_test(memcached_st *memc);
122 test_return_t one_at_a_time_run (memcached_st *);
123 test_return_t output_ketama_weighted_keys(memcached_st *);
124 test_return_t ping_test(memcached_st *memc);
125 test_return_t prepend_test(memcached_st *memc);
126 test_return_t quit_test(memcached_st *memc);
127 test_return_t read_through(memcached_st *memc);
128 test_return_t regression_bug_(memcached_st *memc);
129 test_return_t regression_bug_421108(memcached_st *memc);
130 test_return_t regression_bug_434484(memcached_st *memc);
131 test_return_t regression_bug_434843(memcached_st *original_memc);
132 test_return_t regression_bug_434843_buffered(memcached_st *memc);
133 test_return_t regression_bug_442914(memcached_st *memc);
134 test_return_t regression_bug_447342(memcached_st *memc);
135 test_return_t regression_bug_463297(memcached_st *memc);
136 test_return_t regression_bug_490486(memcached_st *original_memc);
137 test_return_t regression_bug_490520(memcached_st *memc);
138 test_return_t regression_bug_581030(memcached_st *);
139 test_return_t regression_bug_583031(memcached_st *);
140 test_return_t regression_bug_655423(memcached_st *memc);
141 test_return_t regression_bug_854604(memcached_st *);
142 test_return_t replace_test(memcached_st *memc);
143 test_return_t result_alloc(memcached_st *memc);
144 test_return_t result_static(memcached_st *memc);
145 test_return_t selection_of_namespace_tests(memcached_st *memc);
146 test_return_t server_sort2_test(memcached_st *ptr);
147 test_return_t server_sort_test(memcached_st *ptr);
148 test_return_t server_unsort_test(memcached_st *ptr);
149 test_return_t set_memory_alloc(memcached_st *memc);
150 test_return_t set_namespace(memcached_st *memc);
151 test_return_t set_namespace_and_binary(memcached_st *memc);
152 test_return_t set_test(memcached_st *memc);
153 test_return_t set_test2(memcached_st *memc);
154 test_return_t set_test3(memcached_st *memc);
155 test_return_t stats_servername_test(memcached_st *memc);
156 test_return_t test_get_last_disconnect(memcached_st *memc);
157 test_return_t test_multiple_get_last_disconnect(memcached_st *);
158 test_return_t test_verbosity(memcached_st *memc);
159 test_return_t user_supplied_bug10(memcached_st *memc);
160 test_return_t user_supplied_bug11(memcached_st *memc);
161 test_return_t user_supplied_bug12(memcached_st *memc);
162 test_return_t user_supplied_bug13(memcached_st *memc);
163 test_return_t user_supplied_bug14(memcached_st *memc);
164 test_return_t user_supplied_bug15(memcached_st *memc);
165 test_return_t user_supplied_bug16(memcached_st *memc);
166 test_return_t user_supplied_bug17(memcached_st *memc);
167 test_return_t user_supplied_bug19(memcached_st *);
168 test_return_t user_supplied_bug20(memcached_st *memc);
169 test_return_t user_supplied_bug21(memcached_st *memc);
170 test_return_t user_supplied_bug4(memcached_st *memc);
171 test_return_t user_supplied_bug5(memcached_st *memc);
172 test_return_t user_supplied_bug6(memcached_st *memc);
173 test_return_t user_supplied_bug7(memcached_st *memc);
174 test_return_t user_supplied_bug8(memcached_st *);
175 test_return_t user_supplied_bug9(memcached_st *memc);
176 test_return_t userdata_test(memcached_st *memc);
177 test_return_t util_version_test(memcached_st *memc);
178 test_return_t version_string_test(memcached_st *);
179 test_return_t wrong_failure_counter_test(memcached_st *memc);
180 test_return_t wrong_failure_counter_two_test(memcached_st *memc);