2006-06-17 06:20:39 +04: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 06:07:03 +04:00
the Free Software Foundation ; either version 3 of the License , or
2006-06-17 06:20:39 +04: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 06:07:03 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2006-06-17 06:20:39 +04:00
*/
# include "includes.h"
# include "libcli/raw/libcliraw.h"
2007-08-28 16:54:27 +04:00
# include "torture/util.h"
2008-04-27 17:02:46 +04:00
# include "torture/smbtorture.h"
# include "torture/raw/proto.h"
2006-06-17 06:20:39 +04:00
NTSTATUS torture_raw_init ( void )
{
2006-10-16 17:06:41 +04:00
struct torture_suite * suite = torture_suite_create (
2006-12-09 06:16:17 +03:00
talloc_autofree_context ( ) ,
" RAW " ) ;
2006-06-17 06:20:39 +04:00
/* RAW smb tests */
2006-10-16 17:06:41 +04:00
torture_suite_add_simple_test ( suite , " BENCH-OPLOCK " , torture_bench_oplock ) ;
2007-08-29 09:45:24 +04:00
torture_suite_add_simple_test ( suite , " PING-PONG " , torture_ping_pong ) ;
2006-12-09 06:16:17 +03:00
torture_suite_add_simple_test ( suite , " BENCH-LOCK " , torture_bench_lock ) ;
2007-04-05 10:23:06 +04:00
torture_suite_add_simple_test ( suite , " BENCH-OPEN " , torture_bench_open ) ;
2008-04-22 02:09:43 +04:00
torture_suite_add_simple_test ( suite , " BENCH-LOOKUP " ,
torture_bench_lookup ) ;
2008-05-20 21:54:45 +04:00
torture_suite_add_simple_test ( suite , " BENCH-TCON " ,
torture_bench_treeconnect ) ;
2008-01-25 07:00:11 +03:00
torture_suite_add_simple_test ( suite , " OFFLINE " , torture_test_offline ) ;
2007-08-28 16:54:27 +04:00
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-25 03:25:02 +03:00
torture_suite_add_suite ( suite , torture_raw_sfileinfo ( suite ) ) ;
2007-08-28 16:54:27 +04:00
torture_suite_add_suite ( suite , torture_raw_search ( suite ) ) ;
torture_suite_add_1smb_test ( suite , " CLOSE " , torture_raw_close ) ;
2009-12-14 21:31:02 +03:00
torture_suite_add_suite ( suite , torture_raw_open ( suite ) ) ;
2007-08-28 16:54:27 +04:00
torture_suite_add_1smb_test ( suite , " MKDIR " , torture_raw_mkdir ) ;
torture_suite_add_suite ( suite , torture_raw_oplock ( suite ) ) ;
2007-08-29 08:33:26 +04:00
torture_suite_add_1smb_test ( suite , " HOLD-OPLOCK " , torture_hold_oplock ) ;
2007-08-28 16:54:27 +04:00
torture_suite_add_2smb_test ( suite , " NOTIFY " , torture_raw_notify ) ;
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 ) ;
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 ) ) ;
torture_suite_add_1smb_test ( suite , " CONTEXT " , torture_raw_context ) ;
torture_suite_add_suite ( suite , torture_raw_rename ( suite ) ) ;
torture_suite_add_1smb_test ( suite , " SEEK " , torture_raw_seek ) ;
torture_suite_add_1smb_test ( suite , " EAS " , torture_raw_eas ) ;
2009-12-05 00:04:12 +03:00
torture_suite_add_suite ( suite , torture_raw_streams ( suite ) ) ;
2009-07-03 01:08:41 +04:00
torture_suite_add_suite ( suite , torture_raw_acls ( suite ) ) ;
2007-08-28 16:54:27 +04:00
torture_suite_add_1smb_test ( suite , " COMPOSITE " , torture_raw_composite ) ;
2006-10-16 17:06:41 +04:00
torture_suite_add_simple_test ( suite , " SAMBA3HIDE " , torture_samba3_hide ) ;
2007-01-05 19:02:42 +03:00
torture_suite_add_simple_test ( suite , " SAMBA3CLOSEERR " , torture_samba3_closeerr ) ;
2007-09-24 23:48:10 +04:00
torture_suite_add_simple_test ( suite , " SAMBA3ROOTDIRFID " ,
torture_samba3_rootdirfid ) ;
2006-10-16 17:06:41 +04:00
torture_suite_add_simple_test ( suite , " SAMBA3CHECKFSP " , torture_samba3_checkfsp ) ;
2008-11-03 17:25:02 +03:00
torture_suite_add_simple_test ( suite , " SAMBA3OPLOCKLOGOFF " , torture_samba3_oplock_logoff ) ;
2006-10-16 17:06:41 +04:00
torture_suite_add_simple_test ( suite , " SAMBA3BADPATH " , torture_samba3_badpath ) ;
2007-08-20 09:24:19 +04:00
torture_suite_add_simple_test ( suite , " SAMBA3CASEINSENSITIVE " ,
torture_samba3_caseinsensitive ) ;
2007-08-30 13:51:33 +04:00
torture_suite_add_simple_test ( suite , " SAMBA3POSIXTIMEDLOCK " ,
torture_samba3_posixtimedlock ) ;
2006-10-16 17:06:41 +04:00
torture_suite_add_simple_test ( suite , " SCAN-EAMAX " , torture_max_eas ) ;
2006-06-17 06:20:39 +04:00
2007-09-02 06:07:55 +04:00
suite - > description = talloc_strdup ( suite , " Tests for the raw SMB interface " ) ;
2006-10-16 17:06:41 +04:00
torture_register_suite ( suite ) ;
2006-06-17 06:20:39 +04:00
return NT_STATUS_OK ;
}