Changeset 3138 in kBuild for vendor/gnumake/current/tests/scripts/features/default_names
- Timestamp:
- Mar 12, 2018 7:32:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/tests/scripts/features/default_names
r2596 r3138 11 11 close(MAKEFILE); 12 12 13 # DOS/WIN32 platforms preserve case, but Makefile is the same file as makefile. 14 # Just test what we can here (avoid Makefile versus makefile test). 13 # Create another makefile called "makefile" 14 open(MAKEFILE,"> makefile"); 15 print MAKEFILE "SECOND: ; \@echo It chose makefile\n"; 16 close(MAKEFILE); 15 17 16 if ($port_type eq 'UNIX') { 17 # Create another makefile called "makefile" 18 open(MAKEFILE,"> makefile"); 19 print MAKEFILE "SECOND: ; \@echo It chose makefile\n"; 20 close(MAKEFILE); 18 # DOS/WIN32/MacOSX platforms are case-insensitive / case-preserving, so 19 # Makefile is the same file as makefile. Just test what we can here. 20 21 my $case_sensitive = 0; 22 if (! -f 'Makefile') { 23 # Create another makefile called "Makefile" 24 $case_sensitive = 1; 25 open(MAKEFILE,"> Makefile"); 26 print MAKEFILE "THIRD: ; \@echo It chose Makefile\n"; 27 close(MAKEFILE); 21 28 } 22 29 23 # Create another makefile called "Makefile" 24 open(MAKEFILE,"> Makefile"); 25 print MAKEFILE "THIRD: ; \@echo It chose Makefile\n"; 26 close(MAKEFILE); 30 run_make_with_options("","",&get_logfile); 31 compare_output("It chose GNUmakefile\n",&get_logfile(1)); 32 unlink($makefile); 27 33 34 run_make_with_options("","",&get_logfile); 35 compare_output("It chose makefile\n",&get_logfile(1)); 36 unlink("makefile"); 28 37 29 &run_make_with_options("","",&get_logfile); 30 &compare_output("It chose GNUmakefile\n",&get_logfile(1)); 31 unlink $makefile; 32 33 if ($port_type eq 'UNIX') { 34 &run_make_with_options("","",&get_logfile); 35 &compare_output("It chose makefile\n",&get_logfile(1)); 36 unlink "makefile"; 38 if ($case_sensitive) { 39 run_make_with_options("","",&get_logfile); 40 compare_output("It chose Makefile\n",&get_logfile(1)); 41 unlink("Makefile"); 37 42 } 38 43 39 &run_make_with_options("","",&get_logfile); 40 &compare_output("It chose Makefile\n",&get_logfile(1)); 41 unlink "Makefile"; 44 1;
Note:
See TracChangeset
for help on using the changeset viewer.

