diff options
author | Paul Smith <psmith@gnu.org> | 2002-08-08 00:11:19 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2002-08-08 00:11:19 +0000 |
commit | f2ceb0d68aa780e57641e50d972fac3b6e70bd58 (patch) | |
tree | 73853f27fe9a08b2ba2938057f1f3ccc51597d06 /tests/scripts/misc/general3 | |
parent | bccb277dda1a4dcc6729824a7c9d544086f147c3 (diff) | |
download | gunmake-f2ceb0d68aa780e57641e50d972fac3b6e70bd58.tar.gz |
Incorporate some VMS fixes.
Add -B option docs.
Add .VARIABLES variable.
Add a few new tests.
Add a new translation: Swedish
Diffstat (limited to 'tests/scripts/misc/general3')
-rw-r--r-- | tests/scripts/misc/general3 | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/tests/scripts/misc/general3 b/tests/scripts/misc/general3 index a265f71..2421ed4 100644 --- a/tests/scripts/misc/general3 +++ b/tests/scripts/misc/general3 @@ -5,12 +5,14 @@ This tests random features of the parser that need to be supported, and which have either broken at some point in the past or seem likely to break."; +$makefile2 = &get_tmpfile; + open(MAKEFILE,"> $makefile"); # The contents of the Makefile ... print MAKEFILE <<EOF; -\# We want to allow both empty commands _and_ commands that resolve to empty. +# We want to allow both empty commands _and_ commands that resolve to empty. EMPTY = .PHONY: all a1 a2 a3 a4 @@ -36,10 +38,21 @@ EOF close(MAKEFILE); &run_make_with_options($makefile,"",&get_logfile); - -# Create the answer to what should be produced by this Makefile $answer = "$make_name: Nothing to be done for `all'.\n"; +&compare_output($answer,&get_logfile(1)); + + +# TEST 2 +# Make sure files without trailing newlines are handled properly. + +open(MAKEFILE, "> $makefile2"); +print MAKEFILE "all:;\@echo FOO = \$(FOO)\nFOO = foo"; +close(MAKEFILE); + +&run_make_with_options($makefile2,"",&get_logfile); +$answer = "FOO = foo\n"; &compare_output($answer,&get_logfile(1)); + 1; |