r23492: Also activate the split out test...
[metze/samba/wip.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 2 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, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #include "includes.h"
22 #include "torture/torture.h"
23 #include "libcli/raw/libcliraw.h"
24 #include "torture/raw/proto.h"
25
26 NTSTATUS torture_raw_init(void)
27 {
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, "SFILEINFO-RENAME",
41                                       torture_raw_sfileinfo_rename);
42         torture_suite_add_simple_test(suite, "SEARCH", torture_raw_search);
43         torture_suite_add_simple_test(suite, "CLOSE", torture_raw_close);
44         torture_suite_add_simple_test(suite, "OPEN", torture_raw_open);
45         torture_suite_add_simple_test(suite, "MKDIR", torture_raw_mkdir);
46         torture_suite_add_suite(suite, torture_raw_oplock());
47         torture_suite_add_simple_test(suite, "NOTIFY", torture_raw_notify);
48         torture_suite_add_simple_test(suite, "MUX", torture_raw_mux);
49         torture_suite_add_simple_test(suite, "IOCTL", torture_raw_ioctl);
50         torture_suite_add_simple_test(suite, "CHKPATH", torture_raw_chkpath);
51         torture_suite_add_simple_test(suite, "UNLINK", torture_raw_unlink);
52         torture_suite_add_simple_test(suite, "READ", torture_raw_read);
53         torture_suite_add_simple_test(suite, "WRITE", torture_raw_write);
54         torture_suite_add_simple_test(suite, "LOCK", torture_raw_lock);
55         torture_suite_add_simple_test(suite, "CONTEXT", torture_raw_context);
56         torture_suite_add_simple_test(suite, "RENAME", torture_raw_rename);
57         torture_suite_add_simple_test(suite, "SEEK", torture_raw_seek);
58         torture_suite_add_simple_test(suite, "EAS", torture_raw_eas);
59         torture_suite_add_simple_test(suite, "STREAMS", torture_raw_streams);
60         torture_suite_add_simple_test(suite, "ACLS", torture_raw_acls);
61         torture_suite_add_simple_test(suite, "COMPOSITE", torture_raw_composite);
62         torture_suite_add_simple_test(suite, "SAMBA3HIDE", torture_samba3_hide);
63         torture_suite_add_simple_test(suite, "SAMBA3CLOSEERR", torture_samba3_closeerr);
64         torture_suite_add_simple_test(suite, "SAMBA3CHECKFSP", torture_samba3_checkfsp);
65         torture_suite_add_simple_test(suite, "SAMBA3BADPATH", torture_samba3_badpath);
66         torture_suite_add_simple_test(suite, "SCAN-EAMAX", torture_max_eas);
67
68         suite->description = talloc_strdup(suite, 
69                                                         "Tests for the raw SMB interface");
70
71         torture_register_suite(suite);
72
73         return NT_STATUS_OK;
74 }