Lines Matching refs:test
144 for (const struct test_case *test = tests; test < array_end (tests); ++test) in do_test() local
147 printf ("info: testing domain name [[[%s]]]\n", test->dn); in do_test()
148 int ret = ns_name_pton (test->dn, wire, NS_MAXCDNAME); in do_test()
151 if (test->back != NULL) in do_test()
155 test->dn); in do_test()
165 ret, test->dn); in do_test()
174 printf ("error: failure to convert back [[%s]]\n", test->dn); in do_test()
177 if (test->back == NULL) in do_test()
180 printf ("error: unexpected success converting [[%s]]\n", test->dn); in do_test()
182 printf ("error: result converts back to [[%s]]\n", test->dn); in do_test()
186 if (strcmp (text, test->back) != 0) in do_test()
190 test->dn); in do_test()
191 printf ("error: expected: [[%s]]\n", test->back); in do_test()
195 if (ret != test->fully_qualified) in do_test()
199 test->dn); in do_test()
200 printf ("error: expected: %d\n", (int) test->fully_qualified); in do_test()