summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-05-02 13:46:34 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-08 02:57:07 +0200
commit7c0c1fabd08cac83f306240f00a98901543a367f (patch)
tree3a368297d8c8dd631c7ba0add196c35e82134884 /source4/torture
parent05bed62371e3acfb1813024ae45bd563e3a1d749 (diff)
downloadsamba-7c0c1fabd08cac83f306240f00a98901543a367f.tar.gz
samba-7c0c1fabd08cac83f306240f00a98901543a367f.tar.bz2
samba-7c0c1fabd08cac83f306240f00a98901543a367f.zip
s4:torture/raw: make torture_raw_context a test suite
metze
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/raw/context.c13
-rw-r--r--source4/torture/raw/raw.c2
2 files changed, 12 insertions, 3 deletions
diff --git a/source4/torture/raw/context.c b/source4/torture/raw/context.c
index 0e0db99e4d..45300cf249 100644
--- a/source4/torture/raw/context.c
+++ b/source4/torture/raw/context.c
@@ -889,8 +889,8 @@ static bool torture_raw_context_int(struct torture_context *tctx,
/*
basic testing of session/tree context calls
*/
-bool torture_raw_context(struct torture_context *torture,
- struct smbcli_state *cli)
+static bool torture_raw_context_all(struct torture_context *torture,
+ struct smbcli_state *cli)
{
bool ret = true;
if (lpcfg_use_spnego(torture->lp_ctx)) {
@@ -902,3 +902,12 @@ bool torture_raw_context(struct torture_context *torture,
return ret;
}
+
+struct torture_suite *torture_raw_context(TALLOC_CTX *mem_ctx)
+{
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "context");
+
+ torture_suite_add_1smb_test(suite, "all", torture_raw_context_all);
+
+ return suite;
+}
diff --git a/source4/torture/raw/raw.c b/source4/torture/raw/raw.c
index cf3a5cb2d1..9686efa80c 100644
--- a/source4/torture/raw/raw.c
+++ b/source4/torture/raw/raw.c
@@ -55,7 +55,7 @@ NTSTATUS torture_raw_init(void)
torture_suite_add_suite(suite, torture_raw_read(suite));
torture_suite_add_suite(suite, torture_raw_write(suite));
torture_suite_add_suite(suite, torture_raw_lock(suite));
- torture_suite_add_1smb_test(suite, "context", torture_raw_context);
+ torture_suite_add_suite(suite, torture_raw_context(suite));
torture_suite_add_suite(suite, torture_raw_session(suite));
torture_suite_add_suite(suite, torture_raw_rename(suite));
torture_suite_add_1smb_test(suite, "seek", torture_raw_seek);