#!/usr/bin/perl -w # Copyright 2004 Aleksey Gurtovoy # Copyright 2001 Jens Maurer # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) use strict; my $filename; my $compiler; my $time = 0; my $ct = 0; my $first = 2; print "\n
\n\n"; print "Compile time for each successful regression test in seconds.\n"; print "
\n"; print "
Test | \n"; while(<>) { if(/^\*\*\* (.*) \*\*\*$/) { $filename = $1; $first = ($first == 0 ? 0 : $first-1); if($first == 0) { print "|||
$filename | \n"; } } elsif(/^\*\* (.*)/) { $compiler = $1; if($first) { print "$compiler | \n"; } else { $ct = 1; } } elsif($ct && /^CPU time: ([.0-9]*) s user, ([.0-9]*) s system/) { $time = $1 + $2; } elsif($ct && /^Pass$/) { printf "%.02f | \n", $time; $ct = 0; } elsif($ct && /^Fail$/) { print "- | \n"; $ct = 0; } } print "