Changeset 284 in kBuild for branches/GNU/src/gmake/tests/scripts/features/include
- Timestamp:
- May 16, 2005 4:54:08 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/tests/scripts/features/include
r53 r284 3 3 $description = "Test various forms of the GNU make `include' command."; 4 4 5 $details = "Test include, -include, sinclude and various regressions involving them. 5 $details = "\ 6 Test include, -include, sinclude and various regressions involving them. 6 7 Test extra whitespace at the end of the include, multiple -includes and 7 8 sincludes (should not give an error) and make sure that errors are reported … … 16 17 print MAKEFILE <<EOF; 17 18 \#Extra space at the end of the following file name 18 include $makefile2 19 include $makefile2 19 20 all: ; \@echo There should be no errors for this makefile. 20 21 … … 47 48 &compare_output($answer, &get_logfile(1)); 48 49 50 $makefile = undef; 51 49 52 # Try to build the "error" target; this will fail since we don't know 50 53 # how to create makeit.mk, but we should also get a message (even though … … 52 55 # see one during the makefile run phase). 53 56 54 # The fix to this caused more problems than the error, so I removed it. 55 # pds -- 22 Jan 2000 57 run_make_test 58 (' 59 -include foo.mk 60 error: foo.mk ; @echo $@ 61 ', 62 '', 63 "#MAKE#: *** No rule to make target `foo.mk', needed by `error'. Stop.\n", 64 512 65 ); 56 66 57 #&run_make_with_options($makefile, "error", &get_logfile, 512); 58 #$answer = "$make_name: *** No rule to make target `makeit.mk', needed by `error'.\n"; 59 #&compare_output($answer, &get_logfile(1)); 67 # Make sure that target-specific variables don't impact things. This could 68 # happen because a file record is created when a target-specific variable is 69 # set. 70 71 run_make_test 72 (' 73 bar.mk: foo := baz 74 -include bar.mk 75 hello: ; @echo hello 76 ', 77 '', 78 "hello\n" 79 ); 80 81 # Test inheritance of dontcare flag when rebuilding makefiles. 82 # 83 run_make_test(' 84 .PHONY: all 85 all: ; @: 86 87 -include foo 88 89 foo: bar; @: 90 ', '', ''); 60 91 61 92 1;
Note:
See TracChangeset
for help on using the changeset viewer.