Lines Matching defs:tc
48 test_create(const atf_tc_t *tc) {
57 atf_tc_get_md_var(tc, "X-filename"));
69 ATF_TC_HEAD(create, tc) {
70 atf_tc_set_md_var(tc, "descr", "create a database iterator");
71 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
73 ATF_TC_BODY(create, tc) {
74 test_create(tc);
78 ATF_TC_HEAD(create_nsec3, tc) {
79 atf_tc_set_md_var(tc, "descr", "create a database iterator (NSEC3)");
80 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
82 ATF_TC_BODY(create_nsec3, tc) {
83 test_create(tc);
88 test_walk(const atf_tc_t *tc) {
97 UNUSED(tc);
106 atf_tc_get_md_var(tc, "X-filename"));
123 ATF_CHECK_EQ(i, atoi(atf_tc_get_md_var(tc, "X-nodes")));
131 ATF_TC_HEAD(walk, tc) {
132 atf_tc_set_md_var(tc, "descr", "walk database");
133 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
134 atf_tc_set_md_var(tc, "X-nodes", "12");
136 ATF_TC_BODY(walk, tc) {
137 test_walk(tc);
141 ATF_TC_HEAD(walk_nsec3, tc) {
142 atf_tc_set_md_var(tc, "descr", "walk database");
143 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
144 atf_tc_set_md_var(tc, "X-nodes", "33");
146 ATF_TC_BODY(walk_nsec3, tc) {
147 test_walk(tc);
151 static void test_reverse(const atf_tc_t *tc) {
160 UNUSED(tc);
169 atf_tc_get_md_var(tc, "X-filename"));
194 ATF_TC_HEAD(reverse, tc) {
195 atf_tc_set_md_var(tc, "descr", "walk database backwards");
196 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
198 ATF_TC_BODY(reverse, tc) {
199 test_reverse(tc);
203 ATF_TC_HEAD(reverse_nsec3, tc) {
204 atf_tc_set_md_var(tc, "descr", "walk database backwards");
205 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
207 ATF_TC_BODY(reverse_nsec3, tc) {
208 test_reverse(tc);
212 static void test_seek(const atf_tc_t *tc) {
221 UNUSED(tc);
232 atf_tc_get_md_var(tc, "X-filename"));
254 ATF_CHECK_EQ(i, atoi(atf_tc_get_md_var(tc, "X-nodes")));
262 ATF_TC_HEAD(seek, tc) {
263 atf_tc_set_md_var(tc, "descr", "walk database starting at "
265 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
266 atf_tc_set_md_var(tc, "X-nodes", "9");
268 ATF_TC_BODY(seek, tc) {
269 test_seek(tc);
273 ATF_TC_HEAD(seek_nsec3, tc) {
274 atf_tc_set_md_var(tc, "descr", "walk database starting at "
276 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
277 atf_tc_set_md_var(tc, "X-nodes", "30");
279 ATF_TC_BODY(seek_nsec3, tc) {
280 test_seek(tc);
287 static void test_seek_empty(const atf_tc_t *tc) {
294 UNUSED(tc);
303 atf_tc_get_md_var(tc, "X-filename"));
321 ATF_TC_HEAD(seek_empty, tc) {
322 atf_tc_set_md_var(tc, "descr", "walk database starting at an "
324 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
326 ATF_TC_BODY(seek_empty, tc) {
327 test_seek_empty(tc);
331 ATF_TC_HEAD(seek_empty_nsec3, tc) {
332 atf_tc_set_md_var(tc, "descr", "walk database starting at an "
334 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
336 ATF_TC_BODY(seek_empty_nsec3, tc) {
337 test_seek_empty(tc);
344 static void test_seek_nx(const atf_tc_t *tc) {
351 UNUSED(tc);
360 atf_tc_get_md_var(tc, "X-filename"));
384 ATF_TC_HEAD(seek_nx, tc) {
385 atf_tc_set_md_var(tc, "descr", "attempt to walk database starting "
387 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
389 ATF_TC_BODY(seek_nx, tc) {
390 test_seek_nx(tc);
394 ATF_TC_HEAD(seek_nx_nsec3, tc) {
395 atf_tc_set_md_var(tc, "descr", "attempt to walk database starting "
397 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
399 ATF_TC_BODY(seek_nx_nsec3, tc) {
400 test_seek_nx(tc);