mirror of
https://https.git.savannah.gnu.org/git/make.git
synced 2026-01-29 02:44:21 +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.
44 lines
1.4 KiB
Perl
44 lines
1.4 KiB
Perl
# -*-perl-*-
|
|
$description = "The following test creates a makefile to verify
|
|
the ability of make to strip white space from lists of object.\n";
|
|
|
|
|
|
$details = "The make file is built with a list of objects that contain white space
|
|
These are then run through the strip command to remove it. This is then
|
|
verified by echoing the result.\n";
|
|
|
|
# Zippy the Pinhead quotes...
|
|
run_make_test(q!TEST1 := "Is this TERMINAL fun? What makes you believe is this terminal fun? JAPAN is a WONDERFUL planet -- I wonder if we will ever reach their level of COMPARATIVE SHOPPING..."
|
|
E :=
|
|
TEST2 := $E try this and#TAB##TAB#this #TAB#$E
|
|
|
|
define TEST3
|
|
|
|
and these#TAB# test out
|
|
|
|
|
|
some
|
|
blank lines
|
|
|
|
|
|
|
|
endef
|
|
|
|
.PHONY: all
|
|
all:
|
|
#TAB#@echo '$(strip $(TEST1) )'
|
|
#TAB#@echo '$(strip $(TEST2) )'
|
|
#TAB#@echo '$(strip $(TEST3) )'
|
|
!,
|
|
"", "\"Is this TERMINAL fun? What makes you believe is this terminal fun? JAPAN is a WONDERFUL planet -- I wonder if we will ever reach their level of COMPARATIVE SHOPPING...\"
|
|
try this and this
|
|
and these test out some blank lines
|
|
");
|
|
|
|
run_make_test(q!
|
|
space: ; @echo '$(strip ) $(strip #TAB# )'
|
|
!,
|
|
"", " \n");
|
|
|
|
1;
|