Changeset 153 in kBuild for branches/GNU/src/gmake/tests/scripts/features
- Timestamp:
- Sep 8, 2004 2:43:30 AM (20 years ago)
- Location:
- branches/GNU/src/gmake/tests/scripts/features
- Files:
-
- 2 edited
-
conditionals (modified) (2 diffs)
-
order_only (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/tests/scripts/features/conditionals
r53 r153 86 86 endif 87 87 88 all:; @echo DEF=$(DEF) DEF2=$(DEF2) 88 89 DEF3 = no 90 FUNC = $1 91 ifdef $(call FUNC,DEF)3 92 DEF3 = yes 93 endif 94 95 all:; @echo DEF=$(DEF) DEF2=$(DEF2) DEF3=$(DEF3) 89 96 90 97 EOF … … 93 100 94 101 &run_make_with_options($makefile2,"",&get_logfile,0); 95 $answer = "DEF=yes DEF2=yes \n";102 $answer = "DEF=yes DEF2=yes DEF3=yes\n"; 96 103 &compare_output($answer,&get_logfile(1)); 97 104 -
branches/GNU/src/gmake/tests/scripts/features/order_only
r53 r153 110 110 unlink(qw(foo baz)); 111 111 112 # Test order-only in pattern rules 113 114 $makefile4 = &get_tmpfile; 115 116 open(MAKEFILE,"> $makefile4"); 117 118 print MAKEFILE <<'EOF'; 119 %.w : %.x | baz 120 @echo '$$^ = $^' 121 @echo '$$| = $|' 122 touch $@ 123 124 all: foo.w 125 126 .PHONY: baz 127 foo.x baz: 128 touch $@ 129 EOF 130 131 close(MAKEFILE); 132 133 # TEST #7 -- make sure the parser was correct. 134 135 &run_make_with_options($makefile4, "", &get_logfile); 136 $answer = "touch foo.x\ntouch baz\n\$^ = foo.x\n\$| = baz\ntouch foo.w\n"; 137 &compare_output($answer,&get_logfile(1)); 138 139 # TEST #8 -- now we do it again: this time foo.w won't be built 140 141 &run_make_with_options($makefile4, "", &get_logfile); 142 $answer = "touch baz\n"; 143 &compare_output($answer,&get_logfile(1)); 144 145 unlink(qw(foo.w foo.x baz)); 146 112 147 1;
Note:
See TracChangeset
for help on using the changeset viewer.

