From 81539d4966cd9b8e70a55b2c7cfd8f060bc633ed Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 16 Sep 2007 14:19:30 +0000 Subject: r25188: add infrastructure for WINBIND-* tests in smbtorture metze (This used to be commit 3807699c001ce7a8ee0acba071cc2bb7f4406cd9) --- source4/torture/config.mk | 1 + source4/torture/winbind/config.mk | 14 ++++++++++++++ source4/torture/winbind/winbind.c | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 source4/torture/winbind/config.mk create mode 100644 source4/torture/winbind/winbind.c (limited to 'source4/torture') 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 . +*/ + +#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; +} -- cgit