s3: Fix bug #9085.
[Samba.git] / source4 / torture / raw / raw.c
blob138f26310684384977b4e184745068a75e4a321f
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(),
30 "RAW");
31 /* RAW smb tests */
32 torture_suite_add_simple_test(suite, "BENCH-OPLOCK", torture_bench_oplock);
33 torture_suite_add_simple_test(suite, "PING-PONG", torture_ping_pong);
34 torture_suite_add_simple_test(suite, "BENCH-LOCK", torture_bench_lock);
35 torture_suite_add_simple_test(suite, "BENCH-OPEN", torture_bench_open);
36 torture_suite_add_simple_test(suite, "BENCH-LOOKUP",
37 torture_bench_lookup);
38 torture_suite_add_simple_test(suite, "BENCH-TCON",
39 torture_bench_treeconnect);
40 torture_suite_add_simple_test(suite, "OFFLINE", torture_test_offline);
41 torture_suite_add_1smb_test(suite, "QFSINFO", torture_raw_qfsinfo);
42 torture_suite_add_1smb_test(suite, "QFILEINFO", torture_raw_qfileinfo);
43 torture_suite_add_1smb_test(suite, "QFILEINFO-IPC", torture_raw_qfileinfo_pipe);
44 torture_suite_add_1smb_test(suite, "SFILEINFO", torture_raw_sfileinfo);
45 torture_suite_add_1smb_test(suite, "SFILEINFO-BUG", torture_raw_sfileinfo_bug);
46 torture_suite_add_1smb_test(suite, "SFILEINFO-RENAME",
47 torture_raw_sfileinfo_rename);
48 torture_suite_add_suite(suite, torture_raw_search(suite));
49 torture_suite_add_1smb_test(suite, "CLOSE", torture_raw_close);
50 torture_suite_add_1smb_test(suite, "OPEN", torture_raw_open);
51 torture_suite_add_1smb_test(suite, "MKDIR", torture_raw_mkdir);
52 torture_suite_add_suite(suite, torture_raw_oplock(suite));
53 torture_suite_add_1smb_test(suite, "HOLD-OPLOCK", torture_hold_oplock);
54 torture_suite_add_2smb_test(suite, "NOTIFY", torture_raw_notify);
55 torture_suite_add_1smb_test(suite, "MUX", torture_raw_mux);
56 torture_suite_add_1smb_test(suite, "IOCTL", torture_raw_ioctl);
57 torture_suite_add_1smb_test(suite, "CHKPATH", torture_raw_chkpath);
58 torture_suite_add_suite(suite, torture_raw_unlink(suite));
59 torture_suite_add_suite(suite, torture_raw_read(suite));
60 torture_suite_add_suite(suite, torture_raw_write(suite));
61 torture_suite_add_suite(suite, torture_raw_lock(suite));
62 torture_suite_add_1smb_test(suite, "CONTEXT", torture_raw_context);
63 torture_suite_add_suite(suite, torture_raw_rename(suite));
64 torture_suite_add_1smb_test(suite, "SEEK", torture_raw_seek);
65 torture_suite_add_1smb_test(suite, "EAS", torture_raw_eas);
66 torture_suite_add_1smb_test(suite, "STREAMS", torture_raw_streams);
67 torture_suite_add_1smb_test(suite, "ACLS", torture_raw_acls);
68 torture_suite_add_1smb_test(suite, "COMPOSITE", torture_raw_composite);
69 torture_suite_add_simple_test(suite, "SAMBA3HIDE", torture_samba3_hide);
70 torture_suite_add_simple_test(suite, "SAMBA3CLOSEERR", torture_samba3_closeerr);
71 torture_suite_add_simple_test(suite, "SAMBA3ROOTDIRFID",
72 torture_samba3_rootdirfid);
73 torture_suite_add_simple_test(suite, "SAMBA3CHECKFSP", torture_samba3_checkfsp);
74 torture_suite_add_simple_test(suite, "SAMBA3OPLOCKLOGOFF", torture_samba3_oplock_logoff);
75 torture_suite_add_simple_test(suite, "SAMBA3BADPATH", torture_samba3_badpath);
76 torture_suite_add_simple_test(suite, "SAMBA3CASEINSENSITIVE",
77 torture_samba3_caseinsensitive);
78 torture_suite_add_simple_test(suite, "SAMBA3POSIXTIMEDLOCK",
79 torture_samba3_posixtimedlock);
80 torture_suite_add_simple_test(suite, "SCAN-EAMAX", torture_max_eas);
82 suite->description = talloc_strdup(suite, "Tests for the raw SMB interface");
84 torture_register_suite(suite);
86 return NT_STATUS_OK;