Changeset 1993 for trunk/src/kmk/tests/scripts/targets
- Timestamp:
- Oct 29, 2008, 1:37:51 AM (17 years ago)
- Location:
- trunk/src/kmk/tests/scripts/targets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/tests/scripts/targets/INTERMEDIATE
r1973 r1993 57 57 # TEST #3 58 58 # kmk+fast: differs because of different hashing. 59 # kmk: suspect the -j1 actually hides a bug, 'cp bar.f bar.e' is executed twice. 59 60 60 &run_make_with_options($makefile,' foo.c',&get_logfile);61 &run_make_with_options($makefile,'-j1 foo.c',&get_logfile); 61 62 $answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\n" 62 63 . (!$is_kmk && !$is_fast ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n"); … … 71 72 # TEST #5 72 73 # kmk+fast: differs because of different hashing. 74 # kmk: suspect the -j1 actually hides a bug, 'cp bar.f bar.e' is executed twice. 73 75 74 76 &utouch(-10, 'foo.c'); 75 77 &touch('foo.f'); 76 78 77 &run_make_with_options($makefile,' foo.c',&get_logfile);79 &run_make_with_options($makefile,'-j1 foo.c',&get_logfile); 78 80 $answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\n" 79 81 . (!$is_kmk && !$is_fast ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n"); -
trunk/src/kmk/tests/scripts/targets/SECONDARY
r969 r1993 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 # kmk: suspect the -j1 actually hides a bug, 'cp 2.a 2.b' is executed twice. 127 128 touch(qw(1.a 2.a)); 129 130 run_make_test(' 131 %.c : %.b ; cp $< $@ 132 %.b : %.a ; cp $< $@ 133 all : 1.c 2.c', '-rR -j', 134 'cp 1.a 1.b 135 cp 2.a 2.b 136 cp 1.b 1.c 137 cp 2.b 2.c 138 rm 1.b 2.b'); 139 140 unlink(qw(1.a 2.a 1.c 2.c)); 141 142 # TEST #10 -- Savannah bug #15919 143 touch('test.0'); 144 run_make_test(' 145 .SECONDARY : test.1 test.2 test.3 146 147 test : test.4 148 149 %.4 : %.int %.3 ; touch $@ 150 151 %.int : %.3 %.2 ; touch $@ 152 153 %.3 : | %.2 ; touch $@ 154 155 %.2 : %.1 ; touch $@ 156 157 %.1 : %.0 ; touch $@', '-rR -j 2', 158 'touch test.1 159 touch test.2 160 touch test.3 161 touch test.int 162 touch test.4 163 rm test.int'); 164 165 # After a touch of test.0 it should give the same output, except we don't need 166 # to rebuild test.3 (order-only) 167 sleep(1); 168 touch('test.0'); 169 run_make_test(undef, '-rR -j 2', 170 'touch test.1 171 touch test.2 172 touch test.int 173 touch test.4 174 rm test.int'); 175 176 # With both test.0 and test.3 updated it should still build everything except 177 # test.3 178 sleep(1); 179 touch('test.0', 'test.3'); 180 run_make_test(undef, '-rR -j 2', 181 'touch test.1 182 touch test.2 183 touch test.int 184 touch test.4 185 rm test.int'); 186 187 unlink(qw(test.0 test.1 test.2 test.3 test.4)); 188 124 189 # This tells the test driver that the perl test script executed properly. 125 190 1;
Note:
See TracChangeset
for help on using the changeset viewer.