Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (19 sloc) 0.542 kB
#!/usr/bin/perl
use strict;
use FindBin qw($Bin);
our @files;
BEGIN {
chdir "$Bin/.." or die;
@files = grep {! /^config.h$/ } (glob("*.h"), glob("*.c"), glob("*.ac"), "memcached.spec");
}
use Test::More tests => scalar(@files);
foreach my $f (@files) {
open(my $fh, $f) or die;
my $before = do { local $/; <$fh>; };
close ($fh);
my $after = $before;
$after =~ s/\t/ /g;
$after =~ s/ +$//mg;
$after .= "\n" unless $after =~ /\n$/;
ok ($after eq $before, "$f (see devtools/clean-whitespace.pl)");
}
Jump to Line
Something went wrong with that request. Please try again.