s3:winbindd: call process_set_title() for locator child
[Samba.git] / source3 / torture / proto.h
blob26b51209639ce84e54bbab45092cbe49e2d78667
1 /*
2 Unix SMB/CIFS implementation.
4 SMB torture tester - header file
6 Copyright (C) Andrew Tridgell 1997-1998
7 Copyright (C) Jeremy Allison 2009
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.
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.
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/>.
23 #ifndef __TORTURE_H__
24 #define __TORTURE_H__
26 struct cli_state;
28 /* The following definitions come from torture/denytest.c */
30 bool torture_denytest1(int dummy);
31 bool torture_denytest2(int dummy);
33 /* The following definitions come from torture/mangle_test.c */
35 bool torture_mangle(int dummy);
37 /* The following definitions come from torture/nbio.c */
39 double nbio_total(void);
40 void nb_alarm(int ignore);
41 void nbio_shmem(int n);
42 void nb_setup(struct cli_state *cli);
43 void nb_unlink(const char *fname);
44 void nb_createx(const char *fname,
45 unsigned create_options, unsigned create_disposition, int handle);
46 void nb_writex(int handle, int offset, int size, int ret_size);
47 void nb_readx(int handle, int offset, int size, int ret_size);
48 void nb_close(int handle);
49 void nb_rmdir(const char *fname);
50 void nb_rename(const char *oldname, const char *newname);
51 void nb_qpathinfo(const char *fname);
52 void nb_qfileinfo(int fnum);
53 void nb_qfsinfo(int level);
54 void nb_findfirst(const char *mask);
55 void nb_flush(int fnum);
56 void nb_deltree(const char *dname);
57 void nb_cleanup(void);
59 /* The following definitions come from torture/scanner.c */
61 bool torture_trans2_scan(int dummy);
62 bool torture_nttrans_scan(int dummy);
64 /* The following definitions come from torture/torture.c */
66 bool smbcli_parse_unc(const char *unc_name, TALLOC_CTX *mem_ctx,
67 char **hostname, char **sharename);
68 bool torture_open_connection_flags(struct cli_state **c, int conn_index, int flags);
69 bool torture_open_connection(struct cli_state **c, int conn_index);
70 bool torture_init_connection(struct cli_state **pcli);
71 bool torture_cli_session_setup2(struct cli_state *cli, uint16_t *new_vuid);
72 bool torture_close_connection(struct cli_state *c);
73 bool torture_ioctl_test(int dummy);
74 bool torture_chkpath_test(int dummy);
75 NTSTATUS torture_setup_unix_extensions(struct cli_state *cli);
76 void torture_conn_set_sockopt(struct cli_state *cli);
77 void torture_deltree(struct cli_state *cli, const char *dname);
79 NTSTATUS cli_qpathinfo1(struct cli_state *cli,
80 const char *fname,
81 time_t *change_time,
82 time_t *access_time,
83 time_t *write_time,
84 off_t *size,
85 uint32_t *pattr);
87 /* The following definitions come from torture/utable.c */
89 bool torture_utable(int dummy);
90 bool torture_casetable(int dummy);
93 * Misc
96 bool run_posix_append(int dummy);
97 bool run_posix_ls_wildcard_test(int dummy);
98 bool run_posix_ls_single_test(int dummy);
99 bool run_posix_readlink_test(int dummy);
100 bool run_posix_stat_test(int dummy);
101 bool run_posix_symlink_parent_test(int dummy);
102 bool run_posix_symlink_chmod_test(int dummy);
103 bool run_posix_dir_default_acl_test(int dummy);
104 bool run_case_insensitive_create(int dummy);
105 bool run_posix_symlink_rename_test(int dummy);
106 bool run_posix_symlink_getpathinfo_test(int dummy);
107 bool run_posix_symlink_setpathinfo_test(int dummy);
109 bool run_nbench2(int dummy);
110 bool run_async_echo(int dummy);
111 bool run_smb_any_connect(int dummy);
112 bool run_addrchange(int dummy);
113 bool run_str_match_mswild(int dummy);
114 bool run_str_match_regex_sub1(int dummy);
115 bool run_notify_online(int dummy);
116 bool run_nttrans_create(int dummy);
117 bool run_nttrans_fsctl(int dummy);
118 bool run_smb2_basic(int dummy);
119 bool run_smb2_negprot(int dummy);
120 bool run_smb2_anonymous(int dummy);
121 bool run_smb2_session_reconnect(int dummy);
122 bool run_smb2_tcon_dependence(int dummy);
123 bool run_smb2_multi_channel(int dummy);
124 bool run_smb2_session_reauth(int dummy);
125 bool run_smb2_ftruncate(int dummy);
126 bool run_smb2_dir_fsync(int dummy);
127 bool run_smb2_path_slash(int dummy);
128 bool run_smb2_sacl(int dummy);
129 bool run_smb2_quota1(int dummy);
130 bool run_smb2_stream_acl(int dummy);
131 bool run_smb2_dfs_paths(int dummy);
132 bool run_smb2_non_dfs_share(int dummy);
133 bool run_smb2_dfs_share_non_dfs_path(int dummy);
134 bool run_smb2_dfs_filename_leading_backslash(int dummy);
135 bool run_smb2_pipe_read_async_disconnect(int dummy);
136 bool run_smb2_invalid_pipename(int dummy);
137 bool run_smb1_dfs_paths(int dummy);
138 bool run_smb1_dfs_search_paths(int dummy);
139 bool run_smb1_dfs_operations(int dummy);
140 bool run_smb1_dfs_check_badpath(int dummy);
141 bool run_list_dir_async_test(int dummy);
142 bool run_delete_on_close_non_empty(int dummy);
143 bool run_delete_on_close_nonwrite_delete_yes_test(int dummy);
144 bool run_delete_on_close_nonwrite_delete_no_test(int dummy);
145 bool run_chain3(int dummy);
146 bool run_local_conv_auth_info(int dummy);
147 bool run_local_sprintf_append(int dummy);
148 bool run_cleanup1(int dummy);
149 bool run_cleanup2(int dummy);
150 bool run_cleanup4(int dummy);
151 bool run_notify_bench2(int dummy);
152 bool run_notify_bench3(int dummy);
153 bool run_dbwrap_watch1(int dummy);
154 bool run_dbwrap_watch2(int dummy);
155 bool run_dbwrap_watch3(int dummy);
156 bool run_dbwrap_watch4(int dummy);
157 bool run_dbwrap_do_locked1(int dummy);
158 bool run_idmap_tdb_common_test(int dummy);
159 bool run_local_dbwrap_ctdb1(int dummy);
160 bool run_qpathinfo_bufsize(int dummy);
161 bool run_bench_pthreadpool(int dummy);
162 bool run_messaging_read1(int dummy);
163 bool run_messaging_read2(int dummy);
164 bool run_messaging_read3(int dummy);
165 bool run_messaging_read4(int dummy);
166 bool run_messaging_fdpass1(int dummy);
167 bool run_messaging_fdpass2(int dummy);
168 bool run_messaging_fdpass2a(int dummy);
169 bool run_messaging_fdpass2b(int dummy);
170 bool run_messaging_send_all(int dummy);
171 bool run_oplock_cancel(int dummy);
172 bool run_pthreadpool_tevent(int dummy);
173 bool run_g_lock1(int dummy);
174 bool run_g_lock2(int dummy);
175 bool run_g_lock3(int dummy);
176 bool run_g_lock4(int dummy);
177 bool run_g_lock4a(int dummy);
178 bool run_g_lock5(int dummy);
179 bool run_g_lock6(int dummy);
180 bool run_g_lock7(int dummy);
181 bool run_g_lock8(int dummy);
182 bool run_g_lock_ping_pong(int dummy);
183 bool run_local_namemap_cache1(int dummy);
184 bool run_local_idmap_cache1(int dummy);
185 bool run_hidenewfiles(int dummy);
186 bool run_hidenewfiles_showdirs(int dummy);
187 bool run_readdir_timestamp(int dummy);
188 bool run_ctdbd_conn1(int dummy);
189 bool run_rpc_scale(int dummy);
190 bool run_tdb_validate(int dummy);
192 #endif /* __TORTURE_H__ */