summaryrefslogtreecommitdiff
path: root/selftest/format-subunit.pl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-06-04 13:49:11 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-06-11 19:59:58 +0200
commit16a69f358a38c60577e25bc0811a220f8e71d2cd (patch)
tree8986f5b24d4a29701d88d5ef1932c9b025cf8954 /selftest/format-subunit.pl
parent9bdf76c9c214d6f12c379f8feefe120fdae84377 (diff)
downloadsamba-16a69f358a38c60577e25bc0811a220f8e71d2cd.tar.gz
samba-16a69f358a38c60577e25bc0811a220f8e71d2cd.tar.bz2
samba-16a69f358a38c60577e25bc0811a220f8e71d2cd.zip
selftest: Use external processes for filtering known failures and pretty
formatting.
Diffstat (limited to 'selftest/format-subunit.pl')
-rwxr-xr-xselftest/format-subunit.pl35
1 files changed, 33 insertions, 2 deletions
diff --git a/selftest/format-subunit.pl b/selftest/format-subunit.pl
index c60902f8d7..acaac697aa 100755
--- a/selftest/format-subunit.pl
+++ b/selftest/format-subunit.pl
@@ -3,6 +3,38 @@
# Copyright (C) Jelmer Vernooij <jelmer@samba.org>
# Published under the GNU GPL, v3 or later
+=pod
+
+=head1 NAME
+
+format-subunit [--format=<NAME>] [--immediate] < instream > outstream
+
+=head1 SYNOPSIS
+
+Format the output of a subunit stream.
+
+=head1 OPTIONS
+
+=over 4
+
+=item I<--immediate>
+
+Show errors as soon as they happen rather than at the end of the test run.
+
+=item I<--format>=FORMAT
+
+Choose the format to print. Currently supported are plain, html or buildfarm.
+
+=head1 LICENSE
+
+GNU General Public License, version 3 or later.
+
+=head1 AUTHOR
+
+Jelmer Vernooij <jelmer@samba.org>
+
+=cut
+
use Getopt::Long;
use strict;
use FindBin qw($RealBin $Script);
@@ -60,8 +92,7 @@ if ($opt_format eq "buildfarm") {
die("Invalid output format '$opt_format'");
}
-my $expected_ret = parse_results(
- $msg_ops, $statistics, *STDIN, []);
+my $expected_ret = parse_results($msg_ops, $statistics, *STDIN, []);
$msg_ops->summary();