Lines Matching refs:all_tests

40 static TEST_INFO all_tests[1024];  variable
61 assert(num_tests != OSSL_NELEM(all_tests)); in add_test()
62 all_tests[num_tests].test_case_name = test_case_name; in add_test()
63 all_tests[num_tests].test_fn = test_fn; in add_test()
64 all_tests[num_tests].num = -1; in add_test()
72 assert(num_tests != OSSL_NELEM(all_tests)); in add_all_tests()
73 all_tests[num_tests].test_case_name = test_case_name; in add_all_tests()
74 all_tests[num_tests].param_test_fn = test_fn; in add_all_tests()
75 all_tests[num_tests].num = num; in add_all_tests()
76 all_tests[num_tests].subtest = subtest; in add_all_tests()
145 if (strcmp(name, all_tests[i].test_case_name) == 0) { in check_single_test_params()
168 if (all_tests[single_test - 1].num == -1) { in check_single_test_params()
172 all_tests[single_test - 1].test_case_name); in check_single_test_params()
175 || single_iter > all_tests[single_test - 1].num) { in check_single_test_params()
179 all_tests[single_test - 1].test_case_name, in check_single_test_params()
180 1, all_tests[single_test - 1].num); in check_single_test_params()
293 int permute[OSSL_NELEM(all_tests)]; in run_tests()
330 if (all_tests[i].num != -1) { in run_tests()
332 all_tests[i].test_case_name, 1, in run_tests()
333 all_tests[i].num); in run_tests()
336 all_tests[i].test_case_name); in run_tests()
339 } else if (all_tests[i].num == -1) { in run_tests()
340 set_test_title(all_tests[i].test_case_name); in run_tests()
342 verdict = all_tests[i].test_fn(); in run_tests()
350 set_test_title(all_tests[i].test_case_name); in run_tests()
351 if (all_tests[i].subtest) { in run_tests()
356 test_printf_tapout("%d..%d\n", 1, all_tests[i].num); in run_tests()
363 if (rand_order == 0 || all_tests[i].num < 3) in run_tests()
367 jstep = test_random() % all_tests[i].num; in run_tests()
368 while (jstep == 0 || gcd(all_tests[i].num, jstep) != 1); in run_tests()
370 for (jj = 0; jj < all_tests[i].num; jj++) { in run_tests()
373 j = (j + jstep) % all_tests[i].num; in run_tests()
377 v = all_tests[i].param_test_fn(j); in run_tests()
387 if (all_tests[i].subtest) in run_tests()
397 if (all_tests[i].subtest) { in run_tests()
403 if (all_tests[i].num == -1 || all_tests[i].subtest) in run_tests()
405 all_tests[i].test_case_name); in run_tests()