Lines Matching defs:tests

101  * try to minimize conditionals by grouping platform-specific tests in
364 /* Default is to remove temp dirs and log data for successful tests. */
366 /* Default is to run the specified tests once and report errors. */
521 /* Complete reporting of failed tests. */
1696 * so just ignore the mode tests. */
1729 * so just ignore the mode tests. */
2460 * UTILITIES for use by tests.
2466 * for tests to use in deciding whether to bother testing symlink
3495 /* Use "list.h" to create a list of all tests (functions and names). */
3498 static struct test_list_t tests[] = {
3552 printf("%3d: %-64s", i, tests[i].name);
3556 printf("%3d: %s\n", i, tests[i].name);
3566 snprintf(logfilename, sizeof(logfilename), "%s.log", tests[i].name);
3568 fprintf(logfile, "%s\n\n", tests[i].name);
3570 snprintf(workdir, sizeof(workdir), "%s/%s", tmpdir, tests[i].name);
3585 (*tests[i].func)();
3601 tests[i].failures = failures - failures_before;
3602 test_summarize(tests[i].failures, skips - skips_before);
3607 if (tests[i].failures == 0) {
3611 * Sometimes a processing of closing files used by tests
3619 r = systemf("rmdir /S /Q %s", tests[i].name);
3625 systemf("rm -rf %s", tests[i].name);
3631 return (tests[i].failures);
3645 static const int limit = sizeof(tests) / sizeof(tests[0]);
3649 printf("Default is to run all tests.\n");
3650 printf("Otherwise, specify the numbers of the tests you wish to run.\n");
3654 printf(" Default: temp files for successful tests deleted.\n");
3662 printf(" -u Keep running specifies tests until one fails.\n");
3664 printf("Available tests:\n");
3666 printf(" %d: %s\n", i, tests[i].name);
3780 /* Filter tests against a glob pattern. Returns non-zero if test matches
3831 /* Default: Run all tests. */
3866 const char *name = tests[start].name;
3877 static const int limit = sizeof(tests) / sizeof(tests[0]);
3878 int test_set[sizeof(tests) / sizeof(tests[0])];
4117 * Create a temp directory for the following tests.
4118 * Include the time the tests started as part of the name,
4119 * to make it easier to track the results of multiple tests.
4162 printf("If tests fail or crash, details will be in:\n");
4168 printf("Running tests on: %s\n", testprog);
4179 * Run some or all of the individual tests.
4208 /* Must be freed after all tests run */
4227 printf("Failing tests:\n");
4229 if (tests[i].failures)
4231 tests[i].name, tests[i].failures);
4234 printf("Details for failing tests: %s\n", tmpdir);
4239 printf("%d tests passed, no failures\n", tests_run);
4245 /* This should be the usual case when all tests succeed. */