Changeset 2591 in kBuild for trunk/src/kmk/tests/scripts/features/patternrules
- Timestamp:
- Jun 17, 2012 8:45:31 PM (12 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
tests (modified) (1 prop)
-
tests/scripts/features/patternrules (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
- Property svn:ignore
-
old new 13 13 stamp-* 14 14 makebook* 15 15 16 .*gdbinit 17 .gdb_history 18 16 19 *.dep 17 20 *.dvi … … 31 34 *.pg 32 35 *.pgs 36 33 37 README 34 38 README.DOS 35 39 README.W32 40 README.OS2 36 41 aclocal.m4 37 42 autom4te.cache … … 52 57 config.h.W32 53 58 config.h-vms 59 54 60 loadavg 55 61 loadavg.c 56 62 make 63 57 64 .deps 58 65 .dep_segment 66 ID 67 TAGS 68 59 69 _* 60 70 sun4 … … 72 82 sol2 73 83 i486-linux 84 74 85 customs 86 75 87 install-sh 76 88 mkinstalldirs 89 90 .directive.asc
-
- Property svn:ignore
-
trunk/src/kmk/tests
- Property svn:ignore
--- +++
- Property svn:ignore
-
trunk/src/kmk/tests/scripts/features/patternrules
- Property svn:keywords deleted
r1952 r2591 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 … … 150 150 unlink('foo.in', 'foo.h', 'foo.c', 'foo.o'); 151 151 152 # TEST #5: make sure both prefix and suffix patterns work with multiple 153 # target patterns (Savannah bug #26593). 154 # 155 run_make_test(' 156 all: foo.s1 foo.s2 p1.foo p2.foo 157 158 p1.% p2.%: %.orig 159 @echo $@ 160 %.s1 %.s2: %.orig 161 @echo $@ 162 163 .PHONY: foo.orig 164 ', 165 '', "foo.s1\np1.foo\n"); 166 167 # TEST 6: Make sure that non-target files are still eligible to be created 168 # as part of implicit rule chaining. Savannah bug #17752. 169 170 run_make_test(q! 171 BIN = xyz 172 COPY = $(BIN).cp 173 SRC = $(BIN).c 174 allbroken: $(COPY) $(BIN) ; @echo ok 175 $(SRC): ; @echo 'main(){}' > $@ 176 %.cp: % ; @cp $< $@ 177 % : %.c ; @cp $< $@ 178 clean: ; @rm -rf $(SRC) $(COPY) $(BIN) 179 !, 180 '', "ok\n"); 181 182 unlink(qw(xyz xyz.cp xyz.c)); 183 184 # TEST 7: Make sure that all prereqs of all "also_make" targets get created 185 # before any of the things that depend on any of them. Savannah bug #19108. 186 187 run_make_test(q! 188 final: x ; @echo $@ 189 x: x.t1 x.t2 ; @echo $@ 190 x.t2: dep 191 dep: ; @echo $@ 192 %.t1 %.t2: ; @echo $*.t1 ; echo $*.t2 193 !, 194 '', "dep\nx.t1\nx.t2\nx\nfinal\n"); 195 196 197 # TEST 8: Verify we can remove pattern rules. Savannah bug #18622. 198 199 my @f = (qw(foo.w foo.ch)); 200 touch(@f); 201 202 run_make_test(q! 203 CWEAVE := : 204 205 # Disable builtin rules 206 %.tex : %.w 207 %.tex : %.w %.ch 208 !, 209 'foo.tex', 210 "#MAKE#: *** No rule to make target `foo.tex'. Stop.", 512); 211 212 unlink(@f); 213 214 # TEST #9: Test shortest stem selection in pattern rules. 215 216 run_make_test(' 217 %.x: ;@echo one 218 %-mt.x: ;@echo two 219 220 all: foo.x foo-mt.x 221 ', 222 '', 223 "one\ntwo"); 224 225 1; 226 152 227 # This tells the test driver that the perl test script executed properly. 153 228 1;
Note:
See TracChangeset
for help on using the changeset viewer.

