summaryrefslogtreecommitdiff
path: root/selftest/Subunit.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-30 14:30:08 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-31 02:20:08 +0200
commitb2eb609d4de39c1359142bc0562daf36e4dee08c (patch)
treec532013e1bcd0e8e50680c476660c0c36c78fda1 /selftest/Subunit.pm
parentbeb630b69051acfb6e92ae8ed86007999e7937cd (diff)
downloadsamba-b2eb609d4de39c1359142bc0562daf36e4dee08c.tar.gz
selftest: Use standard subunit commands for progress reporting.
Diffstat (limited to 'selftest/Subunit.pm')
-rw-r--r--selftest/Subunit.pm21
1 files changed, 21 insertions, 0 deletions
diff --git a/selftest/Subunit.pm b/selftest/Subunit.pm
index 2a9fc0e48b..fce8d0854a 100644
--- a/selftest/Subunit.pm
+++ b/selftest/Subunit.pm
@@ -176,6 +176,27 @@ sub report_time($)
printf "time: %04d-%02d-%02d %02d:%02d:%02d\n", $year+1900, $mon+1, $mday, $hour, $min, $sec;
}
+sub progress_pop()
+{
+ print "progress: pop\n";
+}
+
+sub progress_push()
+{
+ print "progress: push\n";
+}
+
+sub progress($;$)
+{
+ my ($count, $whence) = @_;
+
+ unless(defined($whence)) {
+ $whence = "";
+ }
+
+ print "progress: $whence$count\n";
+}
+
# The following are Samba extensions:
sub start_testsuite($)