make/tests/scripts/variables/MAKECMDGOALS
Paul Smith fdcaaed8d7 * tests/scripts/*: Switch TAB chars to #TAB# markup
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.
2025-08-24 14:29:11 -04:00

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;