svn commit: samba r16330 - in branches/SAMBA_4_0/source/torture: .
jelmer at samba.org
jelmer at samba.org
Sat Jun 17 00:56:21 GMT 2006
Author: jelmer
Date: 2006-06-17 00:56:17 +0000 (Sat, 17 Jun 2006)
New Revision: 16330
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16330
Log:
Show number of succeeded, failed and skipped tests and success rate at the
end of a smbtorture run.
Modified:
branches/SAMBA_4_0/source/torture/smbtorture.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/smbtorture.c
===================================================================
--- branches/SAMBA_4_0/source/torture/smbtorture.c 2006-06-17 00:41:53 UTC (rev 16329)
+++ branches/SAMBA_4_0/source/torture/smbtorture.c 2006-06-17 00:56:17 UTC (rev 16330)
@@ -530,11 +530,19 @@
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);
More information about the samba-cvs
mailing list