VirtualBox

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

Current make snaphot, 2005-05-16.

Location:
branches/GNU/src/gmake/tests/scripts/targets
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/tests/scripts/targets/FORCE

    r53 r284  
    1 $description = "The following tests rules without Commands or Dependencies."; 
     1$description = "The following tests rules without Commands or Dependencies.";
    22
    33$details = "If the rule ...\n";
     
    1818print MAKEFILE ".IGNORE :\n";
    1919print MAKEFILE "clean: FORCE\n";
    20 print MAKEFILE "\t$delete_command clean\n"; 
     20print MAKEFILE "\t$delete_command clean\n";
    2121print MAKEFILE "FORCE:\n";
    2222
     
    2727
    2828# Create a file named "clean".  This is the same name as the target clean
    29 # and tricks the target into thinking that it is up to date.  (Unless you 
     29# and tricks the target into thinking that it is up to date.  (Unless you
    3030# use the .PHONY target.
    3131&touch("clean");
     
    3434&run_make_with_options($makefile,"clean",&get_logfile);
    3535
    36 &compare_output($answer,&get_logfile(1)); 
     36&compare_output($answer,&get_logfile(1));
    3737
    38 if (-f $example)
    39 {
    40    $test_passed = 0;
    41 }
    42  
    43381;
    4439
  • branches/GNU/src/gmake/tests/scripts/targets/PHONY

    r53 r284  
    2828print MAKEFILE "\t\@echo This makefile did not clean the dir ... good\n";
    2929print MAKEFILE "clean: \n";
    30 print MAKEFILE "\t$delete_command $example clean\n"; 
     30print MAKEFILE "\t$delete_command $example clean\n";
    3131
    3232# END of Contents of MAKEFILE
     
    3737
    3838# Create a file named "clean".  This is the same name as the target clean
    39 # and tricks the target into thinking that it is up to date.  (Unless you 
     39# and tricks the target into thinking that it is up to date.  (Unless you
    4040# use the .PHONY target.
    4141&touch("clean");
     
    4444&run_make_with_options($makefile,"clean",&get_logfile);
    4545
    46 &compare_output($answer,&get_logfile(1));
     46if (-f $example) {
     47  $test_passed = 0;
     48}
    4749
    48 if (-f $example)
    49 {
    50    $test_passed = 0;
    51 }
    52  
     50&compare_output($answer,&get_logfile(1));
     51
    53521;
    5453
  • branches/GNU/src/gmake/tests/scripts/targets/SECONDARY

    r53 r284  
    109109unlink('source', 'final', 'intermediate');
    110110
     111
     112# TEST #8 -- test the "global" .SECONDARY, with .PHONY.
     113
     114touch('version2');
     115run_make_test('
     116.PHONY: version
     117.SECONDARY:
     118version2: version ; @echo GOOD
     119all: version2',
     120              'all', 'GOOD');
     121
     122unlink('version2');
     123
    111124# This tells the test driver that the perl test script executed properly.
    1121251;
  • branches/GNU/src/gmake/tests/scripts/targets/SILENT

    r53 r284  
    2323print MAKEFILE ".SILENT : clean\n";
    2424print MAKEFILE "clean: \n";
    25 print MAKEFILE "\t$delete_command EXAMPLE_FILE\n"; 
     25print MAKEFILE "\t$delete_command EXAMPLE_FILE\n";
    2626
    2727# END of Contents of MAKEFILE
     
    3333$answer = "";
    3434&run_make_with_options($makefile,"clean",&get_logfile,0);
     35if (-f $example) {
     36  $test_passed = 0;
     37}
     38&compare_output($answer,&get_logfile(1));
    3539
    36 &compare_output($answer,&get_logfile(1));
    37 if (-f $example)
    38 {
    39    $test_passed = 0;
    40 }
    41  
    42401;
    4341
  • branches/GNU/src/gmake/tests/scripts/targets/clean

    r53 r284  
    3434$answer = "$delete_command $example\n";
    3535&run_make_with_options($makefile,"clean",&get_logfile,0);
    36 
     36if (-f $example) {
     37  $test_passed = 0;
     38}
    3739&compare_output($answer,&get_logfile(1)) || &error ("abort");
    38 if (-f $example) {
    39    $test_passed = 0;
    40 }
    4140
    42411;
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