Lines Matching refs:tests

61  * try to minimize conditionals by grouping platform-specific tests in
181 /* Default is to remove temp dirs and log data for successful tests. */
335 /* Complete reporting of failed tests. */
1255 * so just ignore the mode tests. */
1288 * so just ignore the mode tests. */
1491 * UTILITIES for use by tests.
1497 * for tests to use in deciding whether to bother testing symlink
1732 /* Use "list.h" to create a list of all tests (functions and names). */
1735 struct { void (*func)(void); const char *name; int failures; } tests[] = {
1782 printf("%3d: %-50s", i, tests[i].name);
1786 printf("%3d: %s\n", i, tests[i].name);
1796 sprintf(logfilename, "%s.log", tests[i].name);
1798 fprintf(logfile, "%s\n\n", tests[i].name);
1800 if (!assertMakeDir(tests[i].name, 0755)
1801 || !assertChdir(tests[i].name)) {
1804 tmpdir, tests[i].name);
1814 (*tests[i].func)();
1829 tests[i].failures = failures - failures_before;
1830 test_summarize(test_filename, tests[i].failures);
1835 if (tests[i].failures == 0) {
1839 * Sometimes a processing of closing files used by tests
1847 r = systemf("rmdir /S /Q %s", tests[i].name);
1853 systemf("rm -rf %s", tests[i].name);
1859 return (tests[i].failures);
1873 static const int limit = sizeof(tests) / sizeof(tests[0]);
1877 printf("Default is to run all tests.\n");
1878 printf("Otherwise, specify the numbers of the tests you wish to run.\n");
1882 printf(" Default: temp files for successful tests deleted.\n");
1891 printf("Available tests:\n");
1893 printf(" %d: %s\n", i, tests[i].name);
1974 static const int limit = sizeof(tests) / sizeof(tests[0]);
2117 * Create a temp directory for the following tests.
2118 * Include the time the tests started as part of the name,
2119 * to make it easier to track the results of multiple tests.
2149 printf("If tests fail or crash, details will be in:\n");
2155 printf("Running tests on: %s\n", testprog);
2166 * Run some or all of the individual tests.
2169 /* Default: Run all tests. */
2187 if (strcmp(*argv, tests[i].name) == 0)
2219 printf("Failing tests:\n");
2221 if (tests[i].failures)
2223 tests[i].name, tests[i].failures);
2226 printf("Details for failing tests: %s\n", tmpdir);
2231 printf("%d tests passed, no failures\n", tests_run);
2237 /* This should be the usual case when all tests succeed. */