summaryrefslogtreecommitdiff
path: root/lib/torture/torture.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-31 02:57:47 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-31 02:57:47 +0200
commit31094b0e8ca73e3150de9de689f4c5c38b2e9f1f (patch)
tree5095475c46abfc5bd0ccb8c147c9e6279ba96b84 /lib/torture/torture.h
parent197c98292bd838e27da6692ba8e7984f12a66fef (diff)
downloadsamba-31094b0e8ca73e3150de9de689f4c5c38b2e9f1f.tar.gz
samba-31094b0e8ca73e3150de9de689f4c5c38b2e9f1f.tar.bz2
samba-31094b0e8ca73e3150de9de689f4c5c38b2e9f1f.zip
smbtorture: Report number of available tests in a testsuite using subunit.
Diffstat (limited to 'lib/torture/torture.h')
-rw-r--r--lib/torture/torture.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/torture/torture.h b/lib/torture/torture.h
index ad3668fbe8..cb2c02ba3e 100644
--- a/lib/torture/torture.h
+++ b/lib/torture/torture.h
@@ -34,6 +34,13 @@ enum torture_result {
TORTURE_SKIP=3
};
+enum torture_progress_whence {
+ TORTURE_PROGRESS_SET,
+ TORTURE_PROGRESS_CUR,
+ TORTURE_PROGRESS_POP,
+ TORTURE_PROGRESS_PUSH,
+};
+
/*
* These callbacks should be implemented by any backend that wishes
* to listen to reports from the torture tests.
@@ -52,6 +59,7 @@ struct torture_ui_ops
struct torture_test *);
void (*test_result) (struct torture_context *,
enum torture_result, const char *reason);
+ void (*progress) (struct torture_context *, int offset, enum torture_progress_whence whence);
};
void torture_ui_test_start(struct torture_context *context,
@@ -465,6 +473,7 @@ struct torture_test *torture_tcase_add_simple_test(struct torture_tcase *tcase,
bool torture_suite_init_tcase(struct torture_suite *suite,
struct torture_tcase *tcase,
const char *name);
+int torture_suite_children_count(const struct torture_suite *suite);
struct torture_context *torture_context_init(struct tevent_context *event_ctx, struct torture_results *results);