Changeset 1989 in kBuild for vendor/gnumake/current/tests/scripts/targets
- Timestamp:
- Oct 28, 2008 11:02:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/tests/scripts/targets/SECONDARY
r284 r1989 122 122 unlink('version2'); 123 123 124 # TEST #9 -- Savannah bug #15919 125 # The original fix for this bug caused a new bug, shown here. 126 127 touch(qw(1.a 2.a)); 128 129 run_make_test(' 130 %.c : %.b ; cp $< $@ 131 %.b : %.a ; cp $< $@ 132 all : 1.c 2.c', '-rR -j', 133 'cp 1.a 1.b 134 cp 2.a 2.b 135 cp 1.b 1.c 136 cp 2.b 2.c 137 rm 1.b 2.b'); 138 139 unlink(qw(1.a 2.a 1.c 2.c)); 140 141 # TEST #10 -- Savannah bug #15919 142 touch('test.0'); 143 run_make_test(' 144 .SECONDARY : test.1 test.2 test.3 145 146 test : test.4 147 148 %.4 : %.int %.3 ; touch $@ 149 150 %.int : %.3 %.2 ; touch $@ 151 152 %.3 : | %.2 ; touch $@ 153 154 %.2 : %.1 ; touch $@ 155 156 %.1 : %.0 ; touch $@', '-rR -j 2', 157 'touch test.1 158 touch test.2 159 touch test.3 160 touch test.int 161 touch test.4 162 rm test.int'); 163 164 # After a touch of test.0 it should give the same output, except we don't need 165 # to rebuild test.3 (order-only) 166 sleep(1); 167 touch('test.0'); 168 run_make_test(undef, '-rR -j 2', 169 'touch test.1 170 touch test.2 171 touch test.int 172 touch test.4 173 rm test.int'); 174 175 # With both test.0 and test.3 updated it should still build everything except 176 # test.3 177 sleep(1); 178 touch('test.0', 'test.3'); 179 run_make_test(undef, '-rR -j 2', 180 'touch test.1 181 touch test.2 182 touch test.int 183 touch test.4 184 rm test.int'); 185 186 unlink(qw(test.0 test.1 test.2 test.3 test.4)); 187 124 188 # This tells the test driver that the perl test script executed properly. 125 189 1;
Note:
See TracChangeset
for help on using the changeset viewer.

