Changeset 2596 in kBuild for vendor/gnumake/current/tests/scripts/features/patternrules
- Timestamp:
- Jun 19, 2012 10:44:52 PM (12 years ago)
- Location:
- vendor/gnumake/current
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
tests (modified) (1 prop)
-
tests/scripts/features/patternrules (modified) (3 diffs, 2 props)
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current
- Property svn:ignore deleted
-
vendor/gnumake/current/tests
- Property svn:ignore deleted
-
vendor/gnumake/current/tests/scripts/features/patternrules
-
Property svn:eol-style
changed from
nativetoLF - Property svn:keywords deleted
r900 r2596 16 16 # 17 17 18 run_make_test( '18 run_make_test(q! 19 19 .PHONY: all 20 20 21 21 all: case.1 case.2 case.3 22 a: void 22 23 # We can't have this, due to "Implicit Rule Search Algorithm" step 5c 24 #xxx: void 23 25 24 26 # 1 - existing file … … 42 44 43 45 3.implicit-phony: 44 ', 45 '', 46 ''); 46 !, '', ''); 47 47 48 48 # TEST #1: make sure files that are built via implicit rules are marked … … 146 146 unlink('foo.in', 'foo.h', 'foo.c', 'foo.o'); 147 147 148 # TEST #5: make sure both prefix and suffix patterns work with multiple 149 # target patterns (Savannah bug #26593). 150 # 151 run_make_test(' 152 all: foo.s1 foo.s2 p1.foo p2.foo 153 154 p1.% p2.%: %.orig 155 @echo $@ 156 %.s1 %.s2: %.orig 157 @echo $@ 158 159 .PHONY: foo.orig 160 ', 161 '', "foo.s1\np1.foo\n"); 162 163 # TEST 6: Make sure that non-target files are still eligible to be created 164 # as part of implicit rule chaining. Savannah bug #17752. 165 166 run_make_test(q! 167 BIN = xyz 168 COPY = $(BIN).cp 169 SRC = $(BIN).c 170 allbroken: $(COPY) $(BIN) ; @echo ok 171 $(SRC): ; @echo 'main(){}' > $@ 172 %.cp: % ; @cp $< $@ 173 % : %.c ; @cp $< $@ 174 clean: ; @rm -rf $(SRC) $(COPY) $(BIN) 175 !, 176 '', "ok\n"); 177 178 unlink(qw(xyz xyz.cp xyz.c)); 179 180 # TEST 7: Make sure that all prereqs of all "also_make" targets get created 181 # before any of the things that depend on any of them. Savannah bug #19108. 182 183 run_make_test(q! 184 final: x ; @echo $@ 185 x: x.t1 x.t2 ; @echo $@ 186 x.t2: dep 187 dep: ; @echo $@ 188 %.t1 %.t2: ; @echo $*.t1 ; echo $*.t2 189 !, 190 '', "dep\nx.t1\nx.t2\nx\nfinal\n"); 191 192 193 # TEST 8: Verify we can remove pattern rules. Savannah bug #18622. 194 195 my @f = (qw(foo.w foo.ch)); 196 touch(@f); 197 198 run_make_test(q! 199 CWEAVE := : 200 201 # Disable builtin rules 202 %.tex : %.w 203 %.tex : %.w %.ch 204 !, 205 'foo.tex', 206 "#MAKE#: *** No rule to make target `foo.tex'. Stop.", 512); 207 208 unlink(@f); 209 210 # TEST #9: Test shortest stem selection in pattern rules. 211 212 run_make_test(' 213 %.x: ;@echo one 214 %-mt.x: ;@echo two 215 216 all: foo.x foo-mt.x 217 ', 218 '', 219 "one\ntwo"); 220 221 1; 222 148 223 # This tells the test driver that the perl test script executed properly. 149 224 1; -
Property svn:eol-style
changed from
Note:
See TracChangeset
for help on using the changeset viewer.

