2009-11-20 17:47:21 +01:00
/*
Unix SMB / CIFS implementation .
SMB torture tester - header file
Copyright ( C ) Andrew Tridgell 1997 - 1998
Copyright ( C ) Jeremy Allison 2009
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
# ifndef __TORTURE_H__
# define __TORTURE_H__
2011-05-06 12:53:38 +02:00
struct cli_state ;
2009-11-20 17:47:21 +01:00
/* The following definitions come from torture/denytest.c */
bool torture_denytest1 ( int dummy ) ;
bool torture_denytest2 ( int dummy ) ;
/* The following definitions come from torture/mangle_test.c */
bool torture_mangle ( int dummy ) ;
/* The following definitions come from torture/nbio.c */
double nbio_total ( void ) ;
void nb_alarm ( int ignore ) ;
void nbio_shmem ( int n ) ;
void nb_setup ( struct cli_state * cli ) ;
void nb_unlink ( const char * fname ) ;
void nb_createx ( const char * fname ,
unsigned create_options , unsigned create_disposition , int handle ) ;
void nb_writex ( int handle , int offset , int size , int ret_size ) ;
void nb_readx ( int handle , int offset , int size , int ret_size ) ;
void nb_close ( int handle ) ;
void nb_rmdir ( const char * fname ) ;
void nb_rename ( const char * oldname , const char * newname ) ;
void nb_qpathinfo ( const char * fname ) ;
void nb_qfileinfo ( int fnum ) ;
void nb_qfsinfo ( int level ) ;
void nb_findfirst ( const char * mask ) ;
void nb_flush ( int fnum ) ;
void nb_deltree ( const char * dname ) ;
void nb_cleanup ( void ) ;
/* The following definitions come from torture/scanner.c */
bool torture_trans2_scan ( int dummy ) ;
bool torture_nttrans_scan ( int dummy ) ;
/* The following definitions come from torture/torture.c */
bool smbcli_parse_unc ( const char * unc_name , TALLOC_CTX * mem_ctx ,
char * * hostname , char * * sharename ) ;
2017-06-19 10:00:15 +02:00
bool torture_open_connection_flags ( struct cli_state * * c , int conn_index , int flags ) ;
2009-11-20 17:47:21 +01:00
bool torture_open_connection ( struct cli_state * * c , int conn_index ) ;
2011-05-05 18:12:07 +02:00
bool torture_init_connection ( struct cli_state * * pcli ) ;
2015-05-12 07:25:34 -07:00
bool torture_cli_session_setup2 ( struct cli_state * cli , uint16_t * new_vuid ) ;
2009-11-20 17:47:21 +01:00
bool torture_close_connection ( struct cli_state * c ) ;
bool torture_ioctl_test ( int dummy ) ;
bool torture_chkpath_test ( int dummy ) ;
2009-11-29 16:04:21 +01:00
NTSTATUS torture_setup_unix_extensions ( struct cli_state * cli ) ;
2020-10-15 12:32:53 +02:00
void torture_conn_set_sockopt ( struct cli_state * cli ) ;
2009-11-20 17:47:21 +01:00
/* The following definitions come from torture/utable.c */
bool torture_utable ( int dummy ) ;
bool torture_casetable ( int dummy ) ;
2009-11-29 16:05:36 +01:00
/*
* Misc
*/
bool run_posix_append ( int dummy ) ;
2020-10-15 15:11:20 +02:00
bool run_posix_ls_wildcard_test ( int dummy ) ;
2020-10-15 15:24:11 +02:00
bool run_posix_ls_single_test ( int dummy ) ;
2020-10-15 15:32:34 +02:00
bool run_posix_readlink_test ( int dummy ) ;
2020-10-15 15:36:42 +02:00
bool run_posix_stat_test ( int dummy ) ;
2021-04-06 11:46:23 -07:00
bool run_posix_symlink_parent_test ( int dummy ) ;
2021-04-19 16:25:51 -07:00
bool run_posix_symlink_chmod_test ( int dummy ) ;
2021-05-18 12:11:46 -07:00
bool run_posix_dir_default_acl_test ( int dummy ) ;
2011-04-03 14:36:53 +02:00
bool run_case_insensitive_create ( int dummy ) ;
2021-05-21 11:14:19 -07:00
bool run_posix_symlink_rename_test ( int dummy ) ;
2021-06-14 16:34:14 -07:00
bool run_posix_symlink_getpathinfo_test ( int dummy ) ;
2021-06-15 15:11:20 -07:00
bool run_posix_symlink_setpathinfo_test ( int dummy ) ;
2009-11-29 16:05:36 +01:00
2010-07-23 20:08:58 +02:00
bool run_nbench2 ( int dummy ) ;
2010-10-06 18:46:43 +02:00
bool run_async_echo ( int dummy ) ;
2010-12-14 12:50:57 +01:00
bool run_smb_any_connect ( int dummy ) ;
2011-01-27 16:56:13 +01:00
bool run_addrchange ( int dummy ) ;
2021-06-18 21:54:27 +00:00
bool run_str_match_mswild ( int dummy ) ;
2021-06-11 19:03:42 +00:00
bool run_str_match_regex_sub1 ( int dummy ) ;
2011-05-04 17:45:34 +02:00
bool run_notify_online ( int dummy ) ;
2011-06-18 09:56:12 +02:00
bool run_nttrans_create ( int dummy ) ;
2011-09-15 16:13:54 -07:00
bool run_nttrans_fsctl ( int dummy ) ;
2011-05-05 18:12:07 +02:00
bool run_smb2_basic ( int dummy ) ;
2011-08-30 18:50:35 +02:00
bool run_smb2_negprot ( int dummy ) ;
2018-03-15 17:40:07 +01:00
bool run_smb2_anonymous ( int dummy ) ;
2011-09-19 10:08:48 +02:00
bool run_smb2_session_reconnect ( int dummy ) ;
2011-09-19 10:09:34 +02:00
bool run_smb2_tcon_dependence ( int dummy ) ;
2011-10-22 10:34:31 +02:00
bool run_smb2_multi_channel ( int dummy ) ;
2011-10-22 10:37:34 +02:00
bool run_smb2_session_reauth ( int dummy ) ;
2017-01-03 15:37:03 -08:00
bool run_smb2_ftruncate ( int dummy ) ;
2018-05-10 11:30:24 -07:00
bool run_smb2_dir_fsync ( int dummy ) ;
2019-09-26 12:36:18 -07:00
bool run_smb2_path_slash ( int dummy ) ;
2020-04-17 11:46:49 -07:00
bool run_smb2_sacl ( int dummy ) ;
2020-05-22 15:24:06 +02:00
bool run_smb2_quota1 ( int dummy ) ;
2021-03-25 15:43:16 -07:00
bool run_smb2_stream_acl ( int dummy ) ;
2021-07-14 15:29:01 -07:00
bool run_list_dir_async_test ( int dummy ) ;
2021-11-03 16:50:10 -07:00
bool run_delete_on_close_non_empty ( int dummy ) ;
2012-02-28 20:28:55 +01:00
bool run_chain3 ( int dummy ) ;
2011-09-01 18:18:31 +02:00
bool run_local_conv_auth_info ( int dummy ) ;
2011-10-26 17:21:04 +11:00
bool run_local_sprintf_append ( int dummy ) ;
2012-01-05 09:23:42 +01:00
bool run_cleanup1 ( int dummy ) ;
2012-01-05 17:44:44 +01:00
bool run_cleanup2 ( int dummy ) ;
2013-09-01 18:54:59 +02:00
bool run_cleanup4 ( int dummy ) ;
2012-04-04 14:35:12 +02:00
bool run_notify_bench2 ( int dummy ) ;
bool run_notify_bench3 ( int dummy ) ;
2012-02-15 15:17:33 +01:00
bool run_dbwrap_watch1 ( int dummy ) ;
2017-04-28 13:58:48 +02:00
bool run_dbwrap_watch2 ( int dummy ) ;
2019-10-15 10:55:25 +02:00
bool run_dbwrap_watch3 ( int dummy ) ;
2019-11-16 13:20:14 +01:00
bool run_dbwrap_watch4 ( int dummy ) ;
2017-06-27 08:25:36 +02:00
bool run_dbwrap_do_locked1 ( int dummy ) ;
2012-02-22 15:44:27 +01:00
bool run_idmap_tdb_common_test ( int dummy ) ;
2020-03-23 13:02:55 +01:00
bool run_local_dbwrap_ctdb1 ( int dummy ) ;
2013-08-23 13:57:03 +00:00
bool run_qpathinfo_bufsize ( int dummy ) ;
2014-03-24 09:40:20 +00:00
bool run_bench_pthreadpool ( int dummy ) ;
2014-04-29 14:25:14 +02:00
bool run_messaging_read1 ( int dummy ) ;
2014-04-29 14:27:03 +02:00
bool run_messaging_read2 ( int dummy ) ;
2014-05-07 11:21:04 +02:00
bool run_messaging_read3 ( int dummy ) ;
2014-09-25 00:28:14 +02:00
bool run_messaging_read4 ( int dummy ) ;
2014-08-18 18:20:34 +02:00
bool run_messaging_fdpass1 ( int dummy ) ;
2014-09-23 09:53:15 +02:00
bool run_messaging_fdpass2 ( int dummy ) ;
2015-03-19 12:47:53 +01:00
bool run_messaging_fdpass2a ( int dummy ) ;
2015-03-19 16:45:09 +01:00
bool run_messaging_fdpass2b ( int dummy ) ;
2017-12-11 15:58:26 +01:00
bool run_messaging_send_all ( int dummy ) ;
2014-06-19 14:37:40 +00:00
bool run_oplock_cancel ( int dummy ) ;
2016-08-08 15:04:39 +02:00
bool run_pthreadpool_tevent ( int dummy ) ;
2017-05-16 15:05:49 +02:00
bool run_g_lock1 ( int dummy ) ;
2017-05-19 16:59:06 +02:00
bool run_g_lock2 ( int dummy ) ;
2017-05-19 17:02:08 +02:00
bool run_g_lock3 ( int dummy ) ;
2017-05-21 08:56:01 +02:00
bool run_g_lock4 ( int dummy ) ;
2019-12-22 14:05:17 +01:00
bool run_g_lock4a ( int dummy ) ;
2017-05-25 10:48:15 +02:00
bool run_g_lock5 ( int dummy ) ;
2017-12-20 09:44:40 +01:00
bool run_g_lock6 ( int dummy ) ;
2019-11-20 16:03:37 +01:00
bool run_g_lock7 ( int dummy ) ;
2019-10-31 11:45:36 +01:00
bool run_g_lock8 ( int dummy ) ;
2017-05-22 21:55:11 +02:00
bool run_g_lock_ping_pong ( int dummy ) ;
2017-08-03 16:26:25 +02:00
bool run_local_namemap_cache1 ( int dummy ) ;
2019-02-27 14:54:12 +01:00
bool run_local_idmap_cache1 ( int dummy ) ;
2018-11-08 13:27:58 +01:00
bool run_hidenewfiles ( int dummy ) ;
2020-03-25 12:20:39 +01:00
bool run_readdir_timestamp ( int dummy ) ;
2020-03-12 16:20:50 +01:00
bool run_ctdbd_conn1 ( int dummy ) ;
2010-07-23 20:08:58 +02:00
2009-11-20 17:47:21 +01:00
# endif /* __TORTURE_H__ */