VirtualBox

Ignore:
Timestamp:
May 16, 2005 4:54:08 PM (19 years ago)
Author:
bird
Message:

Current make snaphot, 2005-05-16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/tests/scripts/options/dash-B

    r53 r284  
    99is built again.";
    1010
    11 open(MAKEFILE,"> $makefile");
     11&touch('bar.x');
    1212
    13 print MAKEFILE <<'EOF';
     13run_make_test('
    1414.SUFFIXES:
    1515
     
    2020        @echo cp $< $@
    2121        @echo "" > $@
    22 EOF
     22',
     23              '', 'cp bar.x foo');
    2324
    24 close(MAKEFILE);
     25run_make_test(undef, '', "#MAKE#: Nothing to be done for `all'.");
     26run_make_test(undef, '-B', 'cp bar.x foo');
     27
     28# Put the timestamp for foo into the future; it should still be remade.
     29
     30utouch(1000, 'foo');
     31run_make_test(undef, '', "#MAKE#: Nothing to be done for `all'.");
     32run_make_test(undef, '-B', 'cp bar.x foo');
    2533
    2634
    27 &touch('bar.x');
     35# Clean up
    2836
    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;
     37rmfiles('bar.x', 'foo');
    4238
    43391;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette