Lines Matching refs:tests

61  * try to minimize conditionals by grouping platform-specific tests in
180 /* Default is to remove temp dirs and log data for successful tests. */
334 /* Complete reporting of failed tests. */
1159 * so just ignore the mode tests. */
1192 * so just ignore the mode tests. */
1395 * UTILITIES for use by tests.
1401 * for tests to use in deciding whether to bother testing symlink
1636 /* Use "list.h" to create a list of all tests (functions and names). */
1639 struct { void (*func)(void); const char *name; int failures; } tests[] = {
1686 printf("%3d: %-50s", i, tests[i].name);
1690 printf("%3d: %s\n", i, tests[i].name);
1700 sprintf(logfilename, "%s.log", tests[i].name);
1702 fprintf(logfile, "%s\n\n", tests[i].name);
1704 if (!assertMakeDir(tests[i].name, 0755)
1705 || !assertChdir(tests[i].name)) {
1708 tmpdir, tests[i].name);
1718 (*tests[i].func)();
1733 tests[i].failures = failures - failures_before;
1734 test_summarize(test_filename, tests[i].failures);
1739 if (tests[i].failures == 0) {
1743 * Sometimes a processing of closing files used by tests
1751 r = systemf("rmdir /S /Q %s", tests[i].name);
1757 systemf("rm -rf %s", tests[i].name);
1763 return (tests[i].failures);
1777 static const int limit = sizeof(tests) / sizeof(tests[0]);
1781 printf("Default is to run all tests.\n");
1782 printf("Otherwise, specify the numbers of the tests you wish to run.\n");
1786 printf(" Default: temp files for successful tests deleted.\n");
1795 printf("Available tests:\n");
1797 printf(" %d: %s\n", i, tests[i].name);
1878 static const int limit = sizeof(tests) / sizeof(tests[0]);
2015 * Create a temp directory for the following tests.
2016 * Include the time the tests started as part of the name,
2017 * to make it easier to track the results of multiple tests.
2047 printf("If tests fail or crash, details will be in:\n");
2053 printf("Running tests on: %s\n", testprog);
2064 * Run some or all of the individual tests.
2067 /* Default: Run all tests. */
2085 if (strcmp(*argv, tests[i].name) == 0)
2117 printf("Failing tests:\n");
2119 if (tests[i].failures)
2121 tests[i].name, tests[i].failures);
2124 printf("Details for failing tests: %s\n", tmpdir);
2129 printf("%d tests passed, no failures\n", tests_run);
2135 /* This should be the usual case when all tests succeed. */