summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-10-17 22:06:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:22 -0500
commit4517b7af0e867d7244d8fcb9af72358f3559660f (patch)
tree957f32d0005462ac6d6438e113c31c665de36333 /source4/torture/torture.c
parentc7090e666981eba30eb0553486bf782142e65a89 (diff)
downloadsamba-4517b7af0e867d7244d8fcb9af72358f3559660f.tar.gz
samba-4517b7af0e867d7244d8fcb9af72358f3559660f.tar.bz2
samba-4517b7af0e867d7244d8fcb9af72358f3559660f.zip
r19381: Print out the specific tests that failed after a smbtorture run.
Support listing known failures as a list of wildcards in the file `KNOWN_FAILURES'. (This used to be commit 23f66efd564d1ad549fc0cd60348f54808f5cafa)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r--source4/torture/torture.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index f83a7330c2..e6629eb214 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -43,6 +43,21 @@ bool torture_register_suite(struct torture_suite *suite)
return torture_suite_add_suite(torture_root, suite);
}
+struct torture_context *torture_context_init(TALLOC_CTX *mem_ctx,
+ const char *known_failures_file,
+ const struct torture_ui_ops *ui_ops)
+{
+ int numlines;
+ struct torture_context *torture = talloc_zero(mem_ctx,
+ struct torture_context);
+ torture->expected_failures = file_lines_load(known_failures_file, &numlines,
+ torture);
+ torture->ui_ops = ui_ops;
+
+ return torture;
+}
+
+
int torture_init(void)
{
init_module_fn static_init[] = STATIC_torture_MODULES;