Changeset 284 in kBuild for branches/GNU/src/gmake/tests/scripts/options/dash-B
- Timestamp:
- May 16, 2005 4:54:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/tests/scripts/options/dash-B
r53 r284 9 9 is built again."; 10 10 11 open(MAKEFILE,"> $makefile");11 &touch('bar.x'); 12 12 13 print MAKEFILE <<'EOF'; 13 run_make_test(' 14 14 .SUFFIXES: 15 15 … … 20 20 @echo cp $< $@ 21 21 @echo "" > $@ 22 EOF 22 ', 23 '', 'cp bar.x foo'); 23 24 24 close(MAKEFILE); 25 run_make_test(undef, '', "#MAKE#: Nothing to be done for `all'."); 26 run_make_test(undef, '-B', 'cp bar.x foo'); 27 28 # Put the timestamp for foo into the future; it should still be remade. 29 30 utouch(1000, 'foo'); 31 run_make_test(undef, '', "#MAKE#: Nothing to be done for `all'."); 32 run_make_test(undef, '-B', 'cp bar.x foo'); 25 33 26 34 27 &touch('bar.x'); 35 # Clean up 28 36 29 &run_make_with_options($makefile, '', &get_logfile); 30 $answer = "cp bar.x foo\n"; 31 &compare_output($answer, &get_logfile(1)); 32 33 &run_make_with_options($makefile, '', &get_logfile); 34 $answer = "$make_name: Nothing to be done for `all'.\n"; 35 &compare_output($answer, &get_logfile(1)); 36 37 &run_make_with_options($makefile, '-B', &get_logfile); 38 $answer = "cp bar.x foo\n"; 39 &compare_output($answer, &get_logfile(1)); 40 41 unlink('bar.x', 'foo') unless $keep; 37 rmfiles('bar.x', 'foo'); 42 38 43 39 1;
Note:
See TracChangeset
for help on using the changeset viewer.

