summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/smbtorture.c8
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);