2006-06-17 02:20:39 +00:00
/*
Unix SMB / CIFS implementation .
SMB torture tester
Copyright ( C ) Jelmer Vernooij 2006
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
2007-07-10 02:07:03 +00:00
the Free Software Foundation ; either version 3 of the License , or
2006-06-17 02:20:39 +00:00
( 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
2007-07-10 02:07:03 +00:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2006-06-17 02:20:39 +00:00
*/
# include "includes.h"
# include "libcli/raw/libcliraw.h"
2007-08-28 12:54:27 +00:00
# include "torture/util.h"
2008-04-27 14:02:46 +01:00
# include "torture/smbtorture.h"
# include "torture/raw/proto.h"
2006-06-17 02:20:39 +00:00
NTSTATUS torture_raw_init ( void )
{
2006-10-16 13:06:41 +00:00
struct torture_suite * suite = torture_suite_create (
2010-12-11 03:26:31 +01:00
talloc_autofree_context ( ) , " raw " ) ;
2006-06-17 02:20:39 +00:00
/* RAW smb tests */
2010-12-11 03:26:31 +01:00
torture_suite_add_simple_test ( suite , " bench-oplock " , torture_bench_oplock ) ;
torture_suite_add_simple_test ( suite , " ping-pong " , torture_ping_pong ) ;
torture_suite_add_simple_test ( suite , " bench-lock " , torture_bench_lock ) ;
torture_suite_add_simple_test ( suite , " bench-open " , torture_bench_open ) ;
torture_suite_add_simple_test ( suite , " bench-lookup " ,
2008-04-21 15:09:43 -07:00
torture_bench_lookup ) ;
2010-12-11 03:26:31 +01:00
torture_suite_add_simple_test ( suite , " bench-tcon " ,
2008-05-20 10:54:45 -07:00
torture_bench_treeconnect ) ;
2010-12-11 03:26:31 +01:00
torture_suite_add_simple_test ( suite , " offline " , torture_test_offline ) ;
torture_suite_add_1smb_test ( suite , " qfsinfo " , torture_raw_qfsinfo ) ;
torture_suite_add_1smb_test ( suite , " qfileinfo " , torture_raw_qfileinfo ) ;
torture_suite_add_1smb_test ( suite , " qfileinfo.ipc " , torture_raw_qfileinfo_pipe ) ;
2009-11-24 16:25:02 -08:00
torture_suite_add_suite ( suite , torture_raw_sfileinfo ( suite ) ) ;
2007-08-28 12:54:27 +00:00
torture_suite_add_suite ( suite , torture_raw_search ( suite ) ) ;
2010-12-11 03:26:31 +01:00
torture_suite_add_1smb_test ( suite , " close " , torture_raw_close ) ;
2009-12-14 10:31:02 -08:00
torture_suite_add_suite ( suite , torture_raw_open ( suite ) ) ;
2010-12-11 03:26:31 +01:00
torture_suite_add_1smb_test ( suite , " mkdir " , torture_raw_mkdir ) ;
2007-08-28 12:54:27 +00:00
torture_suite_add_suite ( suite , torture_raw_oplock ( suite ) ) ;
2010-12-11 03:26:31 +01:00
torture_suite_add_1smb_test ( suite , " hold-oplock " , torture_hold_oplock ) ;
2012-04-18 11:43:12 +02:00
torture_suite_add_suite ( suite , torture_raw_notify ( suite ) ) ;
2010-12-11 03:26:31 +01:00
torture_suite_add_1smb_test ( suite , " mux " , torture_raw_mux ) ;
torture_suite_add_1smb_test ( suite , " ioctl " , torture_raw_ioctl ) ;
torture_suite_add_1smb_test ( suite , " chkpath " , torture_raw_chkpath ) ;
2007-08-28 12:54:27 +00:00
torture_suite_add_suite ( suite , torture_raw_unlink ( suite ) ) ;
torture_suite_add_suite ( suite , torture_raw_read ( suite ) ) ;
torture_suite_add_suite ( suite , torture_raw_write ( suite ) ) ;
torture_suite_add_suite ( suite , torture_raw_lock ( suite ) ) ;
2012-05-02 13:46:34 +02:00
torture_suite_add_suite ( suite , torture_raw_context ( suite ) ) ;
2012-03-07 13:53:24 +01:00
torture_suite_add_suite ( suite , torture_raw_session ( suite ) ) ;
2007-08-28 12:54:27 +00:00
torture_suite_add_suite ( suite , torture_raw_rename ( suite ) ) ;
2010-12-11 03:26:31 +01:00
torture_suite_add_1smb_test ( suite , " seek " , torture_raw_seek ) ;
torture_suite_add_1smb_test ( suite , " eas " , torture_raw_eas ) ;
2009-12-04 13:04:12 -08:00
torture_suite_add_suite ( suite , torture_raw_streams ( suite ) ) ;
2009-07-02 14:08:41 -07:00
torture_suite_add_suite ( suite , torture_raw_acls ( suite ) ) ;
2012-04-25 16:26:50 +10:00
torture_suite_add_suite ( suite , torture_raw_composite ( suite ) ) ;
2012-04-30 14:05:19 +10:00
torture_suite_add_1smb_test ( suite , " samba3hide " , torture_samba3_hide ) ;
torture_suite_add_1smb_test ( suite , " samba3closeerr " , torture_samba3_closeerr ) ;
torture_suite_add_1smb_test ( suite , " samba3rootdirfid " ,
2007-09-24 19:48:10 +00:00
torture_samba3_rootdirfid ) ;
2012-04-30 14:05:19 +10:00
torture_suite_add_1smb_test ( suite , " samba3checkfsp " , torture_samba3_checkfsp ) ;
torture_suite_add_1smb_test ( suite , " samba3oplocklogoff " , torture_samba3_oplock_logoff ) ;
2012-09-28 09:39:15 -07:00
torture_suite_add_1smb_test ( suite , " samba3badnameblob " , torture_samba3_check_openX_badname ) ;
2010-12-11 03:26:31 +01:00
torture_suite_add_simple_test ( suite , " samba3badpath " , torture_samba3_badpath ) ;
2012-04-30 14:05:19 +10:00
torture_suite_add_1smb_test ( suite , " samba3caseinsensitive " ,
2007-08-20 05:24:19 +00:00
torture_samba3_caseinsensitive ) ;
2012-04-30 14:05:19 +10:00
torture_suite_add_1smb_test ( suite , " samba3posixtimedlock " ,
2007-08-30 09:51:33 +00:00
torture_samba3_posixtimedlock ) ;
2010-12-11 03:26:31 +01:00
torture_suite_add_simple_test ( suite , " scan-eamax " , torture_max_eas ) ;
2006-06-17 02:20:39 +00:00
2007-09-02 02:07:55 +00:00
suite - > description = talloc_strdup ( suite , " Tests for the raw SMB interface " ) ;
2006-10-16 13:06:41 +00:00
torture_register_suite ( suite ) ;
2006-06-17 02:20:39 +00:00
return NT_STATUS_OK ;
}