summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-09-16 14:19:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:06:48 -0500
commit81539d4966cd9b8e70a55b2c7cfd8f060bc633ed (patch)
treef6f041099ef1d356de7c5a305424e24a581789a9 /source4
parentd6c66ea7746a18428cf85af5639ec562ce024dd2 (diff)
downloadsamba-81539d4966cd9b8e70a55b2c7cfd8f060bc633ed.tar.gz
samba-81539d4966cd9b8e70a55b2c7cfd8f060bc633ed.tar.bz2
samba-81539d4966cd9b8e70a55b2c7cfd8f060bc633ed.zip
r25188: add infrastructure for WINBIND-* tests in smbtorture
metze (This used to be commit 3807699c001ce7a8ee0acba071cc2bb7f4406cd9)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/config.mk1
-rw-r--r--source4/torture/winbind/config.mk14
-rw-r--r--source4/torture/winbind/winbind.c32
3 files changed, 47 insertions, 0 deletions
diff --git a/source4/torture/config.mk b/source4/torture/config.mk
index 3ad3d44b81..887bb3cf86 100644
--- a/source4/torture/config.mk
+++ b/source4/torture/config.mk
@@ -96,6 +96,7 @@ PRIVATE_DEPENDENCIES = \
#################################
include smb2/config.mk
+include winbind/config.mk
[SUBSYSTEM::TORTURE_NDR]
PRIVATE_PROTO_HEADER = ndr/proto.h
diff --git a/source4/torture/winbind/config.mk b/source4/torture/winbind/config.mk
new file mode 100644
index 0000000000..d7351144b7
--- /dev/null
+++ b/source4/torture/winbind/config.mk
@@ -0,0 +1,14 @@
+
+#################################
+# Start SUBSYSTEM TORTURE_WINBIND
+[MODULE::TORTURE_WINBIND]
+SUBSYSTEM = torture
+INIT_FUNCTION = torture_winbind_init
+PRIVATE_PROTO_HEADER = \
+ proto.h
+OBJ_FILES = \
+ winbind.o
+PRIVATE_DEPENDENCIES = \
+ POPT_CREDENTIALS
+# End SUBSYSTEM TORTURE_WINBIND
+#################################
diff --git a/source4/torture/winbind/winbind.c b/source4/torture/winbind/winbind.c
new file mode 100644
index 0000000000..371f52beb5
--- /dev/null
+++ b/source4/torture/winbind/winbind.c
@@ -0,0 +1,32 @@
+/*
+ Unix SMB/CIFS implementation.
+ SMB torture tester
+ Copyright (C) Stefan Metzmacher 2007
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "includes.h"
+#include "torture/torture.h"
+
+NTSTATUS torture_winbind_init(void)
+{
+ struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "WINBIND");
+
+ suite->description = talloc_strdup(suite, "WINBIND-protocol tests");
+
+ torture_register_suite(suite);
+
+ return NT_STATUS_OK;
+}