r22838: Add in an explority test for what QFSINFO operations are valid on IPC$
[Samba.git] / source / torture / raw / raw.c
blobbdf4072a62c09ff696298923d9719e85712cd286
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 "libcli/raw/libcliraw.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, "BENCH-LOCK", torture_bench_lock);
34 torture_suite_add_simple_test(suite, "BENCH-OPEN", torture_bench_open);
35 torture_suite_add_simple_test(suite, "QFSINFO", torture_raw_qfsinfo);
36 torture_suite_add_simple_test(suite, "QFILEINFO", torture_raw_qfileinfo);
37 torture_suite_add_simple_test(suite, "QFILEINFO-IPC", torture_raw_qfileinfo_pipe);
38 torture_suite_add_simple_test(suite, "SFILEINFO", torture_raw_sfileinfo);
39 torture_suite_add_simple_test(suite, "SFILEINFO-BUG", torture_raw_sfileinfo_bug);
40 torture_suite_add_simple_test(suite, "SEARCH", torture_raw_search);
41 torture_suite_add_simple_test(suite, "CLOSE", torture_raw_close);
42 torture_suite_add_simple_test(suite, "OPEN", torture_raw_open);
43 torture_suite_add_simple_test(suite, "MKDIR", torture_raw_mkdir);
44 torture_suite_add_simple_test(suite, "OPLOCK", torture_raw_oplock);
45 torture_suite_add_simple_test(suite, "NOTIFY", torture_raw_notify);
46 torture_suite_add_simple_test(suite, "MUX", torture_raw_mux);
47 torture_suite_add_simple_test(suite, "IOCTL", torture_raw_ioctl);
48 torture_suite_add_simple_test(suite, "CHKPATH", torture_raw_chkpath);
49 torture_suite_add_simple_test(suite, "UNLINK", torture_raw_unlink);
50 torture_suite_add_simple_test(suite, "READ", torture_raw_read);
51 torture_suite_add_simple_test(suite, "WRITE", torture_raw_write);
52 torture_suite_add_simple_test(suite, "LOCK", torture_raw_lock);
53 torture_suite_add_simple_test(suite, "CONTEXT", torture_raw_context);
54 torture_suite_add_simple_test(suite, "RENAME", torture_raw_rename);
55 torture_suite_add_simple_test(suite, "SEEK", torture_raw_seek);
56 torture_suite_add_simple_test(suite, "EAS", torture_raw_eas);
57 torture_suite_add_simple_test(suite, "STREAMS", torture_raw_streams);
58 torture_suite_add_simple_test(suite, "ACLS", torture_raw_acls);
59 torture_suite_add_simple_test(suite, "COMPOSITE", torture_raw_composite);
60 torture_suite_add_simple_test(suite, "SAMBA3HIDE", torture_samba3_hide);
61 torture_suite_add_simple_test(suite, "SAMBA3CLOSEERR", torture_samba3_closeerr);
62 torture_suite_add_simple_test(suite, "SAMBA3CHECKFSP", torture_samba3_checkfsp);
63 torture_suite_add_simple_test(suite, "SAMBA3BADPATH", torture_samba3_badpath);
64 torture_suite_add_simple_test(suite, "SCAN-EAMAX", torture_max_eas);
66 suite->description = talloc_strdup(suite,
67 "Tests for the raw SMB interface");
69 torture_register_suite(suite);
71 return NT_STATUS_OK;