2 # Finds the files that have the same name, case insensitively in the build tree
5 @INC = '..' if -f '../TestInit.pm';
7 use TestInit qw(T); # T is chdir to the top level
17 my $name = $File::Find::name;
18 # Assumes that the path separator is exactly one character.
21 # Special exemption for Makefile, makefile
22 return if $name =~ m!\A(?:x2p/)?[Mm]akefile\z!;
24 push @{$files{lc $name}}, $name;
27 foreach (sort values %files) {
29 print "not ok ".++$test_count. " - ". join(", ", @$_), "\n";
30 print STDERR "# $_\n" foreach @$_;
32 print "ok ".++$test_count. " - ". join(", ", @$_), "\n";
36 print "1..".$test_count."\n";