summaryrefslogtreecommitdiff
path: root/source4/torture/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-06-17 00:17:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:10 -0500
commit920c1ca95c499194430a18a9f2186670c6861cc4 (patch)
tree4fc108e421b6448ed756c5b7dd8b5db9f6d88c27 /source4/torture/auth
parent5b7ee5e7d69f73618d7cc7a4229b98c429506084 (diff)
downloadsamba-920c1ca95c499194430a18a9f2186670c6861cc4.tar.gz
samba-920c1ca95c499194430a18a9f2186670c6861cc4.tar.bz2
samba-920c1ca95c499194430a18a9f2186670c6861cc4.zip
r16328: Wrap all existing tests in simple single-function testsuites.
(This used to be commit 7e811adf59841936b7e634fca4e95630f890c5af)
Diffstat (limited to 'source4/torture/auth')
-rw-r--r--source4/torture/auth/ntlmssp.c8
-rw-r--r--source4/torture/auth/pac.c7
2 files changed, 7 insertions, 8 deletions
diff --git a/source4/torture/auth/ntlmssp.c b/source4/torture/auth/ntlmssp.c
index 5c75a5b028..978610ec51 100644
--- a/source4/torture/auth/ntlmssp.c
+++ b/source4/torture/auth/ntlmssp.c
@@ -23,7 +23,6 @@
#include "auth/ntlmssp/ntlmssp.h"
#include "lib/cmdline/popt_common.h"
#include "torture/torture.h"
-#include "torture/ui.h"
static BOOL torture_ntlmssp_self_check(struct torture_context *test,
const void *_data)
@@ -129,12 +128,13 @@ static BOOL torture_ntlmssp_self_check(struct torture_context *test,
return True;
}
-BOOL torture_ntlmssp(struct torture_context *torture)
+struct torture_suite *torture_ntlmssp(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(torture, "AUTH-NTLMSSP");
+ struct torture_suite *suite = torture_suite_create(mem_ctx,
+ "LOCAL-NTLMSSP");
torture_suite_add_simple_tcase(suite, "NTLMSSP self check",
torture_ntlmssp_self_check, NULL);
- return torture_run_suite(torture, suite);
+ return suite;
}
diff --git a/source4/torture/auth/pac.c b/source4/torture/auth/pac.c
index 316a67acb0..ecba5d1cc8 100644
--- a/source4/torture/auth/pac.c
+++ b/source4/torture/auth/pac.c
@@ -29,7 +29,6 @@
#include "samba3/samba3.h"
#include "libcli/security/security.h"
#include "torture/torture.h"
-#include "torture/ui.h"
static BOOL torture_pac_self_check(struct torture_context *test,
const void *_data)
@@ -662,9 +661,9 @@ static BOOL torture_pac_saved_check(struct torture_context *test,
return True;
}
-BOOL torture_pac(struct torture_context *torture)
+struct torture_suite *torture_pac(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(torture, "AUTH-PAC");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "AUTH-PAC");
torture_suite_add_simple_tcase(suite, "self check",
torture_pac_self_check, NULL);
@@ -672,5 +671,5 @@ BOOL torture_pac(struct torture_context *torture)
torture_suite_add_simple_tcase(suite, "saved check",
torture_pac_saved_check, NULL);
- return torture_run_suite(torture, suite);
+ return suite;
}