From 13ea7bb7538050b21abcab9c2db7a2f85e2fdd02 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 25 Mar 2006 18:45:51 +0000 Subject: r14723: Keep statistics (This used to be commit 9d6eefad3a45aba52247d4364c9ef5a538f0abd5) --- source4/torture/ui.c | 3 +++ source4/torture/ui.h | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/ui.c b/source4/torture/ui.c index 0ab8d4e8da..176f911845 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -63,14 +63,17 @@ void torture_comment(struct torture_test *test, const char *comment, ...) _PRINT void torture_ok(struct torture_test *test) { test->context->ui_ops->test_result(test, TORTURE_OK); + test->context->success++; } void torture_fail(struct torture_test *test) { test->context->ui_ops->test_result(test, TORTURE_FAIL); + test->context->failed++; } void torture_skip(struct torture_test *test) { test->context->ui_ops->test_result(test, TORTURE_SKIP); + test->context->skipped++; } diff --git a/source4/torture/ui.h b/source4/torture/ui.h index df74f2cdcf..bf9ff80eb2 100644 --- a/source4/torture/ui.h +++ b/source4/torture/ui.h @@ -49,4 +49,9 @@ struct torture_context { const struct torture_ui_ops *ui_ops; void *ui_data; + + int skipped; + int todo; + int success; + int failed; }; -- cgit