Unit Tests

- New 'problems' script to help identify problem areas in the test
  suite.
This commit is contained in:
Paul Beckingham
2011-08-11 18:25:10 -04:00
parent 92ad842ab8
commit 5a2fba607e

24
test/problems Executable file
View File

@@ -0,0 +1,24 @@
#! /usr/bin/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;