mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
Unit Tests
- Set up initial test directory.
This commit is contained in:
parent
dd07ee6ae0
commit
dacd68b236
9 changed files with 890 additions and 0 deletions
24
test/problems
Executable file
24
test/problems
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/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;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue