Changeset 3140 in kBuild for trunk/src/kmk/tests/scripts/features/default_names
- Timestamp:
- Mar 14, 2018 9:28:10 PM (7 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/scripts/features/default_names (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
-
Property svn:mergeinfo
set to
/vendor/gnumake/current merged eligible
-
Property svn:mergeinfo
set to
-
trunk/src/kmk/tests/scripts/features/default_names
r1937 r3140 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). 15 # bird: made this generic, darwin is also defaulting to case insensitive fs. 13 # Create another makefile called "makefile" 14 open(MAKEFILE,"> makefile"); 15 print MAKEFILE "SECOND: ; \@echo It chose makefile\n"; 16 close(MAKEFILE); 16 17 17 if ($port_type eq 'UNIX' && !$case_insensitive_fs) { 18 # Create another makefile called "makefile" 19 open(MAKEFILE,"> makefile"); 20 print MAKEFILE "SECOND: ; \@echo It chose makefile\n"; 21 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); 22 28 } 23 29 24 # Create another makefile called "Makefile" 25 open(MAKEFILE,"> Makefile"); 26 print MAKEFILE "THIRD: ; \@echo It chose Makefile\n"; 27 close(MAKEFILE); 30 run_make_with_options("","",&get_logfile); 31 compare_output("It chose GNUmakefile\n",&get_logfile(1)); 32 unlink($makefile); 28 33 34 run_make_with_options("","",&get_logfile); 35 compare_output("It chose makefile\n",&get_logfile(1)); 36 unlink("makefile"); 29 37 30 &run_make_with_options("","",&get_logfile); 31 &compare_output("It chose GNUmakefile\n",&get_logfile(1)); 32 unlink $makefile; 33 34 if ($port_type eq 'UNIX' && !$case_insensitive_fs) { 35 &run_make_with_options("","",&get_logfile); 36 &compare_output("It chose makefile\n",&get_logfile(1)); 37 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"); 38 42 } 39 43 40 &run_make_with_options("","",&get_logfile); 41 &compare_output("It chose Makefile\n",&get_logfile(1)); 42 unlink "Makefile"; 44 1;
Note:
See TracChangeset
for help on using the changeset viewer.

