source: vendor/current/source3/torture/proto.h

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 4.0 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3
4 SMB torture tester - header file
5
6 Copyright (C) Andrew Tridgell 1997-1998
7 Copyright (C) Jeremy Allison 2009
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
21*/
22
23#ifndef __TORTURE_H__
24#define __TORTURE_H__
25
26struct cli_state;
27
28/* The following definitions come from torture/denytest.c */
29
30bool torture_denytest1(int dummy);
31bool torture_denytest2(int dummy);
32
33/* The following definitions come from torture/mangle_test.c */
34
35bool torture_mangle(int dummy);
36
37/* The following definitions come from torture/nbio.c */
38
39double nbio_total(void);
40void nb_alarm(int ignore);
41void nbio_shmem(int n);
42void nb_setup(struct cli_state *cli);
43void nb_unlink(const char *fname);
44void nb_createx(const char *fname,
45 unsigned create_options, unsigned create_disposition, int handle);
46void nb_writex(int handle, int offset, int size, int ret_size);
47void nb_readx(int handle, int offset, int size, int ret_size);
48void nb_close(int handle);
49void nb_rmdir(const char *fname);
50void nb_rename(const char *oldname, const char *newname);
51void nb_qpathinfo(const char *fname);
52void nb_qfileinfo(int fnum);
53void nb_qfsinfo(int level);
54void nb_findfirst(const char *mask);
55void nb_flush(int fnum);
56void nb_deltree(const char *dname);
57void nb_cleanup(void);
58
59/* The following definitions come from torture/scanner.c */
60
61bool torture_trans2_scan(int dummy);
62bool torture_nttrans_scan(int dummy);
63
64/* The following definitions come from torture/torture.c */
65
66bool smbcli_parse_unc(const char *unc_name, TALLOC_CTX *mem_ctx,
67 char **hostname, char **sharename);
68bool torture_open_connection(struct cli_state **c, int conn_index);
69bool torture_init_connection(struct cli_state **pcli);
70bool torture_cli_session_setup2(struct cli_state *cli, uint16_t *new_vuid);
71bool torture_close_connection(struct cli_state *c);
72bool torture_ioctl_test(int dummy);
73bool torture_chkpath_test(int dummy);
74NTSTATUS torture_setup_unix_extensions(struct cli_state *cli);
75
76/* The following definitions come from torture/utable.c */
77
78bool torture_utable(int dummy);
79bool torture_casetable(int dummy);
80
81/*
82 * Misc
83 */
84
85bool run_posix_append(int dummy);
86bool run_case_insensitive_create(int dummy);
87
88bool run_nbench2(int dummy);
89bool run_async_echo(int dummy);
90bool run_smb_any_connect(int dummy);
91bool run_addrchange(int dummy);
92bool run_notify_online(int dummy);
93bool run_nttrans_create(int dummy);
94bool run_nttrans_fsctl(int dummy);
95bool run_smb2_basic(int dummy);
96bool run_smb2_negprot(int dummy);
97bool run_smb2_session_reconnect(int dummy);
98bool run_smb2_tcon_dependence(int dummy);
99bool run_smb2_multi_channel(int dummy);
100bool run_smb2_session_reauth(int dummy);
101bool run_chain3(int dummy);
102bool run_local_conv_auth_info(int dummy);
103bool run_local_sprintf_append(int dummy);
104bool run_cleanup1(int dummy);
105bool run_cleanup2(int dummy);
106bool run_cleanup3(int dummy);
107bool run_cleanup4(int dummy);
108bool run_notify_bench2(int dummy);
109bool run_notify_bench3(int dummy);
110bool run_dbwrap_watch1(int dummy);
111bool run_idmap_tdb_common_test(int dummy);
112bool run_local_dbwrap_ctdb(int dummy);
113bool run_qpathinfo_bufsize(int dummy);
114bool run_bench_pthreadpool(int dummy);
115bool run_messaging_read1(int dummy);
116bool run_messaging_read2(int dummy);
117bool run_messaging_read3(int dummy);
118bool run_messaging_read4(int dummy);
119bool run_messaging_fdpass1(int dummy);
120bool run_messaging_fdpass2(int dummy);
121bool run_messaging_fdpass2a(int dummy);
122bool run_messaging_fdpass2b(int dummy);
123bool run_oplock_cancel(int dummy);
124
125#endif /* __TORTURE_H__ */
Note: See TracBrowser for help on using the repository browser.