2 $description = "Test generic option processing.\n";
4 open(MAKEFILE, "> $makefile");
6 # The Contents of the MAKEFILE ...
8 print MAKEFILE "foo 1foo: ; \@echo \$\@\n";
14 &run_make_with_options($makefile, "-j 1foo", &get_logfile);
15 if (!$parallel_jobs) {
16 $answer = "$make_name: Parallel jobs (-j) are not supported on this platform.\n$make_name: Resetting to single job (-j1) mode.\n1foo\n";
24 # This test prints the usage string; I don't really know a good way to
25 # test it. I guess I could invoke make with a known-bad option to see
26 # what the usage looks like, then compare it to what I get here... :(
28 # If I were always on UNIX, I could invoke it with 2>/dev/null, then
29 # just check the error code.
31 &run_make_with_options($makefile, "-j1foo 2>/dev/null", &get_logfile, 512);
33 &compare_output($answer, &get_logfile(1));