• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/libarchive/libarchive/test/

Lines Matching defs:tests

85  * try to minimize conditionals by grouping platform-specific tests in
236 /* Default is to remove temp dirs and log data for successful tests. */
238 /* Default is to run the specified tests once and report errors. */
393 /* Complete reporting of failed tests. */
1538 * so just ignore the mode tests. */
1571 * so just ignore the mode tests. */
1947 * UTILITIES for use by tests.
1953 * for tests to use in deciding whether to bother testing symlink
2576 /* Use "list.h" to create a list of all tests (functions and names). */
2579 struct test_list_t tests[] = {
2629 printf("%3d: %-64s", i, tests[i].name);
2633 printf("%3d: %s\n", i, tests[i].name);
2643 sprintf(logfilename, "%s.log", tests[i].name);
2645 fprintf(logfile, "%s\n\n", tests[i].name);
2647 snprintf(workdir, sizeof(workdir), "%s/%s", tmpdir, tests[i].name);
2662 (*tests[i].func)();
2678 tests[i].failures = failures - failures_before;
2679 test_summarize(tests[i].failures, skips - skips_before);
2684 if (tests[i].failures == 0) {
2688 * Sometimes a processing of closing files used by tests
2696 r = systemf("rmdir /S /Q %s", tests[i].name);
2702 systemf("rm -rf %s", tests[i].name);
2708 return (tests[i].failures);
2722 static const int limit = sizeof(tests) / sizeof(tests[0]);
2726 printf("Default is to run all tests.\n");
2727 printf("Otherwise, specify the numbers of the tests you wish to run.\n");
2731 printf(" Default: temp files for successful tests deleted.\n");
2739 printf(" -u Keep running specifies tests until one fails.\n");
2741 printf("Available tests:\n");
2743 printf(" %d: %s\n", i, tests[i].name);
2860 static const int limit = sizeof(tests) / sizeof(tests[0]);
2861 int test_set[sizeof(tests) / sizeof(tests[0])];
3084 * Create a temp directory for the following tests.
3085 * Include the time the tests started as part of the name,
3086 * to make it easier to track the results of multiple tests.
3116 printf("If tests fail or crash, details will be in:\n");
3122 printf("Running tests on: %s\n", testprog);
3133 * Run some or all of the individual tests.
3141 test_num = get_test_set(test_set, limit, *argv, tests);
3163 /* Must be freed after all tests run */
3182 printf("Failing tests:\n");
3184 if (tests[i].failures)
3186 tests[i].name, tests[i].failures);
3189 printf("Details for failing tests: %s\n", tmpdir);
3194 printf("%d tests passed, no failures\n", tests_run);
3200 /* This should be the usual case when all tests succeed. */