Lines Matching refs:tc
97 test_create(const atf_tc_t *tc) {
105 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
118 ATF_TC_HEAD(create, tc) {
119 atf_tc_set_md_var(tc, "descr", "create a database iterator");
120 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
122 ATF_TC_BODY(create, tc) {
123 test_create(tc);
127 ATF_TC_HEAD(create_nsec3, tc) {
128 atf_tc_set_md_var(tc, "descr", "create a database iterator (NSEC3)");
129 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
131 ATF_TC_BODY(create_nsec3, tc) {
132 test_create(tc);
137 test_walk(const atf_tc_t *tc) {
146 UNUSED(tc);
154 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
172 ATF_CHECK_EQ(i, atoi(atf_tc_get_md_var(tc, "X-nodes")));
180 ATF_TC_HEAD(walk, tc) {
181 atf_tc_set_md_var(tc, "descr", "walk database");
182 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
183 atf_tc_set_md_var(tc, "X-nodes", "12");
185 ATF_TC_BODY(walk, tc) {
186 test_walk(tc);
190 ATF_TC_HEAD(walk_nsec3, tc) {
191 atf_tc_set_md_var(tc, "descr", "walk database");
192 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
193 atf_tc_set_md_var(tc, "X-nodes", "33");
195 ATF_TC_BODY(walk_nsec3, tc) {
196 test_walk(tc);
200 static void test_reverse(const atf_tc_t *tc) {
209 UNUSED(tc);
217 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
243 ATF_TC_HEAD(reverse, tc) {
244 atf_tc_set_md_var(tc, "descr", "walk database backwards");
245 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
247 ATF_TC_BODY(reverse, tc) {
248 test_reverse(tc);
252 ATF_TC_HEAD(reverse_nsec3, tc) {
253 atf_tc_set_md_var(tc, "descr", "walk database backwards");
254 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
256 ATF_TC_BODY(reverse_nsec3, tc) {
257 test_reverse(tc);
261 static void test_seek(const atf_tc_t *tc) {
270 UNUSED(tc);
280 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
303 ATF_CHECK_EQ(i, atoi(atf_tc_get_md_var(tc, "X-nodes")));
311 ATF_TC_HEAD(seek, tc) {
312 atf_tc_set_md_var(tc, "descr", "walk database starting at "
314 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
315 atf_tc_set_md_var(tc, "X-nodes", "9");
317 ATF_TC_BODY(seek, tc) {
318 test_seek(tc);
322 ATF_TC_HEAD(seek_nsec3, tc) {
323 atf_tc_set_md_var(tc, "descr", "walk database starting at "
325 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
326 atf_tc_set_md_var(tc, "X-nodes", "30");
328 ATF_TC_BODY(seek_nsec3, tc) {
329 test_seek(tc);
336 static void test_seek_empty(const atf_tc_t *tc) {
343 UNUSED(tc);
351 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
370 ATF_TC_HEAD(seek_empty, tc) {
371 atf_tc_set_md_var(tc, "descr", "walk database starting at an "
373 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
375 ATF_TC_BODY(seek_empty, tc) {
376 test_seek_empty(tc);
380 ATF_TC_HEAD(seek_empty_nsec3, tc) {
381 atf_tc_set_md_var(tc, "descr", "walk database starting at an "
383 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
385 ATF_TC_BODY(seek_empty_nsec3, tc) {
386 test_seek_empty(tc);
393 static void test_seek_nx(const atf_tc_t *tc) {
400 UNUSED(tc);
408 result = setup_db(atf_tc_get_md_var(tc, "X-filename"),
427 ATF_TC_HEAD(seek_nx, tc) {
428 atf_tc_set_md_var(tc, "descr", "attempt to walk database starting "
430 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
432 ATF_TC_BODY(seek_nx, tc) {
433 test_seek_nx(tc);
437 ATF_TC_HEAD(seek_nx_nsec3, tc) {
438 atf_tc_set_md_var(tc, "descr", "attempt to walk database starting "
440 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
442 ATF_TC_BODY(seek_nx_nsec3, tc) {
443 test_seek_nx(tc);