taskshell/test/problems
Paul Beckingham dacd68b236 Unit Tests
- Set up initial test directory.
2014-06-08 17:02:51 -04:00

24 lines
375 B
Perl
Executable file

#!/usr/bin/env perl
use strict;
use warnings;
if (open my $fh, '<', 'all.log')
{
my $test_file;
my %errors;
while (my $line = <$fh>)
{
$test_file = $1 if $line =~ /^# (\S+\.t)$/;
$errors{$test_file}++ if $line =~ /^not /;
}
close $fh;
printf "%-24s %4d\n", $_, $errors{$_}
for sort {$errors{$b} <=> $errors{$a}} keys %errors;
}
exit 0;