7 chdir "$Bin/.." or die;
9 my @exempted = qw(Makefile.am ChangeLog doc/Makefile.am);
10 push(@exempted, glob("doc/*.xml"));
11 push(@exempted, glob("doc/xml2rfc/*.xsl"));
12 push(@exempted, glob("m4/*backport*m4"));
13 my %exempted_hash = map { $_ => 1 } @exempted;
15 my @stuff = split /\0/, `git ls-files -z -c -m -o --exclude-standard`;
16 @files = grep { ! $exempted_hash{$_} } @stuff;
18 # We won't find any files if git isn't installed. If git isn't
19 # installed, they're probably not doing any useful development, or
20 # at the very least am will clean up whitespace when we receive
24 plan skip_all
=> "Skipping tests probably because you don't have git.";
29 use Test
::More tests
=> scalar(@files);
31 foreach my $f (@files) {
32 open(my $fh, $f) or die;
33 my $before = do { local $/; <$fh>; };
38 $after .= "\n" unless $after =~ /\n$/;
39 ok
($after eq $before, "$f (see devtools/clean-whitespace.pl)");