mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
Add a script for formating test result of st/subunit
This script show the time of each test and tests are sorted by execution time (from the slowest to the quickest) Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Tue Oct 26 20:42:11 UTC 2010 on sn-devel-104
This commit is contained in:
parent
62eb450bc2
commit
d8e246cf8a
19
source4/scripting/devel/show_test_time
Executable file
19
source4/scripting/devel/show_test_time
Executable file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env perl
|
||||
#
|
||||
use strict;
|
||||
my %h;
|
||||
open(FH, "subunit-ls --times --no-passthrough|") || die "pb with subunit-ls";
|
||||
while(<FH>)
|
||||
{
|
||||
chomp();
|
||||
my @l = split(/ /);
|
||||
my $val = @l[scalar(@l)-1];
|
||||
$h{join(' ',@l)} = $val;
|
||||
}
|
||||
|
||||
my @sorted = sort { $h{$b}<=>$h{$a} } keys(%h);
|
||||
use Data::Dumper;
|
||||
foreach my $l (@sorted)
|
||||
{
|
||||
print "$l\n";
|
||||
}
|
Loading…
Reference in New Issue
Block a user