Changeset 2596 in kBuild for vendor/gnumake/current/tests/scripts/features/parallelism
- 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/parallelism (modified) (5 diffs, 1 prop)
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/parallelism
-
Property svn:eol-style
changed from
nativetoLF
r1989 r2596 44 44 "ONE.inc\nTHREE.inc\nTWO.inc\nONE\nTHREE\nTWO\nsuccess\n"); 45 45 46 unlink('1.inc', '2.inc');46 rmfiles(qw(1.inc 2.inc)); 47 47 48 48 … … 63 63 "ONE.inc\nTHREE.inc\nTWO.inc\nONE\nTHREE\nTWO\nsuccess\n"); 64 64 65 unlink('1.inc', '2.inc');65 rmfiles(qw(1.inc 2.inc)); 66 66 67 67 # Grant Taylor reports a problem where tokens can be lost (not written back … … 139 139 .PHONY: phony 140 140 phony: ; : phony', '-rR -j', ': phony'); 141 unlink('target'); 142 141 rmfiles('target'); 142 143 # TEST #10: Don't put --jobserver-fds into a re-exec'd MAKEFLAGS. 144 # We can't test this directly because there's no way a makefile can 145 # show the value of MAKEFLAGS we were re-exec'd with. We can intuit it 146 # by looking for "disabling jobserver mode" warnings; we should only 147 # get one from the original invocation and none from the re-exec. 148 # See Savannah bug #18124 149 150 run_make_test(q! 151 -include inc.mk 152 recur: 153 # @echo 'MAKEFLAGS = $(MAKEFLAGS)' 154 @rm -f inc.mk 155 @$(MAKE) -j2 -f #MAKEFILE# all 156 all: 157 # @echo 'MAKEFLAGS = $(MAKEFLAGS)' 158 @echo $@ 159 inc.mk: 160 # @echo 'MAKEFLAGS = $(MAKEFLAGS)' 161 @echo 'FOO = bar' > $@ 162 !, 163 '--no-print-directory -j2', "#MAKE#[1]: warning: -jN forced in submake: disabling jobserver mode.\nall\n"); 164 165 rmfiles('inc.mk'); 166 167 if ($all_tests) { 168 # Implicit files aren't properly recreated during parallel builds 169 # Savannah bug #26864 170 171 # The first run works fine 172 run_make_test(q! 173 %.bar: %.x foo.y ; cat $^ > $@ 174 %.x: ; touch $@ 175 foo.y: foo.y.in ; cp $< $@ 176 foo.y.in: ; touch $@ 177 !, 178 '-j2 main.bar', 179 "touch foo.y.in 180 touch main.x 181 cp foo.y.in foo.y 182 cat main.x foo.y > main.bar 183 rm main.x"); 184 185 # Now we touch the .in file and make sure it still works 186 touch('foo.y.in'); 187 188 run_make_test(undef, '-j2 main.bar', "cp foo.y.in foo.y 189 touch main.x 190 cat main.x foo.y > main.bar 191 rm main.x"); 192 193 # Clean up 194 rmfiles(qw(foo.y foo.y.in main.bar)); 195 } 196 197 if ($all_tests) { 198 # Jobserver FD handling is messed up in some way. 199 # Savannah bug #28189 200 # It doesn't look like that bug anymore but this is the code it runs 201 202 run_make_test(q! 203 ifdef EXTRA 204 vpath %.dst / 205 xxx.dst: ; true 206 yyy.dst: ; true 207 endif 208 209 M := $(MAKE) 210 xx: ; $M --no-print-directory -j2 -f $(MAKEFILE_LIST) xxx.dst yyy.dst EXTRA=1 211 !, 212 '-j2', 213 '#MAKE#[1]: warning: -jN forced in submake: disabling jobserver mode. 214 true 215 true 216 '); 217 } 143 218 144 219 # Make sure that all jobserver FDs are closed if we need to re-exec the … … 169 244 # 'bar'); 170 245 171 # unlink('dependfile', 'output');246 # rmfiles(qw(dependfile output)); 172 247 173 248 … … 175 250 # run_make_test(undef, '-j2 recurse INCL=false', 'bar'); 176 251 177 # unlink('dependfile', 'output');252 # rmfiles(qw(dependfile output)); 178 253 179 254 1; -
Property svn:eol-style
changed from
Note:
See TracChangeset
for help on using the changeset viewer.

