From e4684e6632f62689e7a51ff6615dc6a797fe3243 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 17 Jun 2006 00:56:17 +0000 Subject: 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) --- source4/torture/smbtorture.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4') 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;iskipped+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); -- cgit