* Various fixes for problems in the 3.79.0.1 pretest.
[make/kirr.git] / tests / scripts / options / general
blobd35bb358dfe80b0ea6d10fc81c99a1935947b36c
1 #                                                                    -*-perl-*-
2 $description = "Test generic option processing.\n";
4 open(MAKEFILE, "> $makefile");
6 # The Contents of the MAKEFILE ...
8 print MAKEFILE "foo 1foo: ; \@echo \$\@\n";
10 close(MAKEFILE);
12 # TEST 0
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";
18 else {
19   $answer = "1foo\n";
22 # TEST 1
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);
32 $answer = "";
33 &compare_output($answer, &get_logfile(1));