diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-10-16 20:05:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:13 -0500 |
commit | 52e3f69a36b6ba6a589a8f768fbee77ee06b281c (patch) | |
tree | 4f77d34f1c12b2fb77f672ed2d989f7ad88d7ca6 /source4/torture/ui.h | |
parent | 3478bf1c238eaa82d9383f18dcb7d802aed06cd0 (diff) | |
download | samba-52e3f69a36b6ba6a589a8f768fbee77ee06b281c.tar.gz samba-52e3f69a36b6ba6a589a8f768fbee77ee06b281c.tar.bz2 samba-52e3f69a36b6ba6a589a8f768fbee77ee06b281c.zip |
r19343: Add support for external scripts/binaries that write results using the
'subunit' protocol. This allows us to easily plug EJS scripts or binaries that
can't depend on -ltorture into smbtorture. The protocol is very simple:
- write "comments" to stderr
Example output on stdout:
test: foo
success: foo
test: bar
success: bar
test: blah
failure: blah [
dummy.c:30: Expression 1 != 2 failed!
]
test: blie
skip: blie [
Iconv support not built in
]
I've already converted the talloc testsuite.
(This used to be commit e1742c14a247fabba969f8698108e73997d3f420)
Diffstat (limited to 'source4/torture/ui.h')
-rw-r--r-- | source4/torture/ui.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/torture/ui.h b/source4/torture/ui.h index 36457e6a84..b4e3585031 100644 --- a/source4/torture/ui.h +++ b/source4/torture/ui.h @@ -52,6 +52,14 @@ struct torture_ui_ops enum torture_result, const char *reason); }; +void torture_ui_test_start(struct torture_context *context, + struct torture_tcase *tcase, + struct torture_test *test); + +void torture_ui_test_result(struct torture_context *context, + enum torture_result result, + const char *comment); + /* * Holds information about a specific run of the testsuite. * The data in this structure should be considered private to @@ -121,6 +129,7 @@ struct torture_tcase { struct torture_suite { const char *name; + const char *path; /* Used by subunit tests only */ const char *description; struct torture_tcase *testcases; struct torture_suite *children; |