Lines Matching defs:tests

87  * try to minimize conditionals by grouping platform-specific tests in
215 /* Default is to remove temp dirs and log data for successful tests. */
217 /* Default is to run the specified tests once and report errors. */
372 /* Complete reporting of failed tests. */
1424 * so just ignore the mode tests. */
1457 * so just ignore the mode tests. */
1821 * UTILITIES for use by tests.
1827 * for tests to use in deciding whether to bother testing symlink
2237 /* Use "list.h" to create a list of all tests (functions and names). */
2240 struct test_list_t tests[] = {
2289 printf("%3d: %-50s", i, tests[i].name);
2293 printf("%3d: %s\n", i, tests[i].name);
2303 sprintf(logfilename, "%s.log", tests[i].name);
2305 fprintf(logfile, "%s\n\n", tests[i].name);
2307 snprintf(workdir, sizeof(workdir), "%s/%s", tmpdir, tests[i].name);
2322 (*tests[i].func)();
2338 tests[i].failures = failures - failures_before;
2339 test_summarize(tests[i].failures);
2344 if (tests[i].failures == 0) {
2348 * Sometimes a processing of closing files used by tests
2356 r = systemf("rmdir /S /Q %s", tests[i].name);
2362 systemf("rm -rf %s", tests[i].name);
2368 return (tests[i].failures);
2382 static const int limit = sizeof(tests) / sizeof(tests[0]);
2386 printf("Default is to run all tests.\n");
2387 printf("Otherwise, specify the numbers of the tests you wish to run.\n");
2391 printf(" Default: temp files for successful tests deleted.\n");
2399 printf(" -u Keep running specifies tests until one fails.\n");
2401 printf("Available tests:\n");
2403 printf(" %d: %s\n", i, tests[i].name);
2496 static const int limit = sizeof(tests) / sizeof(tests[0]);
2497 int test_set[sizeof(tests) / sizeof(tests[0])];
2720 * Create a temp directory for the following tests.
2721 * Include the time the tests started as part of the name,
2722 * to make it easier to track the results of multiple tests.
2752 printf("If tests fail or crash, details will be in:\n");
2758 printf("Running tests on: %s\n", testprog);
2769 * Run some or all of the individual tests.
2777 test_num = get_test_set(test_set, limit, *argv, tests);
2799 /* Must be freed after all tests run */
2818 printf("Failing tests:\n");
2820 if (tests[i].failures)
2822 tests[i].name, tests[i].failures);
2825 printf("Details for failing tests: %s\n", tmpdir);
2830 printf("%d tests passed, no failures\n", tests_run);
2836 /* This should be the usual case when all tests succeed. */