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