#
# WvTest:
# Copyright (C)2007-2009 Versabanq Innovations Inc. and contributors.
+# Copyright (C) 2012 Michal Sojka <sojka@os.inf.tu-dresden.de>
# Licensed under the GNU Library General Public License, version 2.
# See the included file named LICENSE for license information.
#
+# This script aligns assertion results to the same column and, if run
+# on a tty, it colorizes the output. At the end, it summarizes the
+# results.
+#
use strict;
use Getopt::Long;
exit 127;
}
+# Optional prefix of wvtest protocol lines
+my $prefix_re = '\([0-9]+\) (?:# )?';
+
my ($verbose, $summary, $limit_lines);
GetOptions (
#!/usr/bin/perl -w
#
# @file
-# Script to supervise the execution of wvtest-based tests.
+# Script to supervise the execution of wvtest-based tests. It is a
+# modified version of wvtestrun with some features added and without
+# pretty-printing which was moved to wvformat script.
#
# It takes care of killing test (qemu or serial reader) when the test
-# finishes or hangs.
+# finishes or hangs. It has flexible timeout management and is able to
+# check that the number of executed assertions is the same as was
+# expected.
#
# Copyright (C) 2011, 2012, Michal Sojka <sojka@os.inf.tu-dresden.de>
# Economic rights: Technische Universitaet Dresden (Germany)
# Licensed under the GNU Library General Public License, version 2.
# See the included file named LICENSE for license information.
#
+# This script wraps long wvtest protocol lines. I use it as follows to
+# produce nicely formated emails:
+# COLUMNS=80 wvformat < wvtest.log | wvwrap | mail -s Log me@example.com
+
use strict;
use Getopt::Long;
usage() if (@ARGV > 0);
+# Optional prefix of wvtest protocol lines
+my $prefix_re = '\([0-9]+\) (?:# )?';
+
my $istty = -t STDOUT && $ENV{'TERM'} ne "dumb";
my $columns;
if ($istty) {