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 
torture_raw_init(void)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, "QFSINFO", torture_raw_qfsinfo);
35 	torture_suite_add_simple_test(suite, "QFILEINFO", torture_raw_qfileinfo);
36 	torture_suite_add_simple_test(suite, "SFILEINFO", torture_raw_sfileinfo);
37 	torture_suite_add_simple_test(suite, "SFILEINFO-BUG", torture_raw_sfileinfo_bug);
38 	torture_suite_add_simple_test(suite, "SEARCH", torture_raw_search);
39 	torture_suite_add_simple_test(suite, "CLOSE", torture_raw_close);
40 	torture_suite_add_simple_test(suite, "OPEN", torture_raw_open);
41 	torture_suite_add_simple_test(suite, "MKDIR", torture_raw_mkdir);
42 	torture_suite_add_simple_test(suite, "OPLOCK", torture_raw_oplock);
43 	torture_suite_add_simple_test(suite, "NOTIFY", torture_raw_notify);
44 	torture_suite_add_simple_test(suite, "MUX", torture_raw_mux);
45 	torture_suite_add_simple_test(suite, "IOCTL", torture_raw_ioctl);
46 	torture_suite_add_simple_test(suite, "CHKPATH", torture_raw_chkpath);
47 	torture_suite_add_simple_test(suite, "UNLINK", torture_raw_unlink);
48 	torture_suite_add_simple_test(suite, "READ", torture_raw_read);
49 	torture_suite_add_simple_test(suite, "WRITE", torture_raw_write);
50 	torture_suite_add_simple_test(suite, "LOCK", torture_raw_lock);
51 	torture_suite_add_simple_test(suite, "CONTEXT", torture_raw_context);
52 	torture_suite_add_simple_test(suite, "RENAME", torture_raw_rename);
53 	torture_suite_add_simple_test(suite, "SEEK", torture_raw_seek);
54 	torture_suite_add_simple_test(suite, "EAS", torture_raw_eas);
55 	torture_suite_add_simple_test(suite, "STREAMS", torture_raw_streams);
56 	torture_suite_add_simple_test(suite, "ACLS", torture_raw_acls);
57 	torture_suite_add_simple_test(suite, "COMPOSITE", torture_raw_composite);
58 	torture_suite_add_simple_test(suite, "SAMBA3HIDE", torture_samba3_hide);
59 	torture_suite_add_simple_test(suite, "SAMBA3CHECKFSP", torture_samba3_checkfsp);
60 	torture_suite_add_simple_test(suite, "SAMBA3BADPATH", torture_samba3_badpath);
61 	torture_suite_add_simple_test(suite, "SCAN-EAMAX", torture_max_eas);
62 
63 	suite->description = talloc_strdup(suite,
64 							"Tests for the raw SMB interface");
65 
66 	torture_register_suite(suite);
67 
68 	return NT_STATUS_OK;
69 }
70