mirror of
https://https.git.savannah.gnu.org/git/make.git
synced 2026-01-27 18:04:55 +00:00
Avoid Emacs local variable settings to disable whitespace cleanup, by creating markup tokens for TAB characters (#TAB#) and space characters (#SPACE#) (for end-of-line spaces). Modify all the tests that use TABs to use the new markup. This requires changing some old-fashioned tests to use the modern run_make_test(). Also remove some of the comments regarding test numbers now that the framework keeps track.
22 lines
605 B
Perl
22 lines
605 B
Perl
# -*-perl-*-
|
|
|
|
$description = "Test the MAKECMDGOALS variable.";
|
|
|
|
$details = "\
|
|
We construct a makefile with various targets, all of which print out
|
|
\$(MAKECMDGOALS), then call it different ways.";
|
|
|
|
run_make_test(q!
|
|
.DEFAULT all:
|
|
#TAB#@echo $(MAKECMDGOALS)
|
|
!,
|
|
'', "\n");
|
|
|
|
run_make_test(undef, "all", "all\n");
|
|
|
|
run_make_test(undef, "foo bar baz yaz",
|
|
"foo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\n");
|
|
|
|
# This tells the test driver that the perl test script executed properly.
|
|
1;
|