diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-04-19 17:50:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:51:12 -0500 |
commit | 3e6c45455feb64ad6a4178196cdede4d1e46d0fe (patch) | |
tree | c41414ae173c460cb271e02518228f7f39fb10c5 /source4 | |
parent | 8b3830fbbf3d69f4d7eb0bd7e91a687a41924b41 (diff) | |
download | samba-3e6c45455feb64ad6a4178196cdede4d1e46d0fe.tar.gz samba-3e6c45455feb64ad6a4178196cdede4d1e46d0fe.tar.bz2 samba-3e6c45455feb64ad6a4178196cdede4d1e46d0fe.zip |
r22384: print out the total selftest runtime
and the time for each test
we hit the max runtime of smbd on some hosts
metze
(This used to be commit 7b173c3421c30d6b5ce67f87ee81f011734e8c1a)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/tests/selftest.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/script/tests/selftest.pl b/source4/script/tests/selftest.pl index a155220e03..2477cb1532 100755 --- a/source4/script/tests/selftest.pl +++ b/source4/script/tests/selftest.pl @@ -191,6 +191,7 @@ sub buildfarm_start_msg($) $out .= "Running test $state->{NAME} (level 0 stdout)\n"; $out .= "--==--==--==--==--==--==--==--==--==--==--\n"; $out .= scalar(localtime())."\n"; + $out .= "SELFTEST RUNTIME: " . ($state->{START} - $start) . "s"; $out .= "NAME: $state->{NAME}\n"; $out .= "CMD: $state->{CMD}\n"; @@ -211,6 +212,8 @@ sub buildfarm_end_msg($$$) my ($state, $expected_ret, $ret) = @_; my $out = ""; + $out .= "TEST RUNTIME: " . (time() - $state->{START}) . "s"; + if ($ret == $expected_ret) { $out .= "ALL OK\n"; } else { |