[cairo-commit] test/make-html.pl

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Jul 13 15:50:30 PDT 2006


 test/make-html.pl |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

New commits:
diff-tree 6c7099b0ccc926b4f427c3cceb1fed5534c693ec (from 4b22cb41a9c1fbfc310ae7fd024ceffdb4bf3947)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Jul 13 18:49:52 2006 -0400

    Only generate HTML for log files passed on the command line.
    
    With the make bits already in place, this means that make retest
    creates HTML for only the retested tests.

diff --git a/test/make-html.pl b/test/make-html.pl
index 587ca62..ce3db54 100755
--- a/test/make-html.pl
+++ b/test/make-html.pl
@@ -45,7 +45,9 @@ my $tests = {};
 
 my $teststats = {};
 
-foreach (<*.log>) {
+if ($#ARGV >= 0) { @files = @ARGV; } else { @files = <*.log>; }
+
+foreach (<@files>) {
   (open LOG, "$_") || next;
   while (<LOG>) {
     next unless /^TEST: (.*) TARGET: (.*) FORMAT: (.*) OFFSET: (.*) RESULT: (.*)$/;


More information about the cairo-commit mailing list