r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
[Samba.git] / source / torture / libnet / libnet.c
blobf45365dfc0eb7551eb0f1a20e54de29c5931f4c5
1 /*
2 Unix SMB/CIFS implementation.
3 SMB torture tester
4 Copyright (C) Jelmer Vernooij 2006
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include "includes.h"
22 #include "torture/torture.h"
23 #include "torture/libnet/proto.h"
25 NTSTATUS torture_net_init(void)
27 struct torture_suite *suite = torture_suite_create(
28 talloc_autofree_context(),
29 "NET");
31 torture_suite_add_simple_test(suite, "USERINFO", torture_userinfo);
32 torture_suite_add_simple_test(suite, "USERADD", torture_useradd);
33 torture_suite_add_simple_test(suite, "USERDEL", torture_userdel);
34 torture_suite_add_simple_test(suite, "USERMOD", torture_usermod);
35 torture_suite_add_simple_test(suite, "DOMOPEN", torture_domainopen);
36 torture_suite_add_simple_test(suite, "API-LOOKUP", torture_lookup);
37 torture_suite_add_simple_test(suite, "API-LOOKUPHOST", torture_lookup_host);
38 torture_suite_add_simple_test(suite, "API-LOOKUPPDC", torture_lookup_pdc);
39 torture_suite_add_simple_test(suite, "API-LOOKUPNAME", torture_lookup_sam_name);
40 torture_suite_add_simple_test(suite, "API-CREATEUSER", torture_createuser);
41 torture_suite_add_simple_test(suite, "API-DELETEUSER", torture_deleteuser);
42 torture_suite_add_simple_test(suite, "API-MODIFYUSER", torture_modifyuser);
43 torture_suite_add_simple_test(suite, "API-USERINFO", torture_userinfo_api);
44 torture_suite_add_simple_test(suite, "API-RPCCONN-BIND", torture_rpc_connect_binding);
45 torture_suite_add_simple_test(suite, "API-RPCCONN-SRV", torture_rpc_connect_srv);
46 torture_suite_add_simple_test(suite, "API-RPCCONN-PDC", torture_rpc_connect_pdc);
47 torture_suite_add_simple_test(suite, "API-RPCCONN-DC", torture_rpc_connect_dc);
48 torture_suite_add_simple_test(suite, "API-RPCCONN-DCINFO", torture_rpc_connect_dc_info);
49 torture_suite_add_simple_test(suite, "API-LISTSHARES", torture_listshares);
50 torture_suite_add_simple_test(suite, "API-DELSHARE", torture_delshare);
51 torture_suite_add_simple_test(suite, "API-DOMOPENLSA", torture_domain_open_lsa);
52 torture_suite_add_simple_test(suite, "API-DOMCLOSELSA", torture_domain_close_lsa);
53 torture_suite_add_simple_test(suite, "API-DOMOPENSAMR", torture_domain_open_samr);
54 torture_suite_add_simple_test(suite, "API-DOMCLOSESAMR", torture_domain_close_samr);
56 suite->description = talloc_strdup(suite,
57 "libnet convenience interface tests");
59 torture_register_suite(suite);
61 return NT_STATUS_OK;