Changeset 284 in kBuild for branches/GNU/src/gmake/tests/scripts/targets
- Timestamp:
- May 16, 2005 4:54:08 PM (19 years ago)
- 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."; 2 2 3 3 $details = "If the rule ...\n"; … … 18 18 print MAKEFILE ".IGNORE :\n"; 19 19 print MAKEFILE "clean: FORCE\n"; 20 print MAKEFILE "\t$delete_command clean\n"; 20 print MAKEFILE "\t$delete_command clean\n"; 21 21 print MAKEFILE "FORCE:\n"; 22 22 … … 27 27 28 28 # 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 30 30 # use the .PHONY target. 31 31 &touch("clean"); … … 34 34 &run_make_with_options($makefile,"clean",&get_logfile); 35 35 36 &compare_output($answer,&get_logfile(1)); 36 &compare_output($answer,&get_logfile(1)); 37 37 38 if (-f $example)39 {40 $test_passed = 0;41 }42 43 38 1; 44 39 -
branches/GNU/src/gmake/tests/scripts/targets/PHONY
r53 r284 28 28 print MAKEFILE "\t\@echo This makefile did not clean the dir ... good\n"; 29 29 print MAKEFILE "clean: \n"; 30 print MAKEFILE "\t$delete_command $example clean\n"; 30 print MAKEFILE "\t$delete_command $example clean\n"; 31 31 32 32 # END of Contents of MAKEFILE … … 37 37 38 38 # 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 40 40 # use the .PHONY target. 41 41 &touch("clean"); … … 44 44 &run_make_with_options($makefile,"clean",&get_logfile); 45 45 46 &compare_output($answer,&get_logfile(1)); 46 if (-f $example) { 47 $test_passed = 0; 48 } 47 49 48 if (-f $example) 49 { 50 $test_passed = 0; 51 } 52 50 &compare_output($answer,&get_logfile(1)); 51 53 52 1; 54 53 -
branches/GNU/src/gmake/tests/scripts/targets/SECONDARY
r53 r284 109 109 unlink('source', 'final', 'intermediate'); 110 110 111 112 # TEST #8 -- test the "global" .SECONDARY, with .PHONY. 113 114 touch('version2'); 115 run_make_test(' 116 .PHONY: version 117 .SECONDARY: 118 version2: version ; @echo GOOD 119 all: version2', 120 'all', 'GOOD'); 121 122 unlink('version2'); 123 111 124 # This tells the test driver that the perl test script executed properly. 112 125 1; -
branches/GNU/src/gmake/tests/scripts/targets/SILENT
r53 r284 23 23 print MAKEFILE ".SILENT : clean\n"; 24 24 print MAKEFILE "clean: \n"; 25 print MAKEFILE "\t$delete_command EXAMPLE_FILE\n"; 25 print MAKEFILE "\t$delete_command EXAMPLE_FILE\n"; 26 26 27 27 # END of Contents of MAKEFILE … … 33 33 $answer = ""; 34 34 &run_make_with_options($makefile,"clean",&get_logfile,0); 35 if (-f $example) { 36 $test_passed = 0; 37 } 38 &compare_output($answer,&get_logfile(1)); 35 39 36 &compare_output($answer,&get_logfile(1));37 if (-f $example)38 {39 $test_passed = 0;40 }41 42 40 1; 43 41 -
branches/GNU/src/gmake/tests/scripts/targets/clean
r53 r284 34 34 $answer = "$delete_command $example\n"; 35 35 &run_make_with_options($makefile,"clean",&get_logfile,0); 36 36 if (-f $example) { 37 $test_passed = 0; 38 } 37 39 &compare_output($answer,&get_logfile(1)) || &error ("abort"); 38 if (-f $example) {39 $test_passed = 0;40 }41 40 42 41 1;
Note:
See TracChangeset
for help on using the changeset viewer.

