Changeset 501 in kBuild for vendor/gnumake/current/tests/scripts/features/parallelism
- Timestamp:
- Sep 15, 2006 2:30:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/tests/scripts/features/parallelism
r284 r501 19 19 20 20 if ($vos) { 21 $delete_command = "delete_file -no_ask";22 21 $sleep_command = "sleep -seconds"; 23 22 } 24 23 else { 25 $delete_command = "rm -f";26 24 $sleep_command = "sleep"; 27 25 } … … 84 82 '-j2', "first\nfirst\nsecond\nsecond"); 85 83 84 # Michael Matz <matz@suse.de> reported a bug where if make is running in 85 # parallel without -k and two jobs die in a row, but not too close to each 86 # other, then make will quit without waiting for the rest of the jobs to die. 87 88 run_make_test(" 89 .PHONY: all fail.1 fail.2 fail.3 ok 90 all: fail.1 ok fail.2 fail.3 91 92 fail.1 fail.2 fail.3: 93 \@sleep \$(patsubst fail.%,%,\$\@) 94 \@echo Fail 95 \@exit 1 96 97 ok: 98 \@sleep 4 99 \@echo Ok done", 100 '-rR -j5', 'Fail 101 #MAKE#: *** [fail.1] Error 1 102 #MAKE#: *** Waiting for unfinished jobs.... 103 Fail 104 #MAKE#: *** [fail.2] Error 1 105 Fail 106 #MAKE#: *** [fail.3] Error 1 107 Ok done', 108 512); 109 110 111 # Test for Savannah bug #15641. 112 # 113 run_make_test(' 114 .PHONY: all 115 all:; @: 116 117 -include foo.d 118 119 foo.d: comp 120 @echo building $@ 121 122 comp: mod_a.o mod_b.o; @: 123 124 mod_a.o mod_b.o: 125 @exit 1 126 ', '-j2', ''); 127 128 129 # Make sure that all jobserver FDs are closed if we need to re-exec the 130 # master copy. 131 # 132 # First, find the "default" file descriptors we normally use 133 # Then make sure they're still used. 134 # 135 # Right now we don't have a way to run a makefile and capture the output 136 # without checking it, so we can't really write this test. 137 138 # run_make_test(' 139 # submake: ; @$(MAKE) --no-print-directory -f #MAKEFILE# fdprint 5>output 140 141 # dependfile: ; @echo FOO=bar > $@ 142 143 # INCL := true 144 145 # FOO=foo 146 # ifeq ($(INCL),true) 147 # -include dependfile 148 # endif 149 150 # fdprint: ; @echo $(filter --jobserver%,$(MAKEFLAGS)) 151 152 # recurse: ; @$(MAKE) --no-print-directory -f #MAKEFILE# submake INCL=true', 153 # '-j2 INCL=false fdprint', 154 # 'bar'); 155 156 # unlink('dependfile', 'output'); 157 158 159 # # Do it again, this time where the include is done by the non-master make. 160 # run_make_test(undef, '-j2 recurse INCL=false', 'bar'); 161 162 # unlink('dependfile', 'output'); 163 86 164 1;
Note:
See TracChangeset
for help on using the changeset viewer.

