]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/bin/result-filter.pl
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / bin / result-filter.pl
index 94434521b7297363b778fa58d3c5745deb5f5816..9c92392d975d994a903e10197782fa1d18bcf0e0 100755 (executable)
@@ -93,6 +93,15 @@ sub process_entry
     {
        printf "%-40s FAIL Makefile failure\n", $test_name;
        $total_count++;
+       #my $line1;
+       #foreach $line1 (@{$$tbl{stdout}})
+       #{
+       #    printf "stdout: %s\n", $line1;
+       #}
+       #foreach $line1 (@{$$tbl{stderr}})
+       #{
+       #    printf "stderr: %s\n", $line1;
+       #}
        return;
     }
 
@@ -110,12 +119,16 @@ sub process_entry
     {
        if($line =~ m/^(PASS|XPASS|FAIL|XFAIL).+/)
        {
-           printf "%-40s %s\n", $test_name, $line;
            $total_count++;
            if($line =~ m/^PASS.+/)
            {
                $pass_count++;
            }
+           else
+           {
+               # only print failure lines
+               printf "%-40s %s\n", $test_name, $line;
+           }
            $seen_result = 1;
        }
     }
@@ -123,5 +136,14 @@ sub process_entry
     {
        printf "%-40s AMBIGIOUS missing [X]PASS/[X]FAIL\n", $test_name;
        $total_count++;
+       #my $line1;
+       #foreach $line1 (@{$$tbl{stdout}})
+       #{
+       #    printf "stdout: %s\n", $line1;
+       #}
+       #foreach $line1 (@{$$tbl{stderr}})
+       #{
+       #    printf "stderr: %s\n", $line1;
+       #}
     }
 }