Changeset 501 in kBuild for vendor/gnumake/current/tests/scripts/features/default_names
- Timestamp:
- Sep 15, 2006 2:30:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/tests/scripts/features/default_names
r53 r501 8 8 9 9 open(MAKEFILE,"> $makefile"); 10 11 10 print MAKEFILE "FIRST: ; \@echo It chose GNUmakefile\n"; 12 13 11 close(MAKEFILE); 14 12 15 13 # DOS/WIN32 platforms preserve case, but Makefile is the same file as makefile. 16 14 # Just test what we can here (avoid Makefile versus makefile test). 17 # 18 if ($port_type eq 'UNIX') 19 { 15 16 if ($port_type eq 'UNIX') { 20 17 # Create another makefile called "makefile" 21 18 open(MAKEFILE,"> makefile"); 22 23 19 print MAKEFILE "SECOND: ; \@echo It chose makefile\n"; 24 25 20 close(MAKEFILE); 26 21 } 27 22 28 29 23 # Create another makefile called "Makefile" 30 24 open(MAKEFILE,"> Makefile"); 31 32 25 print MAKEFILE "THIRD: ; \@echo It chose Makefile\n"; 33 34 26 close(MAKEFILE); 35 27 36 28 37 29 &run_make_with_options("","",&get_logfile); 38 39 # Create the answer to what should be produced by this Makefile 40 $answer = "It chose GNUmakefile\n"; 41 42 # COMPARE RESULTS 43 44 &compare_output($answer,&get_logfile(1)) || &error("abort"); 30 &compare_output("It chose GNUmakefile\n",&get_logfile(1)); 45 31 unlink $makefile; 46 32 47 # DOS/WIN32 platforms preserve case, but Makefile is the same file as makefile. 48 # Just test what we can here (avoid Makefile versus makefile test). 49 # 50 if ($port_type eq 'UNIX') 51 { 52 $answer = "It chose makefile\n"; 53 33 if ($port_type eq 'UNIX') { 54 34 &run_make_with_options("","",&get_logfile); 55 56 &compare_output($answer,&get_logfile(1)) || &error("abort"); 35 &compare_output("It chose makefile\n",&get_logfile(1)); 57 36 unlink "makefile"; 58 37 } 59 38 60 $answer = "It chose Makefile\n";61 62 39 &run_make_with_options("","",&get_logfile); 63 64 &compare_output($answer,&get_logfile(1)) || &error("abort"); 40 &compare_output("It chose Makefile\n",&get_logfile(1)); 65 41 unlink "Makefile";
Note:
See TracChangeset
for help on using the changeset viewer.

