mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-01 18:10:48 +00:00
32 lines
857 B
Text
32 lines
857 B
Text
|
# -*-perl-*-
|
||
|
$description = "Test generic option processing.\n";
|
||
|
|
||
|
open(MAKEFILE, "> $makefile");
|
||
|
|
||
|
# The Contents of the MAKEFILE ...
|
||
|
|
||
|
print MAKEFILE "foo 5foo: ; \@echo \$\@\n";
|
||
|
|
||
|
close(MAKEFILE);
|
||
|
|
||
|
# TEST 0
|
||
|
|
||
|
&run_make_with_options($makefile, "-j 5foo", &get_logfile);
|
||
|
$answer = "5foo\n";
|
||
|
&compare_output($answer, &get_logfile(1));
|
||
|
|
||
|
# TEST 0
|
||
|
|
||
|
# This test prints the usage string; I don't really know a good way to
|
||
|
# test it. I guess I could invoke make with a known-bad option to see
|
||
|
# what the usage looks like, then compare it to what I get here... :(
|
||
|
|
||
|
# If I were always on UNIX, I could invoke it with 2>/dev/null, then
|
||
|
# just check the error code.
|
||
|
|
||
|
&run_make_with_options($makefile, "-j5foo 2>/dev/null", &get_logfile, 512);
|
||
|
$answer = "";
|
||
|
&compare_output($answer, &get_logfile(1));
|
||
|
|
||
|
1;
|