2011-02-21 08:01:44 +03:00
#!/usr/bin/python
2012-10-27 01:09:45 +04:00
# This script generates a list of testsuites that should be run as part of
2011-02-21 08:01:44 +03:00
# the Samba 3 test suite.
2012-10-27 01:09:45 +04:00
# The output of this script is parsed by selftest.pl, which then decides
# which of the tests to actually run. It will, for example, skip all tests
2011-02-21 08:01:44 +03:00
# listed in selftest/skip or only run a subset during "make quicktest".
2012-10-27 01:09:45 +04:00
# The idea is that this script outputs all of the tests of Samba 3, not
# just those that are known to pass, and list those that should be skipped
# or are known to fail in selftest/skip or selftest/samba3-knownfail. This makes it
# very easy to see what functionality is still missing in Samba 3 and makes
# it possible to run the testsuite against other servers, such as Samba 4 or
2011-02-21 08:01:44 +03:00
# Windows that have a different set of features.
2012-10-27 01:09:45 +04:00
# The syntax for a testsuite is "-- TEST --" on a single line, followed
# by the name of the test, the environment it needs and the command to run, all
# three separated by newlines. All other lines in the output are considered
2011-02-21 08:01:44 +03:00
# comments.
import os , sys
sys . path . insert ( 0 , os . path . normpath ( os . path . join ( os . path . dirname ( __file__ ) , " ../../selftest " ) ) )
2012-10-27 02:06:47 +04:00
import selftesthelpers
2011-02-21 08:01:44 +03:00
from selftesthelpers import *
2012-10-27 02:06:47 +04:00
smbtorture4_options . extend ( [
' --option=torture:sharedelay=100000 ' ,
' --option=torture:writetimeupdatedelay=500000 ' ,
] )
2012-02-02 15:02:00 +04:00
2012-10-27 02:06:47 +04:00
def plansmbtorture4testsuite ( name , env , options , description = ' ' ) :
2012-04-27 06:49:14 +04:00
if description == ' ' :
2012-10-27 02:06:47 +04:00
modname = " samba3. %s " % ( name , )
2012-04-27 06:49:14 +04:00
else :
2012-10-27 02:06:47 +04:00
modname = " samba3. %s %s " % ( name , description )
2012-04-27 06:49:14 +04:00
2014-03-21 03:42:46 +04:00
selftesthelpers . plansmbtorture4testsuite (
name , env , options , target = ' samba3 ' , modname = modname )
2011-02-21 08:01:44 +03:00
2017-03-08 09:18:36 +03:00
# find config.h
try :
config_h = os . environ [ " CONFIG_H " ]
except KeyError :
samba4bindir = bindir ( )
config_h = os . path . join ( samba4bindir , " default/include/config.h " )
# check available features
config_hash = dict ( )
f = open ( config_h , ' r ' )
try :
lines = f . readlines ( )
config_hash = dict ( ( x [ 0 ] , ' ' . join ( x [ 1 : ] ) )
for x in map ( lambda line : line . strip ( ) . split ( ' ' ) [ 1 : ] ,
filter ( lambda line : ( line [ 0 : 7 ] == ' #define ' ) and ( len ( line . split ( ' ' ) ) > 2 ) , lines ) ) )
finally :
f . close ( )
have_libarchive = ( " HAVE_LIBARCHIVE " in config_hash )
2017-03-01 20:13:35 +03:00
have_linux_kernel_oplocks = ( " HAVE_KERNEL_OPLOCKS_LINUX " in config_hash )
2017-07-13 17:04:50 +03:00
have_inotify = ( " HAVE_INOTIFY " in config_hash )
2017-12-07 01:10:23 +03:00
have_ldwrap = ( " HAVE_LDWRAP " in config_hash )
with_pthreadpool = ( " WITH_PTHREADPOOL " in config_hash )
2012-02-02 15:02:00 +04:00
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.success " , " nt4_dc:local " , [ os . path . join ( samba3srcdir , " script/tests/test_success.sh " ) ] )
plantestsuite ( " samba3.blackbox.failure " , " nt4_dc:local " , [ os . path . join ( samba3srcdir , " script/tests/test_failure.sh " ) ] )
2011-02-21 08:01:44 +03:00
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.local_s3 " , " nt4_dc:local " , [ os . path . join ( samba3srcdir , " script/tests/test_local_s3.sh " ) ] )
2011-02-21 08:01:44 +03:00
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.registry.upgrade " , " nt4_dc:local " , [ os . path . join ( samba3srcdir , " script/tests/test_registry_upgrade.sh " ) , net , dbwrap_tool ] )
2011-11-02 23:02:35 +04:00
2012-10-27 17:31:06 +04:00
tests = [ " FDPASS " , " LOCK1 " , " LOCK2 " , " LOCK3 " , " LOCK4 " , " LOCK5 " , " LOCK6 " , " LOCK7 " , " LOCK9 " ,
2011-02-21 08:01:44 +03:00
" UNLINK " , " BROWSE " , " ATTR " , " TRANS2 " , " TORTURE " ,
2011-05-22 16:16:46 +04:00
" OPLOCK1 " , " OPLOCK2 " , " OPLOCK4 " , " STREAMERROR " ,
2013-03-14 02:45:12 +04:00
" DIR " , " DIR1 " , " DIR-CREATETIME " , " TCON " , " TCONDEV " , " RW1 " , " RW2 " , " RW3 " , " LARGE_READX " , " RW-SIGNING " ,
2015-10-20 02:06:01 +03:00
" OPEN " , " XCOPY " , " RENAME " , " DELETE " , " DELETE-LN " , " WILDDELETE " , " PROPERTIES " , " W2K " ,
2016-12-08 21:40:27 +03:00
" TCON2 " , " IOCTL " , " CHKPATH " , " FDSESS " , " CHAIN1 " , " CHAIN2 " , " OWNER-RIGHTS " ,
2016-06-12 03:51:16 +03:00
" CHAIN3 " , " PIDHIGH " ,
2017-10-18 18:11:21 +03:00
" UID-REGRESSION-TEST " , " SHORTNAME-TEST " ,
2011-08-30 20:50:55 +04:00
" CASE-INSENSITIVE-CREATE " , " SMB2-BASIC " , " NTTRANS-FSCTL " , " SMB2-NEGPROT " ,
2017-01-04 02:37:03 +03:00
" SMB2-SESSION-REAUTH " , " SMB2-SESSION-RECONNECT " , " SMB2-FTRUNCATE " ,
2018-03-15 20:04:21 +03:00
" SMB2-ANONYMOUS " ,
2012-01-05 15:25:39 +04:00
" CLEANUP1 " ,
2012-01-05 20:47:16 +04:00
" CLEANUP2 " ,
2013-09-01 20:54:59 +04:00
" CLEANUP4 " ,
2011-10-26 10:59:47 +04:00
" BAD-NBT-SESSION " ]
2011-02-21 08:01:44 +03:00
for t in tests :
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain(nt4_dc). %s " % t , " nt4_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/tmp ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
plantestsuite ( " samba3.smbtorture_s3.crypt_client(nt4_dc). %s " % t , " nt4_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/tmp ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " -e " , " -l $LOCAL_PATH " ] )
2012-08-17 10:50:21 +04:00
if t == " TORTURE " :
# this is a negative test to verify that the server rejects
# access without encryption
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.smbtorture_s3.crypt_server(nt4_dc). %s " % t , " nt4_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/tmpenc ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2015-03-06 01:38:26 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain(ad_dc_ntvfs). %s " % t , " ad_dc_ntvfs " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/tmp ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2012-05-16 11:11:40 +04:00
2017-12-21 19:24:01 +03:00
t = " TLDAP "
plantestsuite ( " samba3.smbtorture_s3.plain. %s (ad_dc) " % t , " ad_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER/tmp ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2016-12-06 01:34:18 +03:00
#
# RENAME-ACCESS needs to run against a special share - acl_xattr_ign_sysacl_windows
#
plantestsuite ( " samba3.smbtorture_s3.plain(nt4_dc). %s " % " RENAME-ACCESS " , " nt4_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , " RENAME-ACCESS " , ' //$SERVER_IP/acl_xattr_ign_sysacl_windows ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
plantestsuite ( " samba3.smbtorture_s3.crypt_client(nt4_dc). %s " % " RENAME-ACCESS " , " nt4_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , " RENAME-ACCESS " , ' //$SERVER_IP/acl_xattr_ign_sysacl_windows ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " -e " , " -l $LOCAL_PATH " ] )
2014-06-19 18:37:40 +04:00
# non-crypt only
tests = [ " OPLOCK-CANCEL " ]
for t in tests :
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain(nt4_dc). %s " % t , " nt4_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/tmp ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2014-06-19 18:37:40 +04:00
2016-12-15 15:05:50 +03:00
env = " nt4_dc "
tests = [ " MANGLE-ILLEGAL " ]
for t in tests :
plantestsuite ( " samba3.smbtorture_s3.plain( %s ). %s " % ( env , t ) , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/mangle_illegal ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2012-08-21 13:22:54 +04:00
tests = [ " RW1 " , " RW2 " , " RW3 " ]
for t in tests :
2012-09-26 04:40:17 +04:00
plantestsuite ( " samba3.smbtorture_s3.vfs_aio_fork(simpleserver). %s " % t , " simpleserver " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/vfs_aio_fork ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2012-08-21 13:22:54 +04:00
2016-07-19 19:24:38 +03:00
posix_tests = [ " POSIX " , " POSIX-APPEND " , " POSIX-SYMLINK-ACL " , " POSIX-SYMLINK-EA " , " POSIX-OFD-LOCK " ,
2017-02-14 23:59:58 +03:00
" POSIX-STREAM-DELETE " , " WINDOWS-BAD-SYMLINK " ]
2012-06-05 07:44:56 +04:00
for t in posix_tests :
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain(nt4_dc). %s " % t , " nt4_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/posix_share ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
plantestsuite ( " samba3.smbtorture_s3.crypt(nt4_dc). %s " % t , " nt4_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/posix_share ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " -e " , " -l $LOCAL_PATH " ] )
2015-03-06 01:38:26 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain(ad_dc_ntvfs). %s " % t , " ad_dc_ntvfs " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/posix_share ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2012-06-05 07:44:56 +04:00
2015-03-06 11:34:11 +03:00
env = " nt4_dc:local "
2012-05-16 11:11:40 +04:00
t = " CLEANUP3 "
plantestsuite ( " samba3.smbtorture_s3.plain( %s ). %s " % ( env , t ) , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/tmp ' , ' $USERNAME ' , ' $PASSWORD ' , binpath ( ' smbtorture3 ' ) , " " , " -l $LOCAL_PATH " ] )
2011-02-21 08:01:44 +03:00
2012-10-27 17:31:06 +04:00
local_tests = [
2012-10-27 01:56:30 +04:00
" LOCAL-SUBSTITUTE " ,
" LOCAL-GENCACHE " ,
" LOCAL-BASE64 " ,
" LOCAL-RBTREE " ,
" LOCAL-MEMCACHE " ,
" LOCAL-STREAM-NAME " ,
" LOCAL-string_to_sid " ,
2013-07-31 18:38:23 +04:00
" LOCAL-sid_to_string " ,
2012-10-27 01:56:30 +04:00
" LOCAL-binary_to_sid " ,
" LOCAL-DBTRANS " ,
2017-09-12 22:08:38 +03:00
" LOCAL-TEVENT-POLL " ,
2012-10-27 01:56:30 +04:00
" LOCAL-CONVERT-STRING " ,
" LOCAL-CONV-AUTH-INFO " ,
" LOCAL-IDMAP-TDB-COMMON " ,
2014-04-29 16:25:14 +04:00
" LOCAL-MESSAGING-READ1 " ,
2014-04-29 16:27:03 +04:00
" LOCAL-MESSAGING-READ2 " ,
2014-05-07 13:21:04 +04:00
" LOCAL-MESSAGING-READ3 " ,
2014-09-30 02:30:58 +04:00
" LOCAL-MESSAGING-READ4 " ,
2014-09-22 22:13:39 +04:00
" LOCAL-MESSAGING-FDPASS1 " ,
2014-09-24 09:19:03 +04:00
" LOCAL-MESSAGING-FDPASS2 " ,
2015-03-19 14:47:53 +03:00
" LOCAL-MESSAGING-FDPASS2a " ,
2015-03-19 18:45:09 +03:00
" LOCAL-MESSAGING-FDPASS2b " ,
2017-12-11 17:58:26 +03:00
" LOCAL-MESSAGING-SEND-ALL " ,
2016-08-08 16:04:39 +03:00
" LOCAL-PTHREADPOOL-TEVENT " ,
2017-01-27 03:08:42 +03:00
" LOCAL-CANONICALIZE-PATH " ,
2017-04-28 14:41:30 +03:00
" LOCAL-DBWRAP-WATCH1 " ,
2017-04-28 14:58:48 +03:00
" LOCAL-DBWRAP-WATCH2 " ,
2017-06-27 09:25:36 +03:00
" LOCAL-DBWRAP-DO-LOCKED1 " ,
2017-05-16 16:05:49 +03:00
" LOCAL-G-LOCK1 " ,
2017-05-19 17:59:06 +03:00
" LOCAL-G-LOCK2 " ,
2017-05-19 18:02:08 +03:00
" LOCAL-G-LOCK3 " ,
2017-05-21 09:56:01 +03:00
" LOCAL-G-LOCK4 " ,
2017-05-25 11:48:15 +03:00
" LOCAL-G-LOCK5 " ,
2017-12-20 11:44:40 +03:00
" LOCAL-G-LOCK6 " ,
2017-08-03 17:26:25 +03:00
" LOCAL-NAMEMAP-CACHE1 " ,
2012-10-27 01:56:30 +04:00
" LOCAL-hex_encode_buf " ,
" LOCAL-remove_duplicate_addrs2 " ]
2011-10-26 10:59:47 +04:00
for t in local_tests :
2014-09-22 03:24:49 +04:00
plantestsuite ( " samba3.smbtorture_s3. %s " % t , " none " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //foo/bar ' , ' " " ' , ' " " ' , smbtorture3 , " " ] )
2011-10-26 10:59:47 +04:00
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba.vfstest.stream_depot " , " nt4_dc:local " , [ os . path . join ( samba3srcdir , " script/tests/stream-depot/run.sh " ) , binpath ( " vfstest " ) , " $PREFIX " , configuration ] )
plantestsuite ( " samba.vfstest.xattr-tdb-1 " , " nt4_dc:local " , [ os . path . join ( samba3srcdir , " script/tests/xattr-tdb-1/run.sh " ) , binpath ( " vfstest " ) , " $PREFIX " , configuration ] )
plantestsuite ( " samba.vfstest.acl " , " nt4_dc:local " , [ os . path . join ( samba3srcdir , " script/tests/vfstest-acl/run.sh " ) , binpath ( " vfstest " ) , " $PREFIX " , configuration ] )
plantestsuite ( " samba.vfstest.catia " , " nt4_dc:local " , [ os . path . join ( samba3srcdir , " script/tests/vfstest-catia/run.sh " ) , binpath ( " vfstest " ) , " $PREFIX " , configuration ] )
2012-08-16 02:55:43 +04:00
2017-06-26 11:52:04 +03:00
plantestsuite ( " samba3.blackbox.smbclient_basic.NT1 " , " nt4_dc_schannel " , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_basic.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbclient3 , configuration , " -mNT1 " ] )
plantestsuite ( " samba3.blackbox.smbclient_basic.SMB2_02 " , " nt4_dc_schannel " , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_basic.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbclient3 , configuration , " -mSMB2_02 " ] )
plantestsuite ( " samba3.blackbox.smbclient_basic.SMB2_10 " , " nt4_dc_schannel " , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_basic.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbclient3 , configuration , " -mSMB2_10 " ] )
plantestsuite ( " samba3.blackbox.smbclient_basic.SMB3_02 " , " nt4_dc_schannel " , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_basic.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbclient3 , configuration , " -mSMB3_02 " ] )
plantestsuite ( " samba3.blackbox.smbclient_basic.SMB3_11 " , " nt4_dc_schannel " , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_basic.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbclient3 , configuration , " -mSMB3_11 " ] )
2017-06-19 16:52:23 +03:00
plantestsuite ( " samba3.blackbox.smbclient_basic " , " ad_member " , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_basic.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbclient3 , configuration ] )
2016-07-21 20:45:04 +03:00
for options in [ " " , " --option=clientntlmv2auth=no " , " --option=clientusespnego=no " , " --option=clientusespnego=no --option=clientntlmv2auth=no " , " --option=clientntlmv2auth=no --option=clientlanmanauth=yes --max-protocol=LANMAN2 " , " --option=clientntlmv2auth=no --option=clientlanmanauth=yes --option=clientmaxprotocol=NT1 " ] :
2015-03-06 11:34:11 +03:00
env = " nt4_dc "
2012-10-27 02:00:07 +04:00
plantestsuite ( " samba3.blackbox.smbclient_auth.plain ( %s ) %s " % ( env , options ) , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbclient3 , configuration , options ] )
2012-03-08 08:37:29 +04:00
2016-05-18 11:24:36 +03:00
for env in [ " nt4_dc " , " nt4_member " , " ad_member " , " ad_dc " , " ad_dc_ntvfs " , " s4member " , " fl2000dc " ] :
2012-10-27 02:00:07 +04:00
plantestsuite ( " samba3.blackbox.smbclient_machine_auth.plain ( %s :local) " % env , " %s :local " % env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_machine_auth.sh " ) , ' $SERVER ' , smbclient3 , configuration ] )
2016-04-25 17:12:47 +03:00
plantestsuite ( " samba3.blackbox.smbclient_ntlm.plain ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_ntlm.sh " ) , ' $SERVER ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , " never " , smbclient3 , configuration ] )
2012-08-27 15:02:28 +04:00
2016-07-21 20:45:04 +03:00
for options in [ " --option=clientntlmv2auth=no " , " --option=clientusespnego=no --option=clientntlmv2auth=no " , " " ] :
for env in [ " nt4_member " , " ad_member " ] :
plantestsuite ( " samba3.blackbox.smbclient_auth.plain ( %s ) %s " % ( env , options ) , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbclient3 , configuration , options ] )
plantestsuite ( " samba3.blackbox.smbclient_auth.plain ( %s ) %s member creds " % ( env , options ) , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $SERVER/$USERNAME ' , ' $PASSWORD ' , smbclient3 , configuration , options ] )
2011-04-11 19:26:35 +04:00
2017-07-11 11:58:11 +03:00
env = " ad_dc "
plantestsuite ( " samba3.blackbox.smbspool " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbspool.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , env ] )
2017-08-21 13:23:56 +03:00
for env in [ " ad_member:local " , " nt4_dc:local " ] :
plantestsuite ( " samba3.blackbox.smbpasswd " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbpasswd.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' ] )
2016-03-08 17:53:21 +03:00
env = " nt4_dc "
plantestsuite ( " samba3.blackbox.smbclient_auth.plain ( %s ) ipv6 " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IPV6 ' , ' $SERVER/$USERNAME ' , ' $PASSWORD ' , smbclient3 , configuration ] )
2015-03-06 12:01:33 +03:00
for env in [ " nt4_member " , " ad_member " ] :
2013-12-02 04:20:39 +04:00
plantestsuite ( " samba3.blackbox.net_cred_change.( %s :local) " % env , " %s :local " % env , [ os . path . join ( samba3srcdir , " script/tests/test_net_cred_change.sh " ) , configuration ] )
2015-03-06 01:46:14 +03:00
env = " ad_member "
2014-03-31 11:47:18 +04:00
t = " --krb5auth=$DOMAIN/$DC_USERNAME % $DC_PASSWORD "
2014-03-31 05:02:18 +04:00
plantestsuite ( " samba3.wbinfo_simple.( %s :local). %s " % ( env , t ) , " %s :local " % env , [ os . path . join ( srcdir ( ) , " nsswitch/tests/test_wbinfo_simple.sh " ) , t ] )
2015-02-23 01:52:58 +03:00
t = " WBCLIENT-MULTI-PING "
2015-02-23 01:49:29 +03:00
plantestsuite ( " samba3.smbtorture_s3. %s " % t , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //foo/bar ' , ' " " ' , ' " " ' , smbtorture3 , " " ] )
2016-09-25 20:35:12 +03:00
plantestsuite ( " samba3.substitutions " , env , [ os . path . join ( samba3srcdir , " script/tests/test_substitutions.sh " ) , " $SERVER " , " alice " , " Secret007 " , " $PREFIX " ] )
2012-03-11 06:00:01 +04:00
2016-09-15 16:47:25 +03:00
plantestsuite ( " samba3.ntlm_auth.krb5 with old ccache(ktest:local) " , " ktest:local " , [ os . path . join ( samba3srcdir , " script/tests/test_ntlm_auth_krb5.sh " ) , valgrindify ( python ) , samba3srcdir , ntlm_auth3 , ' $PREFIX/ktest/krb5_ccache-2 ' , ' $SERVER ' , configuration ] )
2012-03-01 10:26:32 +04:00
2012-10-27 02:00:07 +04:00
plantestsuite ( " samba3.ntlm_auth.krb5(ktest:local) " , " ktest:local " , [ os . path . join ( samba3srcdir , " script/tests/test_ntlm_auth_krb5.sh " ) , valgrindify ( python ) , samba3srcdir , ntlm_auth3 , ' $PREFIX/ktest/krb5_ccache-3 ' , ' $SERVER ' , configuration ] )
2012-03-01 10:26:32 +04:00
2012-09-26 04:40:17 +04:00
for env in [ " maptoguest " , " simpleserver " ] :
2012-10-27 02:00:07 +04:00
plantestsuite ( " samba3.blackbox.smbclient_auth.plain ( %s ) local creds " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 , configuration + " --option=clientntlmv2auth=no --option=clientlanmanauth=yes " ] )
2011-02-21 08:01:44 +03:00
2011-07-22 07:00:21 +04:00
env = " maptoguest "
2012-10-27 02:00:07 +04:00
plantestsuite ( " samba3.blackbox.smbclient_auth.plain ( %s ) bad username " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' notmy$USERNAME ' , ' $PASSWORD ' , smbclient3 , configuration + " --option=clientntlmv2auth=no --option=clientlanmanauth=yes " ] )
2016-04-25 17:12:47 +03:00
plantestsuite ( " samba3.blackbox.smbclient_ntlm.plain ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_ntlm.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , " baduser " , smbclient3 , configuration ] )
2011-07-22 07:00:21 +04:00
2011-02-21 08:01:44 +03:00
# plain
2015-03-06 11:34:11 +03:00
for env in [ " nt4_dc " ] :
2017-06-20 10:03:02 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.plain ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " NT1 " ] )
2017-06-20 10:07:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.plain ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " SMB3 " ] )
2011-02-21 08:01:44 +03:00
2015-03-06 12:01:33 +03:00
for env in [ " nt4_member " , " ad_member " ] :
2017-06-20 10:03:02 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.plain ( %s ) member creds " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $SERVER ' , ' $SERVER/$USERNAME ' , ' $PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " NT1 " ] )
2017-06-20 10:07:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.plain ( %s ) member creds " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $SERVER ' , ' $SERVER/$USERNAME ' , ' $PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " SMB3 " ] )
2011-02-21 08:01:44 +03:00
2015-03-06 11:34:11 +03:00
for env in [ " nt4_dc " ] :
2017-06-20 10:03:02 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.sign ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " NT1 " , " --signing=required " ] )
2017-06-20 10:07:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.sign ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " SMB3 " , " --signing=required " ] )
2011-02-21 08:01:44 +03:00
2015-03-06 12:01:33 +03:00
for env in [ " nt4_member " , " ad_member " ] :
2017-06-20 10:03:02 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.sign ( %s ) member creds " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $SERVER ' , ' $SERVER/$USERNAME ' , ' $PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " NT1 " , " --signing=required " ] )
2017-06-20 10:07:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.sign ( %s ) member creds " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $SERVER ' , ' $SERVER/$USERNAME ' , ' $PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " SMB3 " , " --signing=required " ] )
2011-02-21 08:01:44 +03:00
2015-03-06 11:34:11 +03:00
for env in [ " nt4_dc " ] :
2012-08-11 18:48:36 +04:00
# encrypted
2017-06-20 10:03:02 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.crypt ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " NT1 " , " -e " ] )
2017-06-20 10:07:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.crypt ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_s3.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , wbinfo , net , configuration , " SMB3 " , " -e " ] )
2011-02-21 08:01:44 +03:00
2015-07-01 15:09:32 +03:00
for env in [ " fileserver " ] :
plantestsuite ( " samba3.blackbox.preserve_case ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_preserve_case.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 ] )
2015-07-14 17:30:35 +03:00
plantestsuite ( " samba3.blackbox.dfree_command ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_dfree_command.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 ] )
2016-08-11 23:54:22 +03:00
plantestsuite ( " samba3.blackbox.dfree_quota ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_dfree_quota.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbclient3 , smbcquotas , smbcacls ] )
2015-07-28 21:28:20 +03:00
plantestsuite ( " samba3.blackbox.valid_users ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_valid_users.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 ] )
2015-11-04 13:06:03 +03:00
plantestsuite ( " samba3.blackbox.offline ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_offline.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/offline ' , smbclient3 ] )
2016-08-16 07:19:04 +03:00
plantestsuite ( " samba3.blackbox.shadow_copy2 NT1 ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_shadow_copy.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/shadow ' , smbclient3 , ' -m ' , ' NT1 ' ] )
plantestsuite ( " samba3.blackbox.shadow_copy2 SMB3 ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_shadow_copy.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/shadow ' , smbclient3 , ' -m ' , ' SMB3 ' ] )
2015-12-04 16:50:56 +03:00
plantestsuite ( " samba3.blackbox.smbclient.forceuser_validusers ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_forceuser_validusers.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbclient3 ] )
2016-02-06 12:30:29 +03:00
plantestsuite ( " samba3.blackbox.smbget ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbget.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' smbget_user ' , ' $PASSWORD ' , ' $LOCAL_PATH/smbget ' , smbget ] )
2016-02-29 23:09:57 +03:00
plantestsuite ( " samba3.blackbox.netshareenum ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_shareenum.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , rpcclient ] )
2017-06-26 10:34:38 +03:00
plantestsuite ( " samba3.blackbox.acl_xattr.NT1 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_acl_xattr.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , ' -mNT1 ' ] )
plantestsuite ( " samba3.blackbox.acl_xattr.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_acl_xattr.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , ' -mSMB3 ' ] )
2016-04-04 20:28:05 +03:00
plantestsuite ( " samba3.blackbox.smb2.not_casesensitive ( %s ) " % env , env , [ os . path . join ( samba3srcdir , " script/tests/test_smb2_not_casesensitive.sh " ) , ' //$SERVER/tmp ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbclient3 ] )
2017-10-07 10:11:56 +03:00
plantestsuite ( " samba3.blackbox.inherit_owner.default.NT1 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_inherit_owner.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' tmp ' , ' 0 ' , ' 0 ' , ' -m ' , ' NT1 ' ] )
plantestsuite ( " samba3.blackbox.inherit_owner.default.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_inherit_owner.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' tmp ' , ' 0 ' , ' 0 ' , ' -m ' , ' SMB3 ' ] )
plantestsuite ( " samba3.blackbox.inherit_owner.full.NT1 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_inherit_owner.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' inherit_owner ' , ' 1 ' , ' 1 ' , ' -m ' , ' NT1 ' ] )
plantestsuite ( " samba3.blackbox.inherit_owner.full.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_inherit_owner.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' inherit_owner ' , ' 1 ' , ' 1 ' , ' -m ' , ' SMB3 ' ] )
plantestsuite ( " samba3.blackbox.inherit_owner.unix.NT1 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_inherit_owner.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' inherit_owner_u ' , ' 0 ' , ' 1 ' , ' -m ' , ' NT1 ' ] )
plantestsuite ( " samba3.blackbox.inherit_owner.unix.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_inherit_owner.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' inherit_owner_u ' , ' 0 ' , ' 1 ' , ' -m ' , ' SMB3 ' ] )
2017-06-26 10:39:31 +03:00
plantestsuite ( " samba3.blackbox.large_acl.NT1 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_large_acl.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 , smbcacls , ' -m ' , ' NT1 ' ] )
plantestsuite ( " samba3.blackbox.large_acl.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_large_acl.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 , smbcacls , ' -m ' , ' SMB3 ' ] )
2017-10-06 16:31:20 +03:00
plantestsuite ( " samba3.blackbox.give_owner " , env , [ os . path . join ( samba3srcdir , " script/tests/test_give_owner.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' tmp ' ] )
2013-08-07 18:34:22 +04:00
#
# tar command tests
#
# tar command enabled only if built with libarchive
if have_libarchive :
# Test smbclient/tarmode
2017-06-26 10:40:08 +03:00
plantestsuite ( " samba3.blackbox.smbclient_tarmode.NT1 " , env ,
2013-08-07 18:34:22 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_tarmode.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' ,
2017-06-26 10:40:08 +03:00
' $LOCAL_PATH/tarmode ' , ' $PREFIX ' , smbclient3 , configuration , " -mNT1 " ] )
plantestsuite ( " samba3.blackbox.smbclient_tarmode.SMB3 " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_tarmode.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' ,
' $LOCAL_PATH/tarmode ' , ' $PREFIX ' , smbclient3 , configuration , " -mSMB3 " ] )
2013-08-07 18:34:22 +04:00
# Test suite for new smbclient/tar with libarchive (GSoC 13)
2017-06-26 10:40:08 +03:00
plantestsuite ( " samba3.blackbox.smbclient_tar.NT1 " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_tarmode.pl " ) ,
' -n ' , ' $SERVER ' , ' -i ' , ' $SERVER_IP ' , ' -s ' , ' tmp ' ,
' -u ' , ' $USERNAME ' , ' -p ' , ' $PASSWORD ' , ' -l ' , ' $LOCAL_PATH/tarmode ' ,
' -d ' , ' $PREFIX ' , ' -b ' , smbclient3 ,
' --subunit ' , ' -- ' , configuration , ' -mNT1 ' ] )
plantestsuite ( " samba3.blackbox.smbclient_tar.SMB3 " , env ,
2013-08-07 18:34:22 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_tarmode.pl " ) ,
' -n ' , ' $SERVER ' , ' -i ' , ' $SERVER_IP ' , ' -s ' , ' tmp ' ,
2017-06-27 00:18:30 +03:00
' -u ' , ' $USERNAME ' , ' -p ' , ' $PASSWORD ' , ' -l ' , ' $LOCAL_PATH/tarmode ' ,
2013-08-07 18:34:22 +04:00
' -d ' , ' $PREFIX ' , ' -b ' , smbclient3 ,
2017-06-26 10:40:08 +03:00
' --subunit ' , ' -- ' , configuration , ' -mSMB3 ' ] )
2013-08-05 21:02:47 +04:00
2017-06-22 15:17:07 +03:00
plantestsuite ( " samba3.blackbox.net_usershare " , " fileserver:local " , [ os . path . join ( samba3srcdir , " script/tests/test_net_usershare.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 ] )
2011-02-21 08:01:44 +03:00
#TODO encrypted against member, with member creds, and with DC creds
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net.misc " , " nt4_dc:local " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_misc.sh " ) ,
scriptdir , " $SMB_CONF_PATH " , net , configuration ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net.local.registry " , " nt4_dc:local " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_registry.sh " ) ,
scriptdir , " $SMB_CONF_PATH " , net , configuration ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net.registry.check " , " nt4_dc:local " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_registry_check.sh " ) ,
2012-10-27 17:23:57 +04:00
scriptdir , " $SMB_CONF_PATH " , net , configuration , dbwrap_tool ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net.rpc.registry " , " nt4_dc " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_registry.sh " ) ,
scriptdir , " $SMB_CONF_PATH " , net , configuration , ' rpc ' ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net.local.registry.roundtrip " , " nt4_dc:local " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_registry_roundtrip.sh " ) ,
scriptdir , " $SMB_CONF_PATH " , net , configuration ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net.rpc.registry.roundtrip " , " nt4_dc " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_registry_roundtrip.sh " ) ,
scriptdir , " $SMB_CONF_PATH " , net , configuration , ' rpc ' ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net.local.conf " , " nt4_dc:local " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_conf.sh " ) ,
scriptdir , " $SMB_CONF_PATH " , net , configuration ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net.rpc.conf " , " nt4_dc " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_conf.sh " ) ,
scriptdir , " $SMB_CONF_PATH " , net , configuration , ' rpc ' ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.testparm " , " nt4_dc:local " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_testparm_s3.sh " ) ,
" $LOCAL_PATH " ] )
2011-02-21 08:01:44 +03:00
2011-04-24 12:36:56 +04:00
plantestsuite (
2018-01-05 12:45:41 +03:00
" samba3.pthreadpool " , " none " ,
2011-04-24 12:36:56 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_pthreadpool.sh " ) ] )
2011-02-21 08:01:44 +03:00
2017-12-07 01:10:23 +03:00
if with_pthreadpool and have_ldwrap :
2018-01-05 12:45:41 +03:00
plantestsuite ( " samba3.pthreadpool_cmocka " , " none " ,
2017-12-07 01:10:23 +03:00
[ os . path . join ( bindir ( ) , " pthreadpooltest_cmocka " ) ] )
2015-10-18 23:23:20 +03:00
plantestsuite ( " samba3.async_req " , " nt4_dc " ,
[ os . path . join ( samba3srcdir , " script/tests/test_async_req.sh " ) ] )
2011-02-21 08:01:44 +03:00
#smbtorture4 tests
2017-01-23 19:35:51 +03:00
base = [ " base.attr " , " base.charset " , " base.chkpath " , " base.createx_access " , " base.defer_open " , " base.delaywrite " , " base.delete " ,
2011-02-21 08:01:44 +03:00
" base.deny1 " , " base.deny2 " , " base.deny3 " , " base.denydos " , " base.dir1 " , " base.dir2 " ,
" base.disconnect " , " base.fdpass " , " base.lock " ,
" base.mangle " , " base.negnowait " , " base.ntdeny1 " ,
" base.ntdeny2 " , " base.open " , " base.openattr " , " base.properties " , " base.rename " , " base.rw1 " ,
" base.secleak " , " base.tcon " , " base.tcondev " , " base.trans2 " , " base.unlink " , " base.vuid " ,
" base.xcopy " , " base.samba3error " ]
raw = [ " raw.acls " , " raw.chkpath " , " raw.close " , " raw.composite " , " raw.context " , " raw.eas " ,
2012-09-10 17:52:20 +04:00
" raw.ioctl " , " raw.lock " , " raw.mkdir " , " raw.mux " , " raw.notify " , " raw.open " , " raw.oplock " ,
2011-02-21 08:01:44 +03:00
" raw.qfileinfo " , " raw.qfsinfo " , " raw.read " , " raw.rename " , " raw.search " , " raw.seek " ,
" raw.sfileinfo.base " , " raw.sfileinfo.bug " , " raw.streams " , " raw.unlink " , " raw.write " ,
2012-06-22 14:11:43 +04:00
" raw.samba3hide " , " raw.samba3badpath " , " raw.sfileinfo.rename " , " raw.session " ,
2011-02-21 08:01:44 +03:00
" raw.samba3caseinsensitive " , " raw.samba3posixtimedlock " ,
2011-03-28 10:23:27 +04:00
" raw.samba3rootdirfid " , " raw.sfileinfo.end-of-file " ,
" raw.bench-oplock " , " raw.bench-lock " , " raw.bench-open " , " raw.bench-tcon " ,
2012-09-28 20:39:15 +04:00
" raw.samba3checkfsp " , " raw.samba3closeerr " , " raw.samba3oplocklogoff " , " raw.samba3badnameblob " ]
2011-02-21 08:01:44 +03:00
2012-10-27 01:03:32 +04:00
smb2 = smbtorture4_testsuites ( " smb2. " )
2011-02-21 08:01:44 +03:00
rpc = [ " rpc.authcontext " , " rpc.samba3.bind " , " rpc.samba3.srvsvc " , " rpc.samba3.sharesec " ,
" rpc.samba3.spoolss " , " rpc.samba3.wkssvc " , " rpc.samba3.winreg " ,
" rpc.samba3.getaliasmembership-0 " ,
" rpc.samba3.netlogon " , " rpc.samba3.sessionkey " , " rpc.samba3.getusername " ,
2012-05-28 17:56:14 +04:00
" rpc.samba3.smb1-pipe-name " , " rpc.samba3.smb2-pipe-name " ,
2012-06-22 15:06:41 +04:00
" rpc.samba3.smb-reauth1 " , " rpc.samba3.smb-reauth2 " ,
2011-02-21 08:01:44 +03:00
" rpc.svcctl " , " rpc.ntsvcs " , " rpc.winreg " , " rpc.eventlog " ,
" rpc.spoolss.printserver " , " rpc.spoolss.win " , " rpc.spoolss.notify " , " rpc.spoolss.printer " ,
" rpc.spoolss.driver " ,
2009-11-03 13:48:09 +03:00
" rpc.lsa " , " rpc.lsa-getuser " , " rpc.lsa.lookupsids " , " rpc.lsa.lookupnames " ,
2009-10-30 02:09:25 +03:00
" rpc.lsa.privileges " , " rpc.lsa.secrets " ,
2011-02-21 08:01:44 +03:00
" rpc.samr " , " rpc.samr.users " , " rpc.samr.users.privileges " , " rpc.samr.passwords " ,
2013-11-05 02:43:41 +04:00
" rpc.samr.passwords.pwdlastset " , " rpc.samr.passwords.lockout " , " rpc.samr.passwords.badpwdcount " , " rpc.samr.large-dc " , " rpc.samr.machine.auth " ,
2012-12-11 19:42:53 +04:00
" rpc.samr.priv " , " rpc.samr.passwords.validate " ,
2011-03-04 18:05:35 +03:00
" rpc.netlogon.admin " ,
2015-02-16 10:56:28 +03:00
" rpc.schannel " , " rpc.schannel2 " , " rpc.bench-schannel1 " , " rpc.schannel_anon_setpw " , " rpc.join " , " rpc.bind " ]
2011-02-21 08:01:44 +03:00
2016-06-14 11:08:40 +03:00
local = [ " local.nss " ]
2011-02-21 08:01:44 +03:00
2017-07-10 17:20:23 +03:00
idmap = [ " idmap.rfc2307 " , " idmap.alloc " , " idmap.rid " , " idmap.ad " ]
2013-02-21 23:33:23 +04:00
2011-02-21 08:01:44 +03:00
rap = [ " rap.basic " , " rap.rpc " , " rap.printing " , " rap.sam " ]
unix = [ " unix.info2 " , " unix.whoami " ]
2011-03-11 01:17:54 +03:00
nbt = [ " nbt.dgram " ]
2011-05-11 00:14:34 +04:00
libsmbclient = [ " libsmbclient " ]
2018-01-02 21:09:04 +03:00
vfs = [ " vfs.fruit " , " vfs.acl_xattr " , " vfs.fruit_netatalk " , " vfs.fruit_file_id " , " vfs.fruit_timemachine " ]
2014-07-08 07:47:02 +04:00
tests = base + raw + smb2 + rpc + unix + local + rap + nbt + libsmbclient + idmap + vfs
2011-02-21 08:01:44 +03:00
2012-01-09 02:47:47 +04:00
for t in tests :
if t == " base.delaywrite " :
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD -k yes --maximum-runtime=900 ' )
2017-03-10 15:43:12 +03:00
elif t == " base.createx_access " :
2017-01-23 19:35:51 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD -k yes --maximum-runtime=900 ' )
2012-01-09 02:47:47 +04:00
elif t == " rap.sam " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --option=doscharset=ISO-8859-1 ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --option=doscharset=ISO-8859-1 ' )
2012-08-24 04:01:42 +04:00
elif t == " winbind.pac " :
2015-03-06 01:46:14 +03:00
plansmbtorture4testsuite ( t , " ad_member:local " , ' //$SERVER/tmp --realm=$REALM --machine-pass --option=torture:addc=$DC_SERVER ' , description = " machine account " )
2012-01-09 02:47:47 +04:00
elif t == " unix.whoami " :
2015-03-06 12:01:33 +03:00
plansmbtorture4testsuite ( t , " nt4_member:local " , ' //$SERVER/tmp --machine-pass ' , description = " machine account " )
2015-03-06 01:46:14 +03:00
plansmbtorture4testsuite ( t , " ad_member:local " , ' //$SERVER/tmp --machine-pass --option=torture:addc=$DC_SERVER ' , description = " machine account " )
2015-03-06 12:01:33 +03:00
for env in [ " nt4_dc " , " nt4_member " ] :
2012-10-27 02:06:47 +04:00
plansmbtorture4testsuite ( t , env , ' //$SERVER/tmp -U$DC_USERNAME % $DC_PASSWORD ' )
plansmbtorture4testsuite ( t , env , ' //$SERVER/tmpguest -U % ' , description = ' anonymous connection ' )
2015-03-06 01:46:14 +03:00
for env in [ " ad_dc " , " ad_member " ] :
2012-10-27 02:06:47 +04:00
plansmbtorture4testsuite ( t , env , ' //$SERVER/tmp -U$DC_USERNAME@$REALM % $DC_PASSWORD --option=torture:addc=$DC_SERVER ' )
plansmbtorture4testsuite ( t , env , ' //$SERVER/tmp -k yes -U$DC_USERNAME@$REALM % $DC_PASSWORD --option=torture:addc=$DC_SERVER ' , description = ' kerberos connection ' )
plansmbtorture4testsuite ( t , env , ' //$SERVER/tmpguest -U % --o ption=torture:addc=$DC_SERVER ' , description = ' anonymous connection ' )
2016-10-22 13:33:42 +03:00
plansmbtorture4testsuite ( t , env , ' //$SERVER/tmp -k no -U$DC_USERNAME@$REALM % $DC_PASSWORD ' , description = ' ntlm user@realm ' )
2012-01-09 02:47:47 +04:00
elif t == " raw.samba3posixtimedlock " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmpguest -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER_IP/tmpguest -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/ad_dc/share ' )
2012-01-09 02:47:47 +04:00
elif t == " raw.chkpath " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmpcase -U$USERNAME % $PASSWORD ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER_IP/tmpcase -U$USERNAME % $PASSWORD ' )
2012-05-01 14:11:04 +04:00
elif t == " raw.samba3hide " or t == " raw.samba3checkfsp " or t == " raw.samba3closeerr " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2012-10-27 02:06:47 +04:00
plansmbtorture4testsuite ( t , " simpleserver " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2012-06-22 14:11:43 +04:00
elif t == " raw.session " or t == " smb2.session " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' , ' plain ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmpenc -U$USERNAME % $PASSWORD ' , ' enc ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -k no -U$USERNAME % $PASSWORD ' , ' ntlm ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -k yes -U$USERNAME % $PASSWORD ' , ' krb5 ' )
2012-06-27 13:15:05 +04:00
elif t == " rpc.lsa " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' , ' over ncacn_np ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' ncacn_ip_tcp:$SERVER_IP -U$USERNAME % $PASSWORD ' , ' over ncacn_ip_tcp ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' , ' over ncacn_np ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' ncacn_ip_tcp:$SERVER_IP -U$USERNAME % $PASSWORD ' , ' over ncacn_ip_tcp ' )
2012-12-11 19:42:53 +04:00
elif t == " rpc.samr.passwords.validate " :
2015-12-18 09:10:06 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' ncacn_ip_tcp:$SERVER_IP[seal] -U$USERNAME % $PASSWORD ' , ' over ncacn_ip_tcp ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' ncacn_ip_tcp:$SERVER_IP[seal] -U$USERNAME % $PASSWORD ' , ' over ncacn_ip_tcp ' )
2014-08-28 15:26:44 +04:00
elif t == " smb2.durable-open " or t == " smb2.durable-v2-open " or t == " smb2.replay " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/durable -U$USERNAME % $PASSWORD ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER_IP/durable -U$USERNAME % $PASSWORD ' )
2012-12-20 16:05:55 +04:00
elif t == " base.rw1 " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/valid-users-tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/write-list-tmp -U$USERNAME % $PASSWORD ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2013-02-21 23:33:23 +04:00
elif t == " idmap.rfc2307 " :
2017-04-04 16:28:36 +03:00
plantestsuite ( t , " ad_member_rfc2307 " ,
[ os . path . join ( samba3srcdir ,
" ../nsswitch/tests/test_idmap_rfc2307.sh " ) ,
' $DOMAIN ' ,
' Administrator ' , ' 2000000 ' ,
' Guest ' , ' 2000001 ' ,
' " Domain Users " ' , ' 2000002 ' ,
' DnsAdmins ' , ' 2000003 ' ,
' 2000005 ' , ' 35 ' ,
' ou=idmap,dc=samba,dc=example,dc=com ' ,
' $DC_SERVER ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' ] )
2016-06-12 20:03:11 +03:00
elif t == " idmap.alloc " :
plantestsuite ( t , " ad_member_rfc2307 " , [ os . path . join ( samba3srcdir , " ../nsswitch/tests/test_idmap_nss.sh " ) , ' $DOMAIN ' ] )
2017-04-05 14:27:51 +03:00
elif t == " idmap.rid " :
plantestsuite ( t , " ad_member_idmap_rid " , [ os . path . join ( samba3srcdir , " ../nsswitch/tests/test_idmap_rid.sh " ) , ' $DOMAIN ' , ' 2000000 ' ] )
2017-07-10 17:20:23 +03:00
elif t == " idmap.ad " :
plantestsuite ( t , " ad_member_idmap_ad " , [ os . path . join ( samba3srcdir , " ../nsswitch/tests/test_idmap_ad.sh " ) , ' $DOMAIN ' , ' $DC_SERVER ' , ' $DC_PASSWORD ' ] )
2013-04-14 14:04:45 +04:00
elif t == " raw.acls " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2017-10-23 14:35:49 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/nfs4acl_simple_40 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-simple-40 ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/nfs4acl_special_40 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-special-40 ' )
2017-10-23 15:05:19 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/nfs4acl_simple_41 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-simple-41 ' )
2017-09-07 18:29:03 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/nfs4acl_xdr_40 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-xdr-40 ' )
2017-10-19 15:24:03 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/nfs4acl_xdr_41 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-xdr-41 ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER_IP/tmpcase -U$USERNAME % $PASSWORD ' )
2013-11-18 17:54:27 +04:00
elif t == " smb2.ioctl " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/fs_specific -U$USERNAME % $PASSWORD ' , ' fs_specific ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2013-12-06 02:22:13 +04:00
elif t == " smb2.lock " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/aio -U$USERNAME % $PASSWORD ' , ' aio ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2014-08-08 02:42:05 +04:00
elif t == " raw.read " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/aio -U$USERNAME % $PASSWORD ' , ' aio ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2014-02-11 22:39:04 +04:00
elif t == " raw.search " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2014-02-11 22:39:04 +04:00
# test the dirsort module.
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmpsort -U$USERNAME % $PASSWORD ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2014-07-08 07:47:02 +04:00
elif t == " vfs.fruit " :
2016-12-11 21:06:46 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/vfs_fruit -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share --option=torture:share2=vfs_wo_fruit ' , ' metadata_netatalk ' )
2017-11-15 20:38:41 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/vfs_fruit_metadata_stream -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share --option=torture:share2=vfs_wo_fruit ' , ' metadata_stream ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/vfs_fruit_stream_depot -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share --option=torture:share2=vfs_wo_fruit_stream_depot ' , ' streams_depot ' )
2016-11-16 00:31:20 +03:00
elif t == " vfs.fruit_netatalk " :
2018-03-16 23:55:26 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/vfs_fruit_xattr -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share ' )
2018-01-02 21:09:04 +03:00
elif t == " vfs.fruit_timemachine " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/vfs_fruit_timemachine -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share ' )
2017-03-23 22:32:04 +03:00
elif t == " vfs.fruit_file_id " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/vfs_fruit -U$USERNAME % $PASSWORD ' )
2015-02-16 10:56:28 +03:00
elif t == " rpc.schannel_anon_setpw " :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$ % ' , description = " anonymous password set " )
2015-03-06 11:39:54 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_schannel " , ' //$SERVER_IP/tmp -U$ % ' , description = " anonymous password set (schannel enforced server-side) " )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$ % ' , description = " anonymous password set " )
2015-02-02 18:16:45 +03:00
elif t == " local.nss " :
2016-06-14 11:02:03 +03:00
for env in [ " nt4_dc:local " , " ad_member:local " , " nt4_member:local " , " ad_dc:local " ] :
2015-02-02 18:16:45 +03:00
plansmbtorture4testsuite ( t , env , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2015-08-12 12:06:15 +03:00
elif t == " smb2.change_notify_disabled " :
plansmbtorture4testsuite ( t , " simpleserver " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2015-05-01 21:26:41 +03:00
elif t == " smb2.notify " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --signing=required ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD --signing=required ' )
2016-06-23 20:13:05 +03:00
elif t == " smb2.dosmode " :
plansmbtorture4testsuite ( t , " simpleserver " , ' //$SERVER/dosmode -U$USERNAME % $PASSWORD ' )
2017-03-01 20:13:35 +03:00
elif t == " smb2.kernel-oplocks " :
if have_linux_kernel_oplocks :
2017-11-09 20:59:23 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER/kernel_oplocks -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share ' )
2017-07-13 17:04:50 +03:00
elif t == " smb2.notify-inotify " :
if have_inotify :
plansmbtorture4testsuite ( t , " fileserver " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2016-08-25 17:30:24 +03:00
elif t == " vfs.acl_xattr " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2017-02-24 00:20:39 +03:00
elif t == " smb2.compound_find " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER/compound_find -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2017-04-28 06:31:40 +03:00
elif t == " rpc.samr.users.privileges " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --option=torture:nt4_dc=true ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2017-09-21 02:13:38 +03:00
elif t == " smb2.compound " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/aio -U$USERNAME % $PASSWORD ' , ' aio ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2017-12-06 02:49:48 +03:00
elif t == " rpc.samba3.netlogon " or t == " rpc.samba3.sessionkey " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --option=torture:wksname=samba3rpctest ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD --option=torture:wksname=samba3rpctest ' )
2018-01-10 10:43:44 +03:00
elif t == " libsmbclient " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME %% $PASSWORD --option=torture:replace_smbconf= %s ' % os . path . join ( srcdir ( ) , " testdata/samba3/smb_new.conf " ) )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME %% $PASSWORD --option=torture:replace_smbconf= %s ' % os . path . join ( srcdir ( ) , " testdata/samba3/smb_new.conf " ) )
2012-01-09 02:47:47 +04:00
else :
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2015-03-05 20:08:43 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2012-01-09 02:47:47 +04:00
test = ' rpc.lsa.lookupsids '
auth_options = [ " " , " ntlm " , " spnego " , " spnego,ntlm " ]
2016-09-23 05:30:03 +03:00
signseal_options = [ " " , " ,connect " , " ,packet " , " ,sign " , " ,seal " ]
2012-01-09 02:47:47 +04:00
endianness_options = [ " " , " ,bigendian " ]
2012-01-14 14:17:33 +04:00
for s in signseal_options :
for e in endianness_options :
for a in auth_options :
binding_string = " ncacn_np:$SERVER[ %s %s %s ] " % ( a , s , e )
options = binding_string + " -U$USERNAME % $PASSWORD "
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( test , " nt4_dc " , options , ' over ncacn_np with [ %s %s %s ] ' % ( a , s , e ) )
plantestsuite ( " samba3.blackbox.rpcclient over ncacn_np with [ %s %s %s ] " % ( a , s , e ) , " nt4_dc:local " , [ os . path . join ( samba3srcdir , " script/tests/test_rpcclient.sh " ) ,
2012-01-14 14:17:33 +04:00
" none " , options , configuration ] )
2012-02-14 02:05:21 +04:00
# We should try more combinations in future, but this is all
# the pre-calculated credentials cache supports at the moment
2017-01-25 23:15:44 +03:00
#
# As the ktest env requires SMB3_00 we need to use "smb2" until
# dcerpc client code in smbtorture support autonegotiation
# of any smb dialect.
2012-02-14 02:05:21 +04:00
e = " "
2017-01-25 23:15:44 +03:00
a = " smb2 "
2012-02-14 02:05:21 +04:00
binding_string = " ncacn_np:$SERVER[ %s %s %s ] " % ( a , s , e )
options = binding_string + " -k yes --krb5-ccache=$PREFIX/ktest/krb5_ccache-2 "
2012-10-27 02:06:47 +04:00
plansmbtorture4testsuite ( test , " ktest " , options , ' krb5 with old ccache ncacn_np with [ %s %s %s ] ' % ( a , s , e ) )
2012-01-14 14:17:33 +04:00
2012-02-14 02:05:21 +04:00
options = binding_string + " -k yes --krb5-ccache=$PREFIX/ktest/krb5_ccache-3 "
2012-10-27 02:06:47 +04:00
plansmbtorture4testsuite ( test , " ktest " , options , ' krb5 ncacn_np with [ %s %s %s ] ' % ( a , s , e ) )
2012-01-14 14:17:33 +04:00
2012-02-14 02:05:21 +04:00
auth_options2 = [ " krb5 " , " spnego,krb5 " ]
for a in auth_options2 :
binding_string = " ncacn_np:$SERVER[ %s %s %s ] " % ( a , s , e )
2012-01-14 14:17:33 +04:00
2012-02-14 02:05:21 +04:00
plantestsuite ( " samba3.blackbox.rpcclient krb5 ncacn_np with [ %s %s %s ] " % ( a , s , e ) , " ktest:local " , [ os . path . join ( samba3srcdir , " script/tests/test_rpcclient.sh " ) ,
2012-01-14 14:17:33 +04:00
" $PREFIX/ktest/krb5_ccache-3 " , binding_string , " -k " , configuration ] )
2012-01-03 08:57:40 +04:00
2015-03-06 01:46:14 +03:00
plantestsuite ( " samba3.blackbox.rpcclient_samlogon " , " ad_member:local " , [ os . path . join ( samba3srcdir , " script/tests/test_rpcclient_samlogon.sh " ) ,
2013-11-29 07:51:08 +04:00
" $DC_USERNAME " , " $DC_PASSWORD " , " ncacn_np:$DC_SERVER " , configuration ] )
2015-06-09 20:28:17 +03:00
plantestsuite ( " samba3.blackbox.sharesec " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_sharesec.sh " ) ,
configuration , os . path . join ( bindir ( ) , " sharesec " ) , " tmp " ] )
2014-12-11 18:41:55 +03:00
2017-02-17 02:23:47 +03:00
plantestsuite ( " samba3.blackbox.net_tdb " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_net_tdb.sh " ) ,
smbclient3 , ' $SERVER ' , ' tmp ' , ' $USERNAME ' , ' $PASSWORD ' ,
configuration , ' $LOCAL_PATH ' , ' $LOCK_DIR ' ] )
2017-12-13 22:58:18 +03:00
plantestsuite ( " samba3.blackbox.smbd_error " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbd_error.sh " ) ] )
2017-07-03 19:36:29 +03:00
plantestsuite ( " samba3.blackbox.net_cache_samlogon " , " ad_member:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_net_cache_samlogon.sh " ) ,
' $SERVER ' , ' tmp ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net_dom_join_fail_dc " , " nt4_dc " ,
2014-12-11 18:41:55 +03:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_dom_join_fail_dc.sh " ) ,
" $USERNAME " , " $PASSWORD " , " $SERVER " , " $PREFIX/net_dom_join_fail_dc " ,
configuration ] )
2015-03-06 11:34:11 +03:00
plantestsuite ( " samba3.blackbox.net_rpc_join " , " nt4_dc " ,
2014-10-23 03:38:15 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_rpc_join.sh " ) ,
" $USERNAME " , " $PASSWORD " , " $SERVER " , " $PREFIX/net_rpc_join " ,
configuration ] )
2017-11-17 17:51:36 +03:00
plantestsuite ( " samba3.blackbox.net_rpc_oldjoin " , " nt4_dc:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_net_rpc_oldjoin.sh " ) ,
" $SERVER " , " $PREFIX/net_rpc_oldjoin " ,
" $SMB_CONF_PATH " ] )
2011-04-04 13:13:17 +04:00
2015-06-12 23:52:37 +03:00
plantestsuite ( " samba3.blackbox.rpcclient_srvsvc " , " simpleserver " ,
[ os . path . join ( samba3srcdir , " script/tests/test_rpcclientsrvsvc.sh " ) ,
" $USERNAME " , " $PASSWORD " , " $SERVER " ,
os . path . join ( bindir ( ) , " rpcclient " ) , " tmp " ] )
2016-05-11 20:21:20 +03:00
plantestsuite ( " samba3.blackbox.rpcclient.pw-nt-hash " , " simpleserver " ,
[ os . path . join ( samba3srcdir , " script/tests/test_rpcclient_pw_nt_hash.sh " ) ,
" $USERNAME " , " $PASSWORD " , " $SERVER " ,
os . path . join ( bindir ( ) , " rpcclient " ) ] )
2017-01-18 18:23:40 +03:00
plantestsuite ( " samba3.blackbox.smbclient.encryption_off " , " simpleserver " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_encryption_off.sh " ) ,
" $USERNAME " , " $PASSWORD " , " $SERVER " ,
smbclient3 ] )
2017-06-26 10:48:21 +03:00
# The ktest environment uses:
# server min protocol = SMB3_00
# client max protocol = SMB3
2012-01-27 08:20:17 +04:00
options_list = [ " " , " -e " ]
for options in options_list :
2012-10-27 01:09:45 +04:00
plantestsuite ( " samba3.blackbox.smbclient_krb5 old ccache %s " % options , " ktest:local " ,
2012-02-14 02:05:21 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_krb5.sh " ) ,
2012-10-27 01:09:45 +04:00
" $PREFIX/ktest/krb5_ccache-2 " ,
2012-10-27 02:00:07 +04:00
smbclient3 , " $SERVER " , options , configuration ] )
2012-02-14 02:05:21 +04:00
2017-06-26 10:41:47 +03:00
plantestsuite ( " samba3.blackbox.smbclient_krb5 new ccache %s " % options , " ktest:local " ,
2012-02-14 02:05:21 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_krb5.sh " ) ,
2017-06-26 10:41:47 +03:00
" $PREFIX/ktest/krb5_ccache-3 " ,
2012-10-27 02:00:07 +04:00
smbclient3 , " $SERVER " , options , configuration ] )
2012-02-14 02:05:21 +04:00
2017-06-26 10:55:34 +03:00
plantestsuite ( " samba3.blackbox.smbclient_large_file %s krb5 " % options , " ktest:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_large_file.sh " ) ,
2012-02-14 02:05:21 +04:00
" $PREFIX/ktest/krb5_ccache-3 " ,
2012-10-27 02:00:07 +04:00
smbclient3 , " $SERVER " , " $PREFIX " , options , " -k " + configuration ] )
2012-02-14 02:05:21 +04:00
2017-06-26 10:48:21 +03:00
options_list = [ " -mNT1 " , " -mNT1 -e " , " -mSMB3 " , " -mSMB3 -e " ]
for options in options_list :
2017-06-26 10:55:34 +03:00
plantestsuite ( " samba3.blackbox.smbclient_large_file %s NTLM " % options , " nt4_dc:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_large_file.sh " ) ,
2012-01-27 08:20:17 +04:00
" none " ,
2012-10-27 02:00:07 +04:00
smbclient3 , " $SERVER " , " $PREFIX " , options , " -U$USERNAME % $PASSWORD " + configuration ] )
2012-01-27 08:20:17 +04:00
2016-06-18 20:30:46 +03:00
for alias in [ " foo " , " bar " ] :
plantestsuite ( " samba3.blackbox.smbclient_netbios_aliases [ %s ] " % alias , " ad_member:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_netbios_aliases.sh " ) ,
smbclient3 , alias , " $DC_USERNAME " , " $DC_PASSWORD " , " $PREFIX " , options , configuration ] )
2012-01-09 02:47:47 +04:00
for e in endianness_options :
for a in auth_options :
for s in signseal_options :
binding_string = " ncacn_ip_tcp:$SERVER_IP[ %s %s %s ] " % ( a , s , e )
options = binding_string + " -U$USERNAME % $PASSWORD "
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( test , " nt4_dc " , options , ' over ncacn_ip_tcp with [ %s %s %s ] ' % ( a , s , e ) )
2011-07-11 19:02:36 +04:00
2015-03-06 11:34:11 +03:00
plansmbtorture4testsuite ( ' rpc.epmapper ' , ' nt4_dc:local ' , ' ncalrpc: -U$USERNAME % $PASSWORD ' , ' over ncalrpc ' )
2013-05-15 02:45:17 +04:00
plansmbtorture4testsuite ( ' rpc.fsrvp ' , ' nt4_dc:local ' , ' ncacn_np:$SERVER_IP[/pipe/FssagentRpc] -U$USERNAME % $PASSWORD ' , ' over ncacn_np ' )