Lines Matching +full:num +full:- +full:strings
2 * Copyright 2016-2022 The OpenSSL Project Authors. All Rights Reserved.
34 int num; member
43 static int single_test = -1;
44 static int single_iter = -1;
51 * |num_test_cases| counts the total number of non-subtest test cases
64 all_tests[num_tests].num = -1; in add_test()
70 int num, int subtest) in add_all_tests() argument
75 all_tests[num_tests].num = num; in add_all_tests()
81 num_test_cases += num; in add_all_tests()
122 * Replace argv[] with UTF-8 encoded strings. in setup_test_framework()
153 if (single_test == -1 && single_iter != -1) in check_single_test_params()
156 if (single_test != -1) { in check_single_test_params()
158 test_printf_stderr("Invalid -%s value " in check_single_test_params()
164 if (single_iter != -1) { in check_single_test_params()
165 if (all_tests[single_test - 1].num == -1) { in check_single_test_params()
166 test_printf_stderr("-%s option is not valid for test %d:%s\n", in check_single_test_params()
169 all_tests[single_test - 1].test_case_name); in check_single_test_params()
172 || single_iter > all_tests[single_test - 1].num) { in check_single_test_params()
173 test_printf_stderr("Invalid -%s value for test %d:%s\t" in check_single_test_params()
176 all_tests[single_test - 1].test_case_name, in check_single_test_params()
177 1, all_tests[single_test - 1].num); in check_single_test_params()
188 int ret = -1; in process_shared_options()
291 if (i == -1) in run_tests()
296 } else if (show_list == 0 && single_test == -1) { in run_tests()
309 for (i = num_tests - 1; i >= 1; i--) { in run_tests()
319 if (single_test != -1 && ((i+1) != single_test)) { in run_tests()
323 if (all_tests[i].num != -1) { in run_tests()
324 test_printf_tapout("%d - %s (%d..%d)\n", ii + 1, in run_tests()
326 all_tests[i].num); in run_tests()
328 test_printf_tapout("%d - %s\n", ii + 1, in run_tests()
332 } else if (all_tests[i].num == -1) { in run_tests()
337 test_verdict(verdict, "%d - %s", test_case_count + 1, test_title); in run_tests()
347 if (single_iter == -1) { in run_tests()
349 test_printf_tapout("%d..%d\n", 1, all_tests[i].num); in run_tests()
355 j = -1; in run_tests()
356 if (rand_order == 0 || all_tests[i].num < 3) in run_tests()
360 jstep = test_random() % all_tests[i].num; in run_tests()
361 while (jstep == 0 || gcd(all_tests[i].num, jstep) != 1); in run_tests()
363 for (jj = 0; jj < all_tests[i].num; jj++) { in run_tests()
366 j = (j + jstep) % all_tests[i].num; in run_tests()
367 if (single_iter != -1 && ((jj + 1) != single_iter)) in run_tests()
381 test_verdict(v, "%d - iteration %d", in run_tests()
384 test_verdict(v, "%d - %s - iteration %d", in run_tests()
391 level -= 4; in run_tests()
396 if (all_tests[i].num == -1 || all_tests[i].subtest) in run_tests()
397 test_verdict(verdict, "%d - %s", test_case_count + 1, in run_tests()
408 * Glue an array of strings together and return it as an allocated string.
452 * "vol:[dir.dir]" + "[.certs]sm2-root.crt" should become in test_mk_file_path()
453 * "vol:[dir.dir.certs]sm2-root.crt" in test_mk_file_path()
455 dir_end = &full_file[strlen(full_file) - 1]; in test_mk_file_path()