1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/script/show_test_time
Jelmer Vernooij 498743bd46 show_test_time: Move to root scripting directory as it's useful for s3
and s4.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Nov 27 17:17:29 CET 2010 on sn-devel-104
2010-11-27 17:17:29 +01:00

20 lines
331 B
Perl
Executable File

#!/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";
}