ctdb-packaging: Update configure.rpm with minimum library versions
[Samba.git] / source4 / torture / raw / raw.c
blobbda463b8a7239e598b89e073cdd941d493178640
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 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/>.
20 #include "includes.h"
21 #include "libcli/raw/libcliraw.h"
22 #include "torture/util.h"
23 #include "torture/smbtorture.h"
24 #include "torture/raw/proto.h"
26 NTSTATUS torture_raw_init(void)
28 struct torture_suite *suite = torture_suite_create(
29 talloc_autofree_context(), "raw");
30 /* RAW smb tests */
31 torture_suite_add_simple_test(suite, "bench-oplock", torture_bench_oplock);
32 torture_suite_add_simple_test(suite, "ping-pong", torture_ping_pong);
33 torture_suite_add_simple_test(suite, "bench-lock", torture_bench_lock);
34 torture_suite_add_simple_test(suite, "bench-open", torture_bench_open);
35 torture_suite_add_simple_test(suite, "bench-lookup",
36 torture_bench_lookup);
37 torture_suite_add_simple_test(suite, "bench-tcon",
38 torture_bench_treeconnect);
39 torture_suite_add_simple_test(suite, "offline", torture_test_offline);
40 torture_suite_add_1smb_test(suite, "qfsinfo", torture_raw_qfsinfo);
41 torture_suite_add_1smb_test(suite, "qfileinfo", torture_raw_qfileinfo);
42 torture_suite_add_1smb_test(suite, "qfileinfo.ipc", torture_raw_qfileinfo_pipe);
43 torture_suite_add_suite(suite, torture_raw_sfileinfo(suite));
44 torture_suite_add_suite(suite, torture_raw_search(suite));
45 torture_suite_add_1smb_test(suite, "close", torture_raw_close);
46 torture_suite_add_suite(suite, torture_raw_open(suite));
47 torture_suite_add_1smb_test(suite, "mkdir", torture_raw_mkdir);
48 torture_suite_add_suite(suite, torture_raw_oplock(suite));
49 torture_suite_add_1smb_test(suite, "hold-oplock", torture_hold_oplock);
50 torture_suite_add_suite(suite, torture_raw_notify(suite));
51 torture_suite_add_1smb_test(suite, "mux", torture_raw_mux);
52 torture_suite_add_1smb_test(suite, "ioctl", torture_raw_ioctl);
53 torture_suite_add_1smb_test(suite, "chkpath", torture_raw_chkpath);
54 torture_suite_add_suite(suite, torture_raw_unlink(suite));
55 torture_suite_add_suite(suite, torture_raw_read(suite));
56 torture_suite_add_suite(suite, torture_raw_write(suite));
57 torture_suite_add_suite(suite, torture_raw_lock(suite));
58 torture_suite_add_suite(suite, torture_raw_context(suite));
59 torture_suite_add_suite(suite, torture_raw_session(suite));
60 torture_suite_add_suite(suite, torture_raw_rename(suite));
61 torture_suite_add_1smb_test(suite, "seek", torture_raw_seek);
62 torture_suite_add_1smb_test(suite, "eas", torture_raw_eas);
63 torture_suite_add_suite(suite, torture_raw_streams(suite));
64 torture_suite_add_suite(suite, torture_raw_acls(suite));
65 torture_suite_add_suite(suite, torture_raw_composite(suite));
66 torture_suite_add_1smb_test(suite, "samba3hide", torture_samba3_hide);
67 torture_suite_add_1smb_test(suite, "samba3closeerr", torture_samba3_closeerr);
68 torture_suite_add_1smb_test(suite, "samba3rootdirfid",
69 torture_samba3_rootdirfid);
70 torture_suite_add_1smb_test(suite, "samba3checkfsp", torture_samba3_checkfsp);
71 torture_suite_add_1smb_test(suite, "samba3oplocklogoff", torture_samba3_oplock_logoff);
72 torture_suite_add_1smb_test(suite, "samba3badnameblob", torture_samba3_check_openX_badname);
73 torture_suite_add_simple_test(suite, "samba3badpath", torture_samba3_badpath);
74 torture_suite_add_1smb_test(suite, "samba3caseinsensitive",
75 torture_samba3_caseinsensitive);
76 torture_suite_add_1smb_test(suite, "samba3posixtimedlock",
77 torture_samba3_posixtimedlock);
78 torture_suite_add_simple_test(suite, "scan-eamax", torture_max_eas);
80 suite->description = talloc_strdup(suite, "Tests for the raw SMB interface");
82 torture_register_suite(suite);
84 return NT_STATUS_OK;