From: Kern Sibbald Date: Sat, 29 Jan 2005 20:52:15 +0000 (+0000) Subject: Add start/endtime X-Git-Tag: Release-1.38.0~659 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d283b70144ce6e198d752c5027a9d931c4ef4167;p=bacula%2Fbacula Add start/endtime git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1805 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/do_all b/regress/do_all index ce86177ef9..1787b27a23 100755 --- a/regress/do_all +++ b/regress/do_all @@ -1,3 +1,5 @@ #!/bin/sh make setup -./all-tape-and-file-tests +./starttime +./all-non-root-tests +./endtime diff --git a/regress/endtime b/regress/endtime new file mode 100755 index 0000000000..8a218b67fc --- /dev/null +++ b/regress/endtime @@ -0,0 +1,8 @@ +#!/usr/bin/python +from time import time as now + +t = now() +fn = open('time.out', 'r') +s = fn.readline() +fn.close() +print 'Total time: %d secs' % (t - float(s)) diff --git a/regress/starttime b/regress/starttime new file mode 100755 index 0000000000..5c2bd411c6 --- /dev/null +++ b/regress/starttime @@ -0,0 +1,6 @@ +#!/usr/bin/python +from time import time as now + +fn = open('time.out', 'w+') +fn.write('%s' % now()) +fn.close() diff --git a/regress/tests/backup-bacula-test b/regress/tests/backup-bacula-test index d8512e2181..e382cafa22 100755 --- a/regress/tests/backup-bacula-test +++ b/regress/tests/backup-bacula-test @@ -13,7 +13,8 @@ echo " === Starting Backup Bacula Test ===" echo " === Starting Backup Bacula Test ===" >>working/log echo " " -bin/bacula start 2>&1 >/dev/null +#bin/bacula start 2>&1 >/dev/null +bin/bacula start bin/bconsole -c bin/bconsole.conf <>working/log echo " " bin/bacula start 2>&1 >/dev/null +exit bin/bconsole -c bin/bconsole.conf <