Lines Matching refs:tests
98 struct test_case tests[] = { in test_principal() local
123 int ntests = sizeof(tests) / sizeof(*tests); in test_principal()
126 tests[i].val = &values[i]; in test_principal()
127 if (asprintf (&tests[i].name, "Principal %d", i) < 0) in test_principal()
129 if (tests[i].name == NULL) in test_principal()
133 ret = generic_test (tests, ntests, sizeof(Principal), in test_principal()
141 free (tests[i].name); in test_principal()
168 struct test_case tests[] = { in test_authenticator() local
193 int ntests = sizeof(tests) / sizeof(*tests); in test_authenticator()
196 tests[i].val = &values[i]; in test_authenticator()
197 if (asprintf (&tests[i].name, "Authenticator %d", i) < 0) in test_authenticator()
199 if (tests[i].name == NULL) in test_authenticator()
203 ret = generic_test (tests, ntests, sizeof(Authenticator), in test_authenticator()
211 free(tests[i].name); in test_authenticator()
263 struct test_case tests[] = { in test_krb_error() local
276 int ntests = sizeof(tests) / sizeof(*tests); in test_krb_error()
296 tests[0].val = &e1; in test_krb_error()
298 return generic_test (tests, ntests, sizeof(KRB_ERROR), in test_krb_error()
321 struct test_case tests[] = { in test_Name() local
336 int ntests = sizeof(tests) / sizeof(*tests); in test_Name()
384 tests[0].val = &n1; in test_Name()
385 tests[1].val = &n2; in test_Name()
387 return generic_test (tests, ntests, sizeof(Name), in test_Name()
408 struct test_case tests[] = { in test_bit_string() local
427 int ntests = sizeof(tests) / sizeof(*tests); in test_bit_string()
432 tests[0].val = &ku1; in test_bit_string()
437 tests[1].val = &ku2; in test_bit_string()
441 tests[2].val = &ku3; in test_bit_string()
444 tests[3].val = &ku4; in test_bit_string()
447 return generic_test (tests, ntests, sizeof(KeyUsage), in test_bit_string()
468 struct test_case tests[] = { in test_bit_string_rfc1510() local
487 int ntests = sizeof(tests) / sizeof(*tests); in test_bit_string_rfc1510()
492 tests[0].val = &tf1; in test_bit_string_rfc1510()
497 tests[1].val = &tf2; in test_bit_string_rfc1510()
501 tests[2].val = &tf3; in test_bit_string_rfc1510()
504 tests[3].val = &tf4; in test_bit_string_rfc1510()
507 return generic_test (tests, ntests, sizeof(TicketFlags), in test_bit_string_rfc1510()
528 struct test_case tests[] = { in test_time() local
539 int ntests = sizeof(tests) / sizeof(*tests); in test_time()
545 tests[0].val = ×[0]; in test_time()
546 tests[1].val = ×[1]; in test_time()
548 return generic_test (tests, ntests, sizeof(KerberosTime), in test_time()
686 struct test_case tests[] = { in test_large_tag() local
690 int ntests = sizeof(tests) / sizeof(*tests); in test_large_tag()
697 tests[0].val = <1; in test_large_tag()
699 return generic_test (tests, ntests, sizeof(TESTLargeTag), in test_large_tag()
776 struct test_case tests[] = { in test_choice() local
781 int ret = 0, ntests = sizeof(tests) / sizeof(*tests); in test_choice()
789 tests[0].val = &c1; in test_choice()
794 tests[1].val = &c2_1; in test_choice()
796 ret += generic_test (tests, ntests, sizeof(TESTChoice1), in test_choice()
808 tests[1].val = &c2_2; in test_choice()
810 ret += generic_test (tests, ntests, sizeof(TESTChoice2), in test_choice()
845 struct test_case tests[] = { in test_implicit() local
852 int ret = 0, ntests = sizeof(tests) / sizeof(*tests); in test_implicit()
859 tests[0].val = &c0; in test_implicit()
861 ret += generic_test (tests, ntests, sizeof(TESTImplicit), in test_implicit()
870 ret += generic_test (tests, ntests, sizeof(TESTImplicit2), in test_implicit()
923 struct test_case tests[] = { in test_taglessalloc() local
935 int ret = 0, ntests = sizeof(tests) / sizeof(*tests); in test_taglessalloc()
943 tests[0].val = &c1; in test_taglessalloc()
948 tests[1].val = &c2; in test_taglessalloc()
956 tests[2].val = &c3; in test_taglessalloc()
958 ret += generic_test (tests, ntests, sizeof(TESTAlloc), in test_taglessalloc()
1006 struct test_case tests[] = { in test_optional() local
1021 int ret = 0, ntests = sizeof(tests) / sizeof(*tests); in test_optional()
1028 tests[0].val = &c0; in test_optional()
1032 tests[1].val = &c1; in test_optional()
1036 tests[2].val = &c2; in test_optional()
1040 tests[3].val = &c3; in test_optional()
1042 ret += generic_test (tests, ntests, sizeof(TESTOptional), in test_optional()
1056 struct test_case tests[] = { in check_fail_largetag() local
1083 int ntests = sizeof(tests) / sizeof(*tests); in check_fail_largetag()
1085 return generic_decode_fail(tests, ntests, sizeof(TESTLargeTag), in check_fail_largetag()
1093 struct test_case tests[] = { in check_fail_sequence() local
1108 int ntests = sizeof(tests) / sizeof(*tests); in check_fail_sequence()
1110 return generic_decode_fail(tests, ntests, sizeof(TESTSeq), in check_fail_sequence()
1117 struct test_case tests[] = { in check_fail_choice() local
1125 int ntests = sizeof(tests) / sizeof(*tests); in check_fail_choice()
1127 return generic_decode_fail(tests, ntests, sizeof(TESTChoice1), in check_fail_choice()