2009-11-20 19:47:21 +03: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 14:53:38 +04:00
struct cli_state ;
2009-11-20 19:47:21 +03: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 ) ;
bool torture_open_connection ( struct cli_state * * c , int conn_index ) ;
2011-05-05 20:12:07 +04:00
bool torture_init_connection ( struct cli_state * * pcli ) ;
2009-11-20 19:47:21 +03:00
bool torture_cli_session_setup2 ( struct cli_state * cli , uint16 * new_vuid ) ;
bool torture_close_connection ( struct cli_state * c ) ;
bool torture_ioctl_test ( int dummy ) ;
bool torture_chkpath_test ( int dummy ) ;
2009-11-29 18:04:21 +03:00
NTSTATUS torture_setup_unix_extensions ( struct cli_state * cli ) ;
2009-11-20 19:47:21 +03:00
/* The following definitions come from torture/utable.c */
bool torture_utable ( int dummy ) ;
bool torture_casetable ( int dummy ) ;
2009-11-29 18:05:36 +03:00
/*
* Misc
*/
bool run_posix_append ( int dummy ) ;
2011-04-03 16:36:53 +04:00
bool run_case_insensitive_create ( int dummy ) ;
2009-11-29 18:05:36 +03:00
2010-07-23 22:08:58 +04:00
bool run_nbench2 ( int dummy ) ;
2010-10-06 20:46:43 +04:00
bool run_async_echo ( int dummy ) ;
2010-12-14 14:50:57 +03:00
bool run_smb_any_connect ( int dummy ) ;
2011-01-27 18:56:13 +03:00
bool run_addrchange ( int dummy ) ;
2011-05-04 19:45:34 +04:00
bool run_notify_online ( int dummy ) ;
2011-06-18 11:56:12 +04:00
bool run_nttrans_create ( int dummy ) ;
2011-09-16 03:13:54 +04:00
bool run_nttrans_fsctl ( int dummy ) ;
2011-05-05 20:12:07 +04:00
bool run_smb2_basic ( int dummy ) ;
2011-08-30 20:50:35 +04:00
bool run_smb2_negprot ( int dummy ) ;
2011-09-19 12:08:48 +04:00
bool run_smb2_session_reconnect ( int dummy ) ;
2011-09-19 12:09:34 +04:00
bool run_smb2_tcon_dependence ( int dummy ) ;
2011-10-22 12:34:31 +04:00
bool run_smb2_multi_channel ( int dummy ) ;
2011-10-22 12:37:34 +04:00
bool run_smb2_session_reauth ( int dummy ) ;
2012-02-28 23:28:55 +04:00
bool run_chain3 ( int dummy ) ;
2011-09-01 20:18:31 +04:00
bool run_local_conv_auth_info ( int dummy ) ;
2011-10-26 10:21:04 +04:00
bool run_local_sprintf_append ( int dummy ) ;
2012-01-05 12:23:42 +04:00
bool run_cleanup1 ( int dummy ) ;
2012-01-05 20:44:44 +04:00
bool run_cleanup2 ( int dummy ) ;
2012-05-11 16:39:42 +04:00
bool run_cleanup3 ( int dummy ) ;
2013-09-01 20:54:59 +04:00
bool run_cleanup4 ( int dummy ) ;
2012-02-15 15:26:59 +04:00
bool run_ctdb_conn ( int dummy ) ;
2012-04-04 16:35:12 +04:00
bool run_notify_bench2 ( int dummy ) ;
bool run_notify_bench3 ( int dummy ) ;
2012-02-15 18:17:33 +04:00
bool run_dbwrap_watch1 ( int dummy ) ;
2012-02-22 18:44:27 +04:00
bool run_idmap_tdb_common_test ( int dummy ) ;
2012-11-08 00:24:27 +04:00
bool run_local_dbwrap_ctdb ( int dummy ) ;
2013-08-23 17:57:03 +04:00
bool run_qpathinfo_bufsize ( int dummy ) ;
2014-03-24 13:40:20 +04:00
bool run_bench_pthreadpool ( int dummy ) ;
2014-04-29 16:25:14 +04:00
bool run_messaging_read1 ( int dummy ) ;
2014-04-29 16:27:03 +04:00
bool run_messaging_read2 ( int dummy ) ;
2014-05-07 13:21:04 +04:00
bool run_messaging_read3 ( int dummy ) ;
2014-08-18 20:20:34 +04:00
bool run_messaging_fdpass1 ( int dummy ) ;
2014-06-19 18:37:40 +04:00
bool run_oplock_cancel ( int dummy ) ;
2010-07-23 22:08:58 +04:00
2009-11-20 19:47:21 +03:00
# endif /* __TORTURE_H__ */