7c7581326f4ec9f88ebdcaee16d9a346f99c0ba3
[samba.git] / source4 / torture / drs / drs_init.c
1 /*
2    Unix SMB/CIFS implementation.
3
4    DRSUAPI utility functions to be used in torture tests
5
6    Copyright (C) Kamen Mazdrashki <kamen.mazdrashki@postpath.com> 2009
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #include "includes.h"
23 #include "torture/smbtorture.h"
24 #include "torture/rpc/drsuapi.h"
25 #include "torture/drs/proto.h"
26
27 /**
28  * DRSUAPI tests to be executed remotely
29  */
30 static struct torture_suite * torture_drs_rpc_suite(TALLOC_CTX *mem_ctx)
31 {
32         struct torture_suite *suite = torture_suite_create(
33                 talloc_autofree_context(),
34                 "RPC");
35
36         return suite;
37 }
38
39 /**
40  * DRSUAPI tests to be executed remotely
41  */
42 static struct torture_suite * torture_drs_unit_suite(TALLOC_CTX *mem_ctx)
43 {
44         struct torture_suite *suite = torture_suite_create(
45                 talloc_autofree_context(),
46                 "UNIT");
47
48         return suite;
49 }
50
51 /**
52  * DRSUAPI torture module initialization
53  */
54 NTSTATUS torture_drs_init(void)
55 {
56         struct torture_suite *suite = torture_suite_create(
57                 talloc_autofree_context(),
58                 "DRS");
59
60         torture_suite_add_suite(suite, torture_drs_rpc_suite(suite));
61         torture_suite_add_suite(suite, torture_drs_unit_suite(suite));
62
63         suite->description = talloc_strdup(suite,
64                                            "DRSUAPI related tests - Remote and Local");
65
66         torture_register_suite(suite);
67
68         return NT_STATUS_OK;
69 }