Changeset 3138 in kBuild for vendor/gnumake/current/tests/scripts/variables/special
- Timestamp:
- Mar 12, 2018 7:32:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/tests/scripts/variables/special
r2596 r3138 15 15 BAR := bar 16 16 17 all: 18 @echo X1 = $(X1) 19 @echo X2 = $(X2) 20 @echo LAST = $(sort $(filter FOO BAR,$(.VARIABLES))) 17 all: ; @echo X1 = $(X1); echo X2 = $(X2); echo LAST = $(sort $(filter FOO BAR,$(.VARIABLES))) 21 18 ', 22 19 '', "X1 =\nX2 = FOO\nLAST = BAR FOO\n"); 23 20 21 # SV 45728: Test that undefining a variable is reflected properly 24 22 23 &run_make_test(' 24 FOO := foo 25 BAR := bar 26 $(info one: $(sort $(filter FOO BAR BAZ,$(.VARIABLES)))) 27 undefine BAR 28 BAZ := baz 29 $(info two: $(sort $(filter FOO BAR BAZ,$(.VARIABLES)))) 30 all:;@: 31 ', 32 '', "one: BAR FOO\ntwo: BAZ FOO\n"); 25 33 26 34 # $makefile2 = &get_tmpfile; … … 32 40 33 41 # all: foo 34 # @echo X1 = $(X1)35 # @echo X2 = $(X2)36 # @echo LAST = $(sort $(.TARGETS))42 # @echo X1 = $(X1) 43 # @echo X2 = $(X2) 44 # @echo LAST = $(sort $(.TARGETS)) 37 45 38 46 # X2 := $(sort $(.TARGETS)) … … 54 62 &run_make_test(' 55 63 define foo 56 : foo-one \64 : foo-one\ 57 65 foo-two 58 66 : foo-three … … 115 123 : foo-four'); 116 124 125 # Test that the "did you mean TAB" message is printed properly 126 127 run_make_test(q! 128 $x. 129 !, 130 '', '#MAKEFILE#:2: *** missing separator. Stop.', 512); 131 132 run_make_test(q! 133 foo: 134 bar 135 !, 136 '', '#MAKEFILE#:3: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.', 512); 137 138 run_make_test(q! 139 .RECIPEPREFIX = : 140 foo: 141 bar 142 !, 143 '', '#MAKEFILE#:4: *** missing separator. Stop.', 512); 144 117 145 1; 146 147 ### Local Variables: 148 ### eval: (setq whitespace-action (delq 'auto-cleanup whitespace-action)) 149 ### End:
Note:
See TracChangeset
for help on using the changeset viewer.

