r22883: Indentation.
[Samba.git] / source / torture / local / local.c
bloba3fc668970abc6708789a5e478b42ad7c766d389
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/local/proto.h"
24 #include "torture/ndr/ndr.h"
25 #include "torture/ndr/proto.h"
26 #include "torture/auth/proto.h"
28 /* ignore me */ static struct torture_suite *
29 (*suite_generators[]) (TALLOC_CTX *mem_ctx) =
31 torture_local_binding_string,
32 torture_ntlmssp,
33 torture_local_messaging,
34 torture_local_irpc,
35 torture_local_util_strlist,
36 torture_local_util_file,
37 torture_local_idtree,
38 torture_local_genrand,
39 torture_local_iconv,
40 torture_local_socket,
41 torture_local_socket_wrapper,
42 torture_pac,
43 torture_registry,
44 torture_local_resolve,
45 torture_local_sddl,
46 torture_local_ndr,
47 torture_local_tdr,
48 torture_local_share,
49 torture_local_charset,
50 torture_local_compression,
51 torture_local_event,
52 torture_local_torture,
53 torture_local_dbspeed,
54 NULL
57 NTSTATUS torture_local_init(void)
59 int i;
60 struct torture_suite *suite = torture_suite_create(
61 talloc_autofree_context(),
62 "LOCAL");
64 torture_suite_add_simple_test(suite, "TALLOC", torture_local_talloc);
65 torture_suite_add_simple_test(suite, "REPLACE", torture_local_replace);
67 torture_suite_add_simple_test(suite, "CRYPTO-SHA1",
68 torture_local_crypto_sha1);
69 torture_suite_add_simple_test(suite,
70 "CRYPTO-MD4", torture_local_crypto_md4);
71 torture_suite_add_simple_test(suite, "CRYPTO-MD5",
72 torture_local_crypto_md5);
73 torture_suite_add_simple_test(suite, "CRYPTO-HMACMD5",
74 torture_local_crypto_hmacmd5);
75 torture_suite_add_simple_test(suite, "CRYPTO-HMACSHA1",
76 torture_local_crypto_hmacsha1);
77 for (i = 0; suite_generators[i]; i++)
78 torture_suite_add_suite(suite,
79 suite_generators[i](talloc_autofree_context()));
81 suite->description = talloc_strdup(suite,
82 "Local, Samba-specific tests");
84 torture_register_suite(suite);
86 return NT_STATUS_OK;