2 Unix SMB/CIFS implementation.
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 3 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, see <http://www.gnu.org/licenses/>.
21 #include "torture/smbtorture.h"
22 #include "torture/local/proto.h"
23 #include "torture/ndr/proto.h"
24 #include "torture/auth/proto.h"
25 #include "../lib/crypto/test_proto.h"
26 #ifndef HAVE_GNUTLS_AES_CMAC
27 #include "../lib/crypto/aes_cmac_test_proto.h"
29 #include "lib/registry/tests/proto.h"
30 #include "lib/replace/replace-testsuite.h"
32 /* ignore me */ static struct torture_suite *
33 (*suite_generators[]) (TALLOC_CTX *mem_ctx) =
35 torture_local_binding_string,
38 torture_local_messaging,
40 torture_local_util_strlist,
41 torture_local_util_file,
42 torture_local_util_str,
43 torture_local_util_time,
44 torture_local_util_data_blob,
45 torture_local_util_binsearch,
46 torture_local_util_asn1,
47 torture_local_util_anonymous_shared,
48 torture_local_util_strv,
49 torture_local_util_strv_util,
52 torture_local_dlinklist,
53 torture_local_genrand,
57 torture_local_resolve,
62 torture_local_loadparm,
63 torture_local_charset,
64 torture_local_convert_string_handle,
65 torture_local_convert_string,
66 torture_local_string_case_handle,
67 torture_local_string_case,
68 torture_local_compression,
70 torture_local_tevent_req,
71 torture_local_torture,
72 torture_local_dbspeed,
73 torture_local_credentials,
78 torture_local_verif_trailer,
81 torture_local_util_str_escape,
87 NTSTATUS torture_local_init(TALLOC_CTX *ctx)
90 struct torture_suite *suite = torture_suite_create(
93 torture_suite_add_simple_test(suite, "talloc", torture_local_talloc);
94 torture_suite_add_simple_test(suite, "replace", torture_local_replace);
96 torture_suite_add_simple_test(suite,
97 "crypto.md4", torture_local_crypto_md4);
98 #ifndef HAVE_GNUTLS_AES_CMAC
99 torture_suite_add_simple_test(suite, "crypto.aes_cmac_128",
100 torture_local_crypto_aes_cmac_128);
103 for (i = 0; suite_generators[i]; i++)
104 torture_suite_add_suite(suite,
105 suite_generators[i](ctx));
107 suite->description = talloc_strdup(suite,
108 "Local, Samba-specific tests");
110 torture_register_suite(ctx, suite);