diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-06-17 00:56:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:10 -0500 |
commit | e4684e6632f62689e7a51ff6615dc6a797fe3243 (patch) | |
tree | e9291d4ac594fb92a8057497e1df8060fd4fd1e3 /source4 | |
parent | 0f62c1119965f21d1f1c166e162f889c7f7cc75e (diff) | |
download | samba-e4684e6632f62689e7a51ff6615dc6a797fe3243.tar.gz samba-e4684e6632f62689e7a51ff6615dc6a797fe3243.tar.bz2 samba-e4684e6632f62689e7a51ff6615dc6a797fe3243.zip |
r16330: Show number of succeeded, failed and skipped tests and success rate at the
end of a smbtorture run.
(This used to be commit 745f3d544bb1158c7c0001d36181916cd932bc08)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smbtorture.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index 6d1bd1cca9..baa8965c74 100644 --- a/source4/torture/smbtorture.c +++ b/source4/torture/smbtorture.c @@ -530,11 +530,19 @@ const static struct torture_ui_ops quiet_ui_ops = { if (argc_new == 0) { printf("You must specify a test to run, or 'ALL'\n"); } else { + int total; + double rate; for (i=2;i<argc_new;i++) { if (!run_test(torture, argv_new[i])) { correct = False; } } + + total = torture->skipped+torture->success+torture->failed; + rate = ((total - torture->failed) * (100.0 / total)); + printf("Tests: %d, Errors: %d, Skipped: %d. Success rate: %.2f%%\n", + total, torture->failed, torture->skipped, + rate); } talloc_free(torture); |