r25188: add infrastructure for WINBIND-* tests in smbtorture
authorStefan Metzmacher <metze@samba.org>
Sun, 16 Sep 2007 14:19:30 +0000 (14:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:06:48 +0000 (15:06 -0500)
metze

source/torture/config.mk
source/torture/winbind/config.mk [new file with mode: 0644]
source/torture/winbind/winbind.c [new file with mode: 0644]

index 3ad3d44b811f003e2c008f8cf7459b9d7814e1c8..887bb3cf869ed75c6a135df60155ee0af2574e18 100644 (file)
@@ -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/source/torture/winbind/config.mk b/source/torture/winbind/config.mk
new file mode 100644 (file)
index 0000000..d735114
--- /dev/null
@@ -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/source/torture/winbind/winbind.c b/source/torture/winbind/winbind.c
new file mode 100644 (file)
index 0000000..371f52b
--- /dev/null
@@ -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;
+}