r23792: convert Samba4 to GPLv3
[kai/samba.git] / source4 / torture / raw / raw.c
1 /* 
2    Unix SMB/CIFS implementation.
3    SMB torture tester
4    Copyright (C) Jelmer Vernooij 2006
5    
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.
10    
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.
15    
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/>.
18 */
19
20 #include "includes.h"
21 #include "torture/torture.h"
22 #include "libcli/raw/libcliraw.h"
23 #include "torture/raw/proto.h"
24
25 NTSTATUS torture_raw_init(void)
26 {
27         struct torture_suite *suite = torture_suite_create(
28                 talloc_autofree_context(),
29                 "RAW");
30         /* RAW smb tests */
31         torture_suite_add_simple_test(suite, "BENCH-OPLOCK", torture_bench_oplock);
32         torture_suite_add_simple_test(suite, "BENCH-LOCK", torture_bench_lock);
33         torture_suite_add_simple_test(suite, "BENCH-OPEN", torture_bench_open);
34         torture_suite_add_simple_test(suite, "QFSINFO", torture_raw_qfsinfo);
35         torture_suite_add_simple_test(suite, "QFILEINFO", torture_raw_qfileinfo);
36         torture_suite_add_simple_test(suite, "QFILEINFO-IPC", torture_raw_qfileinfo_pipe);
37         torture_suite_add_simple_test(suite, "SFILEINFO", torture_raw_sfileinfo);
38         torture_suite_add_simple_test(suite, "SFILEINFO-BUG", torture_raw_sfileinfo_bug);
39         torture_suite_add_simple_test(suite, "SFILEINFO-RENAME",
40                                       torture_raw_sfileinfo_rename);
41         torture_suite_add_simple_test(suite, "SEARCH", torture_raw_search);
42         torture_suite_add_simple_test(suite, "CLOSE", torture_raw_close);
43         torture_suite_add_simple_test(suite, "OPEN", torture_raw_open);
44         torture_suite_add_simple_test(suite, "MKDIR", torture_raw_mkdir);
45         torture_suite_add_suite(suite, torture_raw_oplock());
46         torture_suite_add_simple_test(suite, "NOTIFY", torture_raw_notify);
47         torture_suite_add_simple_test(suite, "MUX", torture_raw_mux);
48         torture_suite_add_simple_test(suite, "IOCTL", torture_raw_ioctl);
49         torture_suite_add_simple_test(suite, "CHKPATH", torture_raw_chkpath);
50         torture_suite_add_simple_test(suite, "UNLINK", torture_raw_unlink);
51         torture_suite_add_simple_test(suite, "READ", torture_raw_read);
52         torture_suite_add_simple_test(suite, "WRITE", torture_raw_write);
53         torture_suite_add_simple_test(suite, "LOCK", torture_raw_lock);
54         torture_suite_add_simple_test(suite, "CONTEXT", torture_raw_context);
55         torture_suite_add_simple_test(suite, "RENAME", torture_raw_rename);
56         torture_suite_add_simple_test(suite, "SEEK", torture_raw_seek);
57         torture_suite_add_simple_test(suite, "EAS", torture_raw_eas);
58         torture_suite_add_simple_test(suite, "STREAMS", torture_raw_streams);
59         torture_suite_add_simple_test(suite, "ACLS", torture_raw_acls);
60         torture_suite_add_simple_test(suite, "COMPOSITE", torture_raw_composite);
61         torture_suite_add_simple_test(suite, "SAMBA3HIDE", torture_samba3_hide);
62         torture_suite_add_simple_test(suite, "SAMBA3CLOSEERR", torture_samba3_closeerr);
63         torture_suite_add_simple_test(suite, "SAMBA3CHECKFSP", torture_samba3_checkfsp);
64         torture_suite_add_simple_test(suite, "SAMBA3BADPATH", torture_samba3_badpath);
65         torture_suite_add_simple_test(suite, "SCAN-EAMAX", torture_max_eas);
66
67         suite->description = talloc_strdup(suite, 
68                                                         "Tests for the raw SMB interface");
69
70         torture_register_suite(suite);
71
72         return NT_STATUS_OK;
73 }