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.
2018-07-30 09:21:38 +03:00
import os
import sys
2020-12-15 09:20:55 +03:00
import re
2022-03-02 18:10:28 +03:00
import platform
2011-02-21 08:01:44 +03:00
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
2018-10-11 06:51:23 +03:00
from selftesthelpers import bindir , srcdir , scriptdir , binpath
from selftesthelpers import plantestsuite , samba3srcdir
2022-08-26 15:00:28 +03:00
from selftesthelpers import planpythontestsuite
2018-11-23 12:18:44 +03:00
from selftesthelpers import smbtorture3 , configuration , smbclient3 , smbtorture4
2018-10-11 06:51:23 +03:00
from selftesthelpers import net , wbinfo , dbwrap_tool , rpcclient , python
from selftesthelpers import smbget , smbcacls , smbcquotas , ntlm_auth3
from selftesthelpers import valgrindify , smbtorture4_testsuites
from selftesthelpers import smbtorture4_options
2019-01-24 21:15:56 +03:00
from selftesthelpers import smbcontrol
2019-03-13 14:00:27 +03:00
from selftesthelpers import smbstatus
2012-10-27 02:06:47 +04:00
smbtorture4_options . extend ( [
2018-07-30 09:14:13 +03:00
' --option=torture:sharedelay=100000 ' ,
2012-10-27 02:06:47 +04:00
' --option=torture:writetimeupdatedelay=500000 ' ,
2018-07-30 09:14:37 +03:00
] )
2012-02-02 15:02:00 +04:00
2018-07-30 09:20:39 +03: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
2020-12-15 09:20:55 +03:00
def compare_versions ( version1 , version2 ) :
for i in range ( max ( len ( version1 ) , len ( version2 ) ) ) :
v1 = version1 [ i ] if i < len ( version1 ) else 0
v2 = version2 [ i ] if i < len ( version2 ) else 0
if v1 > v2 :
return 1
elif v1 < v2 :
return - 1
return 0
2018-07-30 09:21:29 +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 : ] ) )
2018-07-30 09:16:12 +03:00
for x in map ( lambda line : line . strip ( ) . split ( ' ' ) [ 1 : ] ,
filter ( lambda line : ( line [ 0 : 7 ] == ' #define ' ) and ( len ( line . split ( ' ' ) ) > 2 ) , lines ) ) )
2017-03-08 09:18:36 +03:00
finally :
f . close ( )
2022-03-02 18:10:28 +03:00
linux_kernel_version = None
if platform . system ( ) == ' Linux ' :
m = re . search ( r ' ( \ d+).( \ d+).( \ d+) ' , platform . release ( ) )
2020-12-15 09:20:55 +03:00
if m :
linux_kernel_version = [ int ( m . group ( 1 ) ) , int ( m . group ( 2 ) ) , int ( m . group ( 3 ) ) ]
have_linux_kernel_oplocks = False
if " HAVE_KERNEL_OPLOCKS_LINUX " in config_hash :
if compare_versions ( linux_kernel_version , [ 5 , 3 , 1 ] ) > = 0 :
have_linux_kernel_oplocks = True
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 )
2023-01-25 12:46:03 +03:00
have_smb3_unix_extensions = ( " HAVE_SMB3_UNIX_EXTENSIONS " in config_hash )
2020-08-19 21:54:43 +03:00
def is_module_enabled ( module ) :
if module in config_hash [ " STRING_SHARED_MODULES " ] :
return True
if module in config_hash [ " STRING_STATIC_MODULES " ] :
return True
return False
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
2020-03-03 20:23:04 +03:00
fileserver_tests = [
" FDPASS " , " LOCK1 " , " LOCK2 " , " LOCK3 " , " LOCK4 " , " LOCK5 " , " LOCK6 " , " LOCK7 " ,
2019-08-15 15:31:54 +03:00
" LOCK9A " , " LOCK9B " ,
2019-05-30 11:38:41 +03:00
" LOCK10 " ,
2019-06-03 12:00:25 +03:00
" LOCK11 " ,
2019-06-19 18:50:54 +03:00
" LOCK12 " ,
2019-06-20 11:46:21 +03:00
" LOCK13 " ,
2018-07-30 09:16:12 +03:00
" UNLINK " , " BROWSE " , " ATTR " , " TRANS2 " , " TORTURE " ,
" OPLOCK1 " , " OPLOCK2 " , " OPLOCK4 " , " STREAMERROR " ,
" DIR " , " DIR1 " , " DIR-CREATETIME " , " TCON " , " TCONDEV " , " RW1 " , " RW2 " , " RW3 " , " LARGE_READX " , " RW-SIGNING " ,
2021-12-01 23:18:35 +03:00
" OPEN " , " XCOPY " , " RENAME " , " DELETE " , " DELETE-LN " , " PROPERTIES " , " W2K " ,
2018-07-30 09:16:12 +03:00
" TCON2 " , " IOCTL " , " CHKPATH " , " FDSESS " , " CHAIN1 " , " CHAIN2 " , " OWNER-RIGHTS " ,
" CHAIN3 " , " PIDHIGH " , " CLI_SPLICE " ,
2020-03-10 21:51:09 +03:00
" UID-REGRESSION-TEST " , " SHORTNAME-TEST " ,
2018-07-30 09:16:12 +03:00
" CASE-INSENSITIVE-CREATE " , " SMB2-BASIC " , " NTTRANS-FSCTL " , " SMB2-NEGPROT " ,
" SMB2-SESSION-REAUTH " , " SMB2-SESSION-RECONNECT " , " SMB2-FTRUNCATE " ,
" SMB2-ANONYMOUS " , " SMB2-DIR-FSYNC " ,
2019-09-26 22:36:18 +03:00
" SMB2-PATH-SLASH " ,
2020-05-22 16:24:06 +03:00
" SMB2-QUOTA1 " ,
2018-07-30 09:16:12 +03:00
" CLEANUP1 " ,
" CLEANUP2 " ,
" CLEANUP4 " ,
2019-08-01 15:47:41 +03:00
" DELETE-STREAM " ,
2020-10-05 20:29:16 +03:00
" BAD-NBT-SESSION " ,
2020-10-05 20:52:46 +03:00
" SMB1-WILD-MANGLE-UNLINK " ,
" SMB1-WILD-MANGLE-RENAME " ]
2011-02-21 08:01:44 +03:00
2020-03-03 20:23:04 +03:00
for t in fileserver_tests :
fileserver_env = " fileserver_smb1 "
if " SMB2 " in t :
fileserver_env = " fileserver "
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % t , fileserver_env , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/tmp ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2019-12-13 16:43:32 +03:00
plantestsuite ( " samba3.smbtorture_s3.crypt_client. %s " % t , " nt4_dc_smb1 " , [ 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
2020-03-03 20:25:30 +03:00
plantestsuite ( " samba3.smbtorture_s3.crypt_server. %s " % t , " nt4_dc_smb1 " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/tmpenc ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2018-07-12 22:15:12 +03:00
if t == " CLI_SPLICE " :
# We must test this against the SMB1 fallback.
2020-03-03 20:23:04 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % t , " fileserver_smb1 " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/tmp ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " , " -mNT1 " ] )
2018-10-18 15:00:13 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain. %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 "
2018-10-18 15:00:13 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % t , " ad_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER/tmp ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2017-12-21 19:24:01 +03:00
2020-11-26 11:56:50 +03:00
if have_linux_kernel_oplocks :
t = " OPLOCK5 "
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % t ,
" fileserver_smb1 " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
t ,
' //$SERVER/tmp ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" " ,
" -l $LOCAL_PATH " ,
" -mNT1 " ] )
2016-12-06 01:34:18 +03:00
#
# RENAME-ACCESS needs to run against a special share - acl_xattr_ign_sysacl_windows
#
2019-12-13 21:27:25 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % " RENAME-ACCESS " , " nt4_dc_smb1 " , [ 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 " ] )
2019-12-13 16:43:32 +03:00
plantestsuite ( " samba3.smbtorture_s3.crypt_client. %s " % " RENAME-ACCESS " , " nt4_dc_smb1 " , [ 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 :
2018-10-18 15:00:13 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain. %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
2019-12-13 17:15:12 +03:00
env = " nt4_dc_smb1 "
2016-12-15 15:05:50 +03:00
tests = [ " MANGLE-ILLEGAL " ]
for t in tests :
2018-10-18 15:00:13 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % t , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/mangle_illegal ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2016-12-15 15:05:50 +03:00
2018-04-20 12:27:30 +03:00
tests = [ " RW1 " , " RW2 " , " RW3 " , " SMB2-BASIC " ]
2012-08-21 13:22:54 +04:00
for t in tests :
2019-12-16 19:51:22 +03:00
if t == " SMB2-BASIC " :
env = " simpleserver "
else :
env = " fileserver_smb1 "
plantestsuite ( " samba3.smbtorture_s3.vfs_aio_pthread( %s ). %s " % ( env , t ) , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/vfs_aio_pthread ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
plantestsuite ( " samba3.smbtorture_s3.vfs_aio_fork( %s ). %s " % ( env , t ) , env , [ 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
2022-11-07 16:56:28 +03:00
plantestsuite ( " samba3.smbtorture_s3.hidenewfiles " ,
" simpleserver " ,
2018-11-08 15:27:58 +03:00
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' hide-new-files-timeout ' ,
' //$SERVER_IP/hidenewfiles ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" " ,
" -l $LOCAL_PATH " ] )
2022-11-07 16:57:04 +03:00
plantestsuite ( " samba3.smbtorture_s3.hidenewfiles_showdirs " ,
" simpleserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' hide-new-files-timeout-showdirs ' ,
' //$SERVER_IP/hidenewfiles ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" " ,
" -l $LOCAL_PATH " ] )
2018-11-08 15:27:58 +03:00
2020-06-01 23:45:28 +03:00
#
# MSDFS attribute tests.
#
plantestsuite ( " samba3.smbtorture_s3.smb2.MSDFS-ATTRIBUTE " ,
" fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' MSDFS-ATTRIBUTE ' ,
' //$SERVER_IP/msdfs-share ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" -mSMB2 " ,
" -f msdfs-src1 " ] )
plantestsuite ( " samba3.smbtorture_s3.smb1.MSDFS-ATTRIBUTE " ,
" fileserver_smb1 " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' MSDFS-ATTRIBUTE ' ,
' //$SERVER_IP/msdfs-share ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" -mNT1 " ,
" -f msdfs-src1 " ] )
2022-08-30 00:37:35 +03:00
#
# SMB2-DFS-PATHS needs to run against a special share msdfs-pathname-share
# This is an empty DFS share with no links, used merely to test
# incoming DFS pathnames and how they map to local paths.
#
plantestsuite ( " samba3.smbtorture_s3.smb2.SMB2-DFS-PATHS " ,
" fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB2-DFS-PATHS ' ,
' //$SERVER_IP/msdfs-pathname-share ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" -mSMB2 " ] )
2023-01-04 04:53:17 +03:00
# BUG: https://bugzilla.samba.org/show_bug.cgi?id=15277
# MacOSX clients send a leading '\\' character for DFS paths.
#
plantestsuite ( " samba3.smbtorture_s3.smb2.SMB2-DFS-FILENAME-LEADING-BACKSLASH " ,
" fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB2-DFS-FILENAME-LEADING-BACKSLASH ' ,
' //$SERVER_IP/msdfs-pathname-share ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" -mSMB2 " ] )
2022-09-09 02:42:26 +03:00
#
# SMB2-NON-DFS-SHARE needs to run against a special share non-msdfs-pathname-share
# This is an empty non-DFS share with no links, used merely to test
# incoming DFS pathnames and how they map to local paths. We are testing
# what happens if we set the FLAGS2_DFS_PATHNAMES and send DFS paths
# on a non-DFS share.
#
plantestsuite ( " samba3.smbtorture_s3.smb2.SMB2-NON-DFS-SHARE " ,
" fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB2-NON-DFS-SHARE ' ,
' //$SERVER_IP/non-msdfs-pathname-share ' ,
' $USERNAME ' ,
2022-09-27 20:37:41 +03:00
' $PASSWORD ' ,
smbtorture3 ,
" -mSMB2 " ] )
#
# SMB2-DFS-SHARE-NON-DFS-PATH needs to run against a special share msdfs-pathname-share
# This is an empty DFS share with no links, used merely to test
# incoming non-DFS pathnames and how they map to local paths.
#
plantestsuite ( " samba3.smbtorture_s3.smb2.SMB2-DFS-SHARE-NON-DFS-PATH " ,
" fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB2-DFS-SHARE-NON-DFS-PATH ' ,
' //$SERVER_IP/msdfs-pathname-share ' ,
' $USERNAME ' ,
2022-09-09 02:42:26 +03:00
' $PASSWORD ' ,
smbtorture3 ,
" -mSMB2 " ] )
2022-08-31 01:26:12 +03:00
#
# SMB1-DFS-PATHS needs to run against a special share msdfs-pathname-share
# This is an empty DFS share with no links, used merely to test
# incoming DFS pathnames and how they map to local paths.
#
plantestsuite ( " samba3.smbtorture_s3.smb1.SMB1-DFS-PATHS " ,
2023-03-30 23:19:22 +03:00
" fileserver_smb1 " ,
2022-08-31 01:26:12 +03:00
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB1-DFS-PATHS ' ,
' //$SERVER_IP/msdfs-pathname-share ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" -mNT1 " ] )
#
# SMB1-DFS-SEARCH-PATHS needs to run against a special share msdfs-pathname-share
# This is an empty DFS share with no links, used merely to test
# incoming DFS pathnames and how they map to local paths.
#
plantestsuite ( " samba3.smbtorture_s3.smb1.SMB1-DFS-SEARCH-PATHS " ,
2023-03-30 23:19:22 +03:00
" fileserver_smb1 " ,
2022-08-31 01:26:12 +03:00
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB1-DFS-SEARCH-PATHS ' ,
' //$SERVER_IP/msdfs-pathname-share ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" -mNT1 " ] )
2022-09-07 03:25:18 +03:00
#
# SMB1-DFS-OPERATIONS needs to run against a special share msdfs-pathname-share
# This is an empty DFS share with no links, used merely to test
# incoming DFS pathnames and how they map to local paths.
#
plantestsuite ( " samba3.smbtorture_s3.smb1.SMB1-DFS-OPERATIONS " ,
2023-03-30 23:19:22 +03:00
" fileserver_smb1 " ,
2022-09-07 03:25:18 +03:00
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB1-DFS-OPERATIONS ' ,
' //$SERVER_IP/msdfs-pathname-share ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" -mNT1 " ] )
2021-03-26 01:43:16 +03:00
#
# SMB2-STREAM-ACL needs to run against a special share - vfs_wo_fruit
#
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % " SMB2-STREAM-ACL " ,
" fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB2-STREAM-ACL ' ,
' //$SERVER_IP/vfs_wo_fruit ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" " ,
" -l $LOCAL_PATH " ] )
2021-07-15 01:29:01 +03:00
#
# SMB2-LIST-DIR-ASYNC needs to run against a special share vfs_aio_pthread_async_dosmode_default1
#
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % " SMB2-LIST-DIR-ASYNC " ,
" simpleserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB2-LIST-DIR-ASYNC ' ,
' //$SERVER_IP/vfs_aio_pthread_async_dosmode_default1 ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" " ,
" -l $LOCAL_PATH " ] )
2021-11-04 02:50:10 +03:00
#
# SMB2-DEL-ON-CLOSE-NONEMPTY needs to run against a special fileserver share veto_files_delete
#
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % " SMB2-DEL-ON-CLOSE-NONEMPTY " ,
" fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB2-DEL-ON-CLOSE-NONEMPTY ' ,
' //$SERVER_IP/veto_files_delete ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" " ,
" -l $LOCAL_PATH " ] )
2022-03-21 23:45:25 +03:00
#
# SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-YES needs to run against a special fileserver share delete_yes_unwrite
#
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % " SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-YES " ,
" fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-YES ' ,
' //$SERVER_IP/delete_yes_unwrite ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" " ,
" -l $LOCAL_PATH " ] )
2021-07-15 01:29:01 +03:00
2022-03-21 23:45:25 +03:00
#
# SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO needs to run against a special fileserver share delete_no_unwrite
#
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % " SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO " ,
" fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
' SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO ' ,
' //$SERVER_IP/delete_no_unwrite ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbtorture3 ,
" " ,
" -l $LOCAL_PATH " ] )
2021-07-15 01:29:01 +03:00
2018-07-26 19:13:44 +03:00
shares = [
" vfs_aio_pthread_async_dosmode_default1 " ,
2022-01-24 18:54:29 +03:00
" vfs_aio_pthread_async_dosmode_default2 "
2018-07-26 19:13:44 +03:00
]
for s in shares :
plantestsuite ( " samba3.smbtorture_s3. %s (simpleserver).SMB2-BASIC " % s , " simpleserver " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , ' SMB2-BASIC ' , ' //$SERVER_IP/ ' + s , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
t = " smb2.compound_find "
2020-03-10 21:51:09 +03:00
plansmbtorture4testsuite ( t , " simpleserver " , " // %s / %s %s " % ( ' $SERVER_IP ' , s , ' -U$USERNAME % $PASSWORD ' ) , description = s )
2018-07-26 19:13:44 +03:00
2016-07-19 19:24:38 +03:00
posix_tests = [ " POSIX " , " POSIX-APPEND " , " POSIX-SYMLINK-ACL " , " POSIX-SYMLINK-EA " , " POSIX-OFD-LOCK " ,
2019-06-15 07:55:09 +03:00
" POSIX-STREAM-DELETE " , " WINDOWS-BAD-SYMLINK " , " POSIX-MKDIR " ,
" POSIX-BLOCKING-LOCK " ,
2019-06-19 21:32:18 +03:00
" POSIX-ACL-OPLOCK " ,
2019-06-25 23:39:59 +03:00
" POSIX-ACL-SHAREROOT " ,
2020-10-15 16:11:20 +03:00
" POSIX-LS-WILDCARD " ,
2020-10-15 16:24:11 +03:00
" POSIX-LS-SINGLE " ,
2020-10-15 16:32:34 +03:00
" POSIX-READLINK " ,
2020-10-15 16:36:42 +03:00
" POSIX-STAT " ,
2021-04-06 21:46:23 +03:00
" POSIX-SYMLINK-PARENT " ,
2021-04-20 02:25:51 +03:00
" POSIX-SYMLINK-CHMOD " ,
2021-05-18 22:11:46 +03:00
" POSIX-DIR-DEFAULT-ACL " ,
2021-05-21 21:14:19 +03:00
" POSIX-SYMLINK-RENAME " ,
2021-06-15 02:34:14 +03:00
" POSIX-SYMLINK-GETPATHINFO " ,
2021-06-16 01:11:20 +03:00
" POSIX-SYMLINK-SETPATHINFO " ,
2019-06-15 07:55:09 +03:00
]
2012-06-05 07:44:56 +04:00
for t in posix_tests :
2019-12-13 17:10:50 +03:00
plantestsuite ( " samba3.smbtorture_s3.plain. %s " % t , " nt4_dc_smb1 " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/posix_share ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " " , " -l $LOCAL_PATH " ] )
2019-12-13 17:07:54 +03:00
plantestsuite ( " samba3.smbtorture_s3.crypt. %s " % t , " nt4_dc_smb1 " , [ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) , t , ' //$SERVER_IP/posix_share ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , " -e " , " -l $LOCAL_PATH " ] )
2012-06-05 07:44:56 +04: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 " ,
2021-06-19 00:54:27 +03:00
" LOCAL-STR-MATCH-MSWILD " ,
2021-06-11 22:03:42 +03:00
" LOCAL-STR-MATCH-REGEX-SUB1 " ,
2012-10-27 01:56:30 +04:00
" 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 " ,
2019-10-15 11:55:25 +03:00
" LOCAL-DBWRAP-WATCH3 " ,
2019-11-16 15:20:14 +03:00
" LOCAL-DBWRAP-WATCH4 " ,
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 " ,
2019-12-22 16:05:17 +03:00
" LOCAL-G-LOCK4A " ,
2017-05-25 11:48:15 +03:00
" LOCAL-G-LOCK5 " ,
2017-12-20 11:44:40 +03:00
" LOCAL-G-LOCK6 " ,
2019-11-20 18:03:37 +03:00
" LOCAL-G-LOCK7 " ,
2019-10-31 13:45:36 +03:00
" LOCAL-G-LOCK8 " ,
2017-08-03 17:26:25 +03:00
" LOCAL-NAMEMAP-CACHE1 " ,
2019-02-27 16:54:12 +03:00
" LOCAL-IDMAP-CACHE1 " ,
2023-03-29 16:07:19 +03:00
" LOCAL-TDB-VALIDATE " ,
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 ] )
2022-02-03 17:25:11 +03:00
plantestsuite (
" samba.vfstest.full_audit_segfault " ,
" nt4_dc:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/full_audit_segfault/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 " ] )
2019-12-20 15:49:08 +03:00
plantestsuite ( " samba3.blackbox.smbclient_basic.NT1 " , " nt4_dc_smb1 " , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_basic.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , smbclient3 , configuration , " -mNT1 " ] )
2017-06-26 11:52:04 +03:00
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 " ] )
2022-04-05 15:04:52 +03:00
plantestsuite ( " samba3.blackbox.smbclient_usernamemap " , " ad_member_idmap_nss:local " , [ os . path . join ( samba3srcdir , " script/tests/test_usernamemap.sh " ) , ' $SERVER ' , smbclient3 ] )
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 " ] :
2019-12-13 13:28:40 +03:00
if " NT1 " in options or " LANMAN2 " in options :
env = " nt4_dc_smb1_done "
else :
env = " nt4_dc "
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_auth.plain. %s " % ( 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
2023-04-05 09:57:49 +03:00
for env in [ " nt4_dc " , " nt4_member " , " ad_member " , " ad_dc " , " s4member " , " fl2000dc " ] :
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_machine_auth.plain " , " %s :local " % env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_machine_auth.sh " ) , ' $SERVER ' , smbclient3 , configuration ] )
2020-01-07 13:28:39 +03:00
smb1_env = env
2020-04-03 16:14:58 +03:00
if smb1_env == " ad_dc " or smb1_env == " nt4_dc " :
2020-01-07 13:28:39 +03:00
smb1_env = smb1_env + " _smb1_done "
plantestsuite ( " samba3.blackbox.smbclient_ntlm.plain NT1 " , smb1_env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_ntlm.sh " ) , ' $SERVER ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , " never " , smbclient3 , " NT1 " , configuration ] )
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_ntlm.plain SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_ntlm.sh " ) , ' $SERVER ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , " never " , smbclient3 , " SMB3 " , configuration ] )
2012-08-27 15:02:28 +04:00
2020-04-22 14:53:33 +03:00
plantestsuite ( " samba3.blackbox.smbclient_log_basename " , " ad_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_log_basename.sh " ) , ' $SERVER ' , smbclient3 , ' $PREFIX ' , configuration ] )
2018-03-16 19:25:12 +03:00
for options in [ " --option=clientntlmv2auth=no " , " --option=clientusespnego=no --option=clientntlmv2auth=no " , " --option=clientusespnego=no --option=clientntlmv2auth=no -mNT1 " , " " ] :
2019-12-19 20:43:10 +03:00
# don't attempt to run SMB1 tests in nt4_member or ad_member
# as these test envs don't support SMB1, use nt4_dc instead
environs = [ " nt4_member " , " ad_member " ]
if " NT1 " in options or " LANMAN2 " in options :
environs = [ " nt4_dc_smb1_done " ]
for env in environs :
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_auth.plain. %s " % ( 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 .member_creds " % ( 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
2020-02-04 13:32:05 +03:00
for env in [ " nt4_member " , " ad_member " ] :
plantestsuite ( " samba3.blackbox.smbclient_auth.empty_domain.domain_creds " , 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.empty_domain.member_creds " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' /$USERNAME ' , ' $PASSWORD ' , smbclient3 , configuration , options ] )
plantestsuite ( " samba3.blackbox.smbclient_auth.dot_domain.domain_creds " , 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.dot_domain.member_creds " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' ./$USERNAME ' , ' $PASSWORD ' , smbclient3 , configuration , options ] )
plantestsuite ( " samba3.blackbox.smbclient_auth.upn.domain_creds " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME@$REALM ' , ' $DC_PASSWORD ' , smbclient3 , configuration , options ] )
plantestsuite ( " samba3.blackbox.smbclient_auth.upn.member_creds " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME@$SERVER ' , ' $PASSWORD ' , smbclient3 , configuration , options ] )
2019-12-09 14:12:22 +03:00
env = " ad_dc_smb1 "
2017-07-11 11:58:11 +03:00
plantestsuite ( " samba3.blackbox.smbspool " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbspool.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' , env ] )
2021-03-11 16:46:28 +03:00
plantestsuite ( " samba3.blackbox.printing_var_exp " , " nt4_dc " , [ os . path . join ( samba3srcdir , " script/tests/test_printing_var_exp.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' ] )
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 ' ] )
2018-07-30 09:18:03 +03:00
env = " nt4_dc "
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_auth.plain.ipv6 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_auth.sh " ) , ' $SERVER ' , ' $SERVER_IPV6 ' , ' $SERVER/$USERNAME ' , ' $PASSWORD ' , smbclient3 , configuration ] )
2016-03-08 17:53:21 +03:00
2015-03-06 12:01:33 +03:00
for env in [ " nt4_member " , " ad_member " ] :
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.net_cred_change " , " %s :local " % env , [ os . path . join ( samba3srcdir , " script/tests/test_net_cred_change.sh " ) , configuration ] )
2013-12-02 04:20:39 +04:00
2022-11-23 16:14:45 +03:00
plantestsuite ( " samba3.blackbox.net_cred_change_at " , " ad_member_s3_join:local " , [ os . path . join ( samba3srcdir , " script/tests/test_net_cred_change_at.sh " ) , configuration , ' $DC_SERVER ' ] )
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 "
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.wbinfo_simple. %s " % t , " %s :local " % env , [ os . path . join ( srcdir ( ) , " nsswitch/tests/test_wbinfo_simple.sh " ) , t ] )
2018-02-28 23:10:43 +03:00
plantestsuite ( " samba3.wbinfo_name_lookup " , env ,
2018-07-30 09:16:43 +03:00
[ os . path . join ( srcdir ( ) ,
2018-09-03 16:05:48 +03:00
" nsswitch/tests/test_wbinfo_name_lookup.sh " ) ,
' $DOMAIN ' , ' $REALM ' , ' $DC_USERNAME ' ] )
2018-04-20 12:20:44 +03:00
2020-01-15 18:29:24 +03:00
env = " ad_member "
plantestsuite ( " samba3.wbinfo_user_info_cached " , env ,
[ os . path . join ( srcdir ( ) ,
" nsswitch/tests/test_wbinfo_user_info_cached.sh " ) ,
' $DOMAIN ' , ' $REALM ' , ' joe ' , ' Secret007 ' , ' " Samba Users " ' , env ] )
plantestsuite ( " samba3.wbinfo_user_info_cached.trustdom " , env ,
[ os . path . join ( srcdir ( ) ,
" nsswitch/tests/test_wbinfo_user_info_cached.sh " ) ,
' $TRUST_F_BOTH_DOMAIN ' , ' $TRUST_F_BOTH_REALM ' , ' joe ' , ' Secret007 ' , ' " Samba Users " ' , env ] )
2018-04-20 12:20:44 +03:00
env = " ad_member:local "
plantestsuite ( " samba3.wbinfo_user_info " , env ,
2018-07-30 09:16:43 +03:00
[ os . path . join ( srcdir ( ) ,
2018-09-03 16:05:48 +03:00
" nsswitch/tests/test_wbinfo_user_info.sh " ) ,
2018-11-07 13:35:59 +03:00
' $DOMAIN ' , ' $REALM ' , ' $DOMAIN ' , ' alice ' , ' alice ' , ' jane ' , ' jane.doe ' , env ] )
2018-04-20 12:20:44 +03:00
2023-01-25 04:01:22 +03:00
plantestsuite ( " samba3.winbind_call_depth_trace " , env ,
[ os . path . join ( srcdir ( ) ,
" source3/script/tests/test_winbind_call_depth_trace.sh " ) ,
smbcontrol , configuration , ' $PREFIX ' , env ] )
2018-04-20 12:20:44 +03:00
env = " fl2008r2dc:local "
plantestsuite ( " samba3.wbinfo_user_info " , env ,
2018-07-30 09:16:43 +03:00
[ os . path . join ( srcdir ( ) ,
2018-09-03 16:05:48 +03:00
" nsswitch/tests/test_wbinfo_user_info.sh " ) ,
2018-11-07 13:35:59 +03:00
' $TRUST_DOMAIN ' , ' $TRUST_REALM ' , ' $DOMAIN ' , ' alice ' , ' alice ' , ' jane ' , ' jane.doe ' , env ] )
2018-04-20 12:20:44 +03:00
2018-12-21 13:49:33 +03:00
env = " nt4_member:local "
plantestsuite ( " samba3.wbinfo_sids_to_xids " , env ,
[ os . path . join ( srcdir ( ) ,
" nsswitch/tests/test_wbinfo_sids_to_xids.sh " ) ] )
2020-07-08 16:00:49 +03:00
plantestsuite (
" samba.wbinfo_lookuprids_cache " ,
env ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_wbinfo_lookuprids_cache.sh " ) ] )
2018-12-21 13:49:33 +03:00
2018-04-20 12:20:44 +03:00
env = " ad_member "
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
2012-09-26 04:40:17 +04:00
for env in [ " maptoguest " , " simpleserver " ] :
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_auth.plain.local_creds " , 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 "
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_auth.plain.bad_username " , 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 " ] )
plantestsuite ( " samba3.blackbox.smbclient_ntlm.plain.NT1 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_ntlm.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , " baduser " , smbclient3 , " NT1 " , configuration ] )
2019-12-09 13:12:17 +03:00
plantestsuite ( " samba3.blackbox.smbclient_ntlm.plain.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbclient_ntlm.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , " baduser " , smbclient3 , " SMB3 " , configuration ] )
2011-07-22 07:00:21 +04:00
2011-02-21 08:01:44 +03:00
# plain
2019-12-13 14:28:06 +03:00
env = " nt4_dc_smb1_done "
2019-12-13 14:04:51 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.plain " , 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 " ] )
2019-12-13 14:28:06 +03:00
env = " nt4_dc "
2019-12-13 14:04:51 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.plain " , 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 " ] :
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.plain.member_creds " , 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 " ] )
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.plain.member_creds " , 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
2019-12-13 14:57:40 +03:00
env = " nt4_dc_smb1_done "
2020-08-18 17:58:19 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.sign " , 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 " , " --client-protection=sign " ] )
2019-12-13 14:57:40 +03:00
env = " nt4_dc "
2020-08-18 17:58:19 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.sign " , 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 " , " --client-protection=sign " ] )
2011-02-21 08:01:44 +03:00
2015-03-06 12:01:33 +03:00
for env in [ " nt4_member " , " ad_member " ] :
2020-08-18 17:58:19 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.sign.member_creds " , 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 " , " --client-protection=sign " ] )
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.sign.member_creds " , 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 " , " --client-protection=sign " ] )
2011-02-21 08:01:44 +03:00
2019-12-13 13:49:51 +03:00
env = " nt4_dc_smb1_done "
2019-12-13 13:44:51 +03:00
# encrypted
2020-08-18 17:58:19 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.NT1.crypt " , 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 " , " --client-protection=encrypt " ] )
2019-12-13 13:49:51 +03:00
env = " nt4_dc "
2020-08-18 17:58:19 +03:00
plantestsuite ( " samba3.blackbox.smbclient_s3.SMB3.crypt " , 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 " , " --client-protection=encrypt " ] )
2011-02-21 08:01:44 +03:00
2015-07-01 15:09:32 +03:00
for env in [ " fileserver " ] :
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.preserve_case.NT1 " , env + " _smb1_done " , [ os . path . join ( samba3srcdir , " script/tests/test_preserve_case.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , " NT1 " ] )
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.preserve_case.SMB2+ " , env , [ os . path . join ( samba3srcdir , " script/tests/test_preserve_case.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , ' " SMB2 SMB3 " ' ] )
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.dfree_command.NT1 " , env + " _smb1_done " , [ os . path . join ( samba3srcdir , " script/tests/test_dfree_command.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , " NT1 " ] )
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.dfree_command.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_dfree_command.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , " SMB3 " ] )
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.dfree_quota.NT1 " , env + " _smb1_done " , [ os . path . join ( samba3srcdir , " script/tests/test_dfree_quota.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbclient3 , smbcquotas , smbcacls , " NT1 " ] )
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.dfree_quota.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_dfree_quota.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbclient3 , smbcquotas , smbcacls , " SMB3 " ] )
plantestsuite ( " samba3.blackbox.smbcquotas " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbcquota.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbcquotas ] )
plantestsuite ( " samba3.blackbox.valid_users " , env , [ os . path . join ( samba3srcdir , " script/tests/test_valid_users.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 ] )
2020-02-12 18:30:01 +03:00
plantestsuite ( " samba3.blackbox.force_create_mode " , env , [ os . path . join ( samba3srcdir , " script/tests/test_force_create_mode.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , env , smbclient3 ] )
2020-02-13 15:48:17 +03:00
plantestsuite ( " samba3.blackbox.dropbox " , env , [ os . path . join ( samba3srcdir , " script/tests/test_dropbox.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' gooduser ' , ' $PASSWORD ' , ' $PREFIX ' , env , smbclient3 ] )
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.offline " , env , [ os . path . join ( samba3srcdir , " script/tests/test_offline.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/offline ' , smbclient3 ] )
2019-12-06 20:13:27 +03:00
plantestsuite ( " samba3.blackbox.shadow_copy2.NT1 " , env + " _smb1_done " , [ os . path . join ( samba3srcdir , " script/tests/test_shadow_copy.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/shadow ' , smbclient3 , ' -m ' , ' NT1 ' ] )
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.shadow_copy2.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_shadow_copy.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/shadow ' , smbclient3 , ' -m ' , ' SMB3 ' ] )
2021-07-06 08:19:36 +03:00
plantestsuite ( " samba3.blackbox.shadow_copy_torture " , env , [ os . path . join ( samba3srcdir , " script/tests/test_shadow_copy_torture.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/shadow ' , smbtorture4 , smbclient3 ] )
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient.forceuser_validusers " , env , [ os . path . join ( samba3srcdir , " script/tests/test_forceuser_validusers.sh " ) , ' $SERVER ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbclient3 ] )
plantestsuite ( " samba3.blackbox.netshareenum " , env , [ os . path . join ( samba3srcdir , " script/tests/test_shareenum.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , rpcclient ] )
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.acl_xattr.NT1 " , env + " _smb1_done " , [ os . path . join ( samba3srcdir , " script/tests/test_acl_xattr.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , ' -mNT1 ' ] )
2017-06-26 10:34:38 +03:00
plantestsuite ( " samba3.blackbox.acl_xattr.SMB3 " , env , [ os . path . join ( samba3srcdir , " script/tests/test_acl_xattr.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , ' -mSMB3 ' ] )
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.smb2.not_casesensitive " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smb2_not_casesensitive.sh " ) , ' //$SERVER/tmp ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbclient3 ] )
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.inherit_owner.default.NT1 " , env + " _smb1_done " , [ os . path . join ( samba3srcdir , " script/tests/test_inherit_owner.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' tmp ' , ' 0 ' , ' 0 ' , ' -m ' , ' NT1 ' ] )
2017-10-07 10:11:56 +03:00
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 ' ] )
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.inherit_owner.full.NT1 " , env + " _smb1_done " , [ os . path . join ( samba3srcdir , " script/tests/test_inherit_owner.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' inherit_owner ' , ' 1 ' , ' 1 ' , ' -m ' , ' NT1 ' ] )
2017-10-07 10:11:56 +03:00
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 ' ] )
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.inherit_owner.unix.NT1 " , env + " _smb1_done " , [ os . path . join ( samba3srcdir , " script/tests/test_inherit_owner.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' inherit_owner_u ' , ' 0 ' , ' 1 ' , ' -m ' , ' NT1 ' ] )
2017-10-07 10:11:56 +03:00
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 ' ] )
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.large_acl.NT1 " , env + " _smb1_done " , [ os . path . join ( samba3srcdir , " script/tests/test_large_acl.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 , smbcacls , ' -m ' , ' NT1 ' ] )
2017-06-26 10:39:31 +03:00
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 ' ] )
2022-07-27 14:37:32 +03:00
plantestsuite ( " samba3.blackbox.delete_stream " , env , [ os . path . join ( samba3srcdir , " script/tests/test_delete_stream.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 , smbcacls , net , ' acl_streams_xattr ' ] )
2018-11-16 17:40:59 +03:00
plantestsuite ( " samba3.blackbox.homes " , env , [ os . path . join ( samba3srcdir , " script/tests/test_homes.sh " ) , ' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , configuration ] )
2019-01-24 21:15:56 +03:00
plantestsuite ( " samba3.blackbox.force_group_change " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_force_group_change.sh " ) ,
' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbclient3 , smbcontrol ] )
2019-05-23 01:09:59 +03:00
plantestsuite ( " samba3.blackbox.zero-data " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_zero_data.sh " ) ,
' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' ] )
2019-11-21 18:44:37 +03:00
plantestsuite ( " samba3.blackbox.timestamps " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_timestamps.sh " ) ,
' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH ' , smbclient3 ] )
2022-05-31 22:13:25 +03:00
plantestsuite ( " samba3.blackbox.volumeserialnumber " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_volume_serial_number.sh " ) ,
' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' volumeserialnumber ' , smbclient3 ] )
2020-04-18 03:36:10 +03:00
plantestsuite ( " samba3.blackbox.smb1_system_security " , env + " _smb1_done " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smb1_system_security.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , net , ' tmp ' ] )
2020-04-18 03:39:22 +03:00
plantestsuite ( " samba3.blackbox.sacl_get_set " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_sacl_set_get.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , smbtorture3 , net , ' tmp ' ] )
2020-05-05 03:57:29 +03:00
plantestsuite ( " samba3.blackbox.NT1.shadow_copy_torture " , env + " _smb1_done " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smb1_shadow_copy_torture.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/shadow ' , smbtorture4 ] )
2020-05-12 01:37:00 +03:00
plantestsuite ( " samba3.blackbox.smbclient_iconv.SMB2 " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_iconv.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' bad_iconv ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 ] )
plantestsuite ( " samba3.blackbox.smbclient_iconv.NT1 " , env + " _smb1_done " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_iconv.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' bad_iconv ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 , ' -mNT1 ' ] )
plantestsuite ( " samba3.blackbox.smbclient_iconv.CORE " , env + " _smb1_done " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_iconv.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' bad_iconv ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 , ' -mCORE ' ] )
2021-10-22 01:06:20 +03:00
plantestsuite ( " samba3.blackbox.test_veto_rmdir " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_veto_rmdir.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/veto ' , smbclient3 ] )
2021-10-22 02:37:27 +03:00
plantestsuite ( " samba3.blackbox.test_dangle_rmdir " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_delete_veto_files_only_rmdir.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/veto ' , smbclient3 ] )
2022-01-04 03:48:17 +03:00
plantestsuite ( " samba3.blackbox.test_list_servers.NT1 " ,
env + " _smb1_done " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_list_servers.sh " ) ,
' $SERVER ' ,
' $SERVER_IP ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbclient3 ,
" -mSMB3 " ] )
plantestsuite ( " samba3.blackbox.test_list_servers.SMB2 " ,
env ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_list_servers.sh " ) ,
' $SERVER ' ,
' $SERVER_IP ' ,
' $USERNAME ' ,
' $PASSWORD ' ,
smbclient3 ,
" -mSMB3 " ] )
2013-08-07 18:34:22 +04:00
2021-12-07 23:28:54 +03:00
plantestsuite ( " samba3.blackbox.test_symlink_traversal.SMB2 " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_symlink_traversal_smb2.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/local_symlinks ' ,
' $PREFIX ' , smbclient3 ] )
2021-12-07 23:32:19 +03:00
plantestsuite ( " samba3.blackbox.test_symlink_traversal.SMB1 " , env + " _smb1_done " ,
[ os . path . join ( samba3srcdir , " script/tests/test_symlink_traversal_smb1.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/local_symlinks ' ,
' $PREFIX ' , smbclient3 ] )
2021-12-07 23:28:54 +03:00
2021-12-07 23:34:38 +03:00
plantestsuite ( " samba3.blackbox.test_symlink_traversal.SMB1.posix " , env + " _smb1_done " ,
[ os . path . join ( samba3srcdir , " script/tests/test_symlink_traversal_smb1_posix.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/local_symlinks ' ,
' $PREFIX ' , smbclient3 ] )
2021-12-08 09:15:46 +03:00
plantestsuite ( " samba3.blackbox.test_symlink_rename.SMB1.posix " , env + " _smb1_done " ,
[ os . path . join ( samba3srcdir , " script/tests/test_symlink_rename_smb1_posix.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/local_symlinks ' ,
' $PREFIX ' , smbclient3 ] )
2022-08-11 19:51:11 +03:00
plantestsuite ( " samba3.blackbox.test_veto_files " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_veto_files.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , ' $LOCAL_PATH/veto ' , smbclient3 ] )
2023-02-28 22:18:10 +03:00
plantestsuite ( " samba3.blackbox.stream_dir_rename " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_stream_dir_rename.sh " ) ,
' $SERVER ' , ' $USERNAME ' , ' $PASSWORD ' , ' $PREFIX ' , smbclient3 ] )
2013-08-07 18:34:22 +04:00
#
# tar command tests
#
2018-05-10 05:00:54 +03:00
# Test smbclient/tarmode
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_tarmode.NT1 " , env + " _smb1_done " ,
2018-05-10 05:00:54 +03:00
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_tarmode.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' ,
2020-11-27 18:33:26 +03:00
' $LOCAL_PATH/tarmode/smbclient_tar ' , ' $PREFIX ' , smbclient3 , configuration , " -mNT1 " ] )
2018-05-10 05:00:54 +03:00
plantestsuite ( " samba3.blackbox.smbclient_tarmode.SMB3 " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_tarmode.sh " ) ,
' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' ,
2020-11-27 18:33:26 +03:00
' $LOCAL_PATH/tarmode/smbclient_tar ' , ' $PREFIX ' , smbclient3 , configuration , " -mSMB3 " ] )
2018-05-10 05:00:54 +03:00
# Test suite for new smbclient/tar with libarchive (GSoC 13)
2019-12-06 18:13:44 +03:00
plantestsuite ( " samba3.blackbox.smbclient_tar.NT1 " , env + " _smb1_done " ,
2018-05-10 05:00:54 +03:00
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_tarmode.pl " ) ,
2020-11-30 14:15:06 +03:00
' -n ' , ' $SERVER ' , ' -i ' , ' $SERVER_IP ' , ' -s ' , ' tarmode2 ' ,
' -u ' , ' $USERNAME ' , ' -p ' , ' $PASSWORD ' , ' -l ' , ' $LOCAL_PATH/tarmode2 ' ,
2020-12-17 08:38:14 +03:00
' -d ' , ' smbclient_tar.NT1 ' , ' -b ' , smbclient3 ,
2018-05-10 05:00:54 +03:00
' --subunit ' , ' -- ' , configuration , ' -mNT1 ' ] )
plantestsuite ( " samba3.blackbox.smbclient_tar.SMB3 " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_tarmode.pl " ) ,
2020-11-30 14:15:06 +03:00
' -n ' , ' $SERVER ' , ' -i ' , ' $SERVER_IP ' , ' -s ' , ' tarmode2 ' ,
' -u ' , ' $USERNAME ' , ' -p ' , ' $PASSWORD ' , ' -l ' , ' $LOCAL_PATH/tarmode2 ' ,
2020-12-17 08:38:14 +03:00
' -d ' , ' smbclient_tar.SMB3 ' , ' -b ' , smbclient3 ,
2018-05-10 05:00:54 +03:00
' --subunit ' , ' -- ' , configuration , ' -mSMB3 ' ] )
2021-09-03 01:32:27 +03:00
plantestsuite ( " samba3.blackbox.fifo " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_fifo.sh " ) ,
' $SERVER ' , ' $DOMAIN ' , ' gooduser ' , ' $PASSWORD ' , ' $PREFIX ' , env , smbclient3 ] )
2022-06-16 21:57:58 +03:00
plantestsuite ( " samba3.blackbox.test_full_audit_success_badname " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_bad_auditnames.sh " ) ,
' $SERVER ' , ' full_audit_success_bad_name ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 ] )
plantestsuite ( " samba3.blackbox.test_full_audit_fail_badname " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_bad_auditnames.sh " ) ,
' $SERVER ' , ' full_audit_fail_bad_name ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 ] )
2022-06-18 03:49:43 +03:00
plantestsuite ( " samba3.blackbox.fruit.resource_stream " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_fruit_resource_stream.sh " ) ,
' $SERVER ' , ' fruit_resource_stream ' , ' $USERNAME ' , ' $PASSWORD ' ,
' $LOCAL_PATH/fruit_resource_stream ' , smbclient3 ] )
2013-08-05 21:02:47 +04:00
2019-03-13 14:00:27 +03:00
for env in [ " fileserver:local " ] :
plantestsuite ( " samba3.blackbox.net_usershare " , env , [ os . path . join ( samba3srcdir , " script/tests/test_net_usershare.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $USERNAME ' , ' $PASSWORD ' , smbclient3 ] )
plantestsuite ( " samba3.blackbox.smbstatus " , env , [ os . path . join ( samba3srcdir , " script/tests/test_smbstatus.sh " ) , ' $SERVER ' , ' $SERVER_IP ' , ' $DOMAIN ' , ' $USERNAME ' , ' $PASSWORD ' , ' $USERID ' , ' $LOCAL_PATH ' , ' $PREFIX ' , smbclient3 , smbstatus , configuration , " SMB3 " ] )
2019-05-10 00:34:37 +03:00
plantestsuite ( " samba3.blackbox.net_registry_import " , env , [ os . path . join ( samba3srcdir , " script/tests/test_net_registry_import.sh " ) , ' $SERVER ' , ' $LOCAL_PATH ' , ' $USERNAME ' , ' $PASSWORD ' ] )
2017-06-22 15:17:07 +03:00
2023-03-29 14:08:37 +03:00
env = ' ad_member '
plantestsuite ( " samba3.blackbox.smbget " ,
env ,
[
os . path . join ( samba3srcdir , " script/tests/test_smbget.sh " ) ,
' $SERVER ' ,
' $SERVER_IP ' ,
' $DOMAIN ' ,
2023-03-30 11:06:55 +03:00
' $REALM ' ,
2023-03-29 14:08:37 +03:00
' smbget_user ' ,
' $PASSWORD ' ,
' $LOCAL_PATH/smbget ' ,
smbget
] )
2022-11-07 22:34:57 +03:00
plantestsuite ( " samba3.blackbox.server_addresses " ,
" simpleserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_server_addresses.sh " ) ] )
2018-07-30 09:19:49 +03:00
# TODO encrypted against member, with member creds, and with DC creds
2019-12-06 20:31:32 +03:00
plantestsuite ( " samba3.blackbox.net.misc NT1 " , " ad_dc_smb1_done:local " ,
2012-05-29 15:59:14 +04:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_misc.sh " ) ,
2019-12-05 13:05:57 +03:00
scriptdir , " $SMB_CONF_PATH " , net , configuration , " NT1 " ] )
2019-12-06 20:30:38 +03:00
plantestsuite ( " samba3.blackbox.net.misc SMB3 " , " ad_dc:local " ,
2019-12-05 13:05:57 +03:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_misc.sh " ) ,
scriptdir , " $SMB_CONF_PATH " , net , configuration , " SMB3 " ] )
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 " ) ] )
2018-10-05 17:27:48 +03:00
if with_pthreadpool :
plantestsuite ( " samba3.libwbclient_threads " ,
" nt4_member " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_libwbclient_threads.sh " ) ,
" $DOMAIN " , " $DC_USERNAME " ] )
2019-07-02 21:22:13 +03:00
plantestsuite ( " samba3.test_nfs4_acl " , " none " ,
[ os . path . join ( bindir ( ) , " test_nfs4_acls " ) ,
" $SMB_CONF_PATH " ] )
2020-04-11 00:14:25 +03:00
plantestsuite ( " samba3.test_vfs_full_audit " , " none " ,
[ os . path . join ( bindir ( ) , " test_vfs_full_audit " ) ,
" $SMB_CONF_PATH " ] )
2020-07-08 06:02:42 +03:00
plantestsuite ( " samba3.test_vfs_posixacl " , " none " ,
[ os . path . join ( bindir ( ) , " test_vfs_posixacl " ) ,
" $SMB_CONF_PATH " ] )
2020-02-21 18:52:08 +03:00
if is_module_enabled ( " vfs_gpfs " ) :
plantestsuite ( " samba3.test_vfs_gpfs " , " none " ,
[ os . path . join ( bindir ( ) , " test_vfs_gpfs " ) ] )
2018-01-01 21:35:46 +03:00
plantestsuite (
" samba3.resolvconf " , " none " ,
[ os . path . join ( samba3srcdir , " script/tests/test_resolvconf.sh " ) ] )
2016-01-28 10:29:28 +03:00
plantestsuite ( " samba3.tevent_glib_glue " , " none " ,
[ os . path . join ( samba3srcdir , " script/tests/test_tevent_glib_glue.sh " ) ] )
2015-10-18 23:23:20 +03:00
plantestsuite ( " samba3.async_req " , " nt4_dc " ,
[ os . path . join ( samba3srcdir , " script/tests/test_async_req.sh " ) ] )
2018-07-30 09:19:49 +03:00
# smbtorture4 tests
2011-02-21 08:01:44 +03:00
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 " ,
2020-05-14 15:22:16 +03:00
" raw.samba3rootdirfid " , " raw.samba3rootdirfid2 " , " raw.sfileinfo.end-of-file " ,
2011-03-28 10:23:27 +04:00
" 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
2022-07-15 11:05:44 +03:00
rpc = [ " rpc.authcontext " ,
" rpc.samba3.bind " ,
" rpc.samba3.srvsvc " ,
" rpc.samba3.sharesec " ,
" rpc.samba3.spoolss " ,
" rpc.samba3.wkssvc " ,
" rpc.samba3.winreg " ,
2011-02-21 08:01:44 +03:00
" rpc.samba3.getaliasmembership-0 " ,
2022-07-15 11:05:44 +03:00
" rpc.samba3.netlogon " ,
" rpc.samba3.sessionkey " ,
" rpc.samba3.getusername " ,
" rpc.samba3.smb1-pipe-name " ,
" rpc.samba3.smb2-pipe-name " ,
" rpc.samba3.smb-reauth1 " ,
" rpc.samba3.smb-reauth2 " ,
" rpc.samba3.lsa_over_netlogon " ,
" rpc.samba3.pipes_supported_interfaces " ,
" rpc.svcctl " ,
" rpc.ntsvcs " ,
" rpc.winreg " ,
" rpc.eventlog " ,
" rpc.spoolss.printserver " ,
" rpc.spoolss.win " ,
" rpc.spoolss.notify " ,
" rpc.spoolss.printer " ,
2011-02-21 08:01:44 +03:00
" rpc.spoolss.driver " ,
2022-07-15 11:05:44 +03:00
" rpc.lsa " ,
" rpc.lsa-getuser " ,
" rpc.lsa.lookupsids " ,
" rpc.lsa.lookupnames " ,
" rpc.lsa.privileges " ,
" rpc.lsa.secrets " ,
2019-04-16 17:54:21 +03:00
" rpc.mdssvc " ,
2022-07-15 11:05:44 +03:00
" rpc.samr " ,
" rpc.samr.users " ,
" rpc.samr.users.privileges " ,
2022-07-15 11:09:02 +03:00
" rpc.samr.passwords.default " ,
2022-07-15 11:05:44 +03:00
" rpc.samr.passwords.pwdlastset " ,
" rpc.samr.passwords.lockout " ,
" rpc.samr.passwords.badpwdcount " ,
" rpc.samr.large-dc " ,
" rpc.samr.machine.auth " ,
" rpc.samr.priv " ,
" rpc.samr.passwords.validate " ,
" rpc.samr.handletype " ,
2011-03-04 18:05:35 +03:00
" rpc.netlogon.admin " ,
2020-09-27 23:29:25 +03:00
" rpc.netlogon.zerologon " ,
2022-07-15 11:05:44 +03:00
" rpc.schannel " ,
" rpc.schannel2 " ,
" rpc.bench-schannel1 " ,
" rpc.schannel_anon_setpw " ,
" rpc.join " ,
" rpc.bind " ,
" rpc.initshutdown " ,
" rpc.wkssvc " ,
" rpc.srvsvc " ]
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 " ]
2018-07-30 09:17:02 +03:00
nbt = [ " nbt.dgram " ]
2011-03-11 01:17:54 +03:00
2018-10-04 14:47:20 +03:00
vfs = [
" vfs.fruit " ,
" vfs.acl_xattr " ,
" vfs.fruit_netatalk " ,
" vfs.fruit_file_id " ,
" vfs.fruit_timemachine " ,
2018-10-04 15:28:15 +03:00
" vfs.fruit_conversion " ,
2019-07-05 18:35:50 +03:00
" vfs.unfruit " ,
2018-10-04 14:47:20 +03:00
]
2014-07-08 07:47:02 +04:00
2020-02-23 14:22:47 +03:00
tests = base + raw + smb2 + rpc + unix + local + rap + nbt + idmap + vfs
2011-02-21 08:01:44 +03:00
2012-01-09 02:47:47 +04:00
for t in tests :
2018-03-04 22:04:22 +03:00
if t == " base.delaywrite " or t == " base.deny1 " or t == " base.deny2 " :
2019-12-11 20:24:10 +03:00
plansmbtorture4testsuite ( t , " fileserver_smb1 " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD --maximum-runtime=900 ' )
2017-03-10 15:43:12 +03:00
elif t == " base.createx_access " :
2019-12-11 21:30:54 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD -k yes --maximum-runtime=900 ' )
2012-01-09 02:47:47 +04:00
elif t == " rap.sam " :
2019-12-13 14:39:52 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --option=doscharset=ISO-8859-1 ' )
2019-12-11 21:32:29 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$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 " )
2019-12-19 21:10:02 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1: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 " )
2019-12-19 21:10:02 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1:local " , ' //$SERVER/tmp --machine-pass --option=torture:addc=$DC_SERVER ' , description = " machine account " )
2019-12-13 17:15:51 +03:00
for env in [ " nt4_dc_smb1 " , " 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 ' )
2019-12-11 21:35:10 +03:00
for env in [ " ad_dc_smb1 " , " 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 ' )
2019-12-16 15:48:39 +03:00
elif t == " raw.samba3posixtimedlock " :
2019-12-16 15:54:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmpguest -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc_smb1/share ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/brl_delay_inject1 -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc_smb1/share ' ,
2019-12-16 15:48:39 +03:00
description = " brl_delay_inject1 " )
2019-12-16 15:54:11 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/brl_delay_inject2 -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc_smb1/share ' ,
2019-12-16 15:48:39 +03:00
description = " brl_delay_inject2 " )
2019-12-16 15:51:25 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$SERVER_IP/tmpguest -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/ad_dc_smb1/share ' )
2019-12-16 15:48:39 +03:00
elif t == " smb2.samba3misc " :
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 ' )
2019-08-20 16:53:59 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/brl_delay_inject1 -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share ' ,
description = " brl_delay_inject1 " )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/brl_delay_inject2 -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share ' ,
description = " brl_delay_inject2 " )
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 " :
2019-12-13 15:10:29 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmpcase -U$USERNAME % $PASSWORD ' )
2019-12-11 21:37:09 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$SERVER_IP/tmpcase -U$USERNAME % $PASSWORD ' )
2018-07-30 09:17:44 +03:00
elif t == " raw.samba3hide " or t == " raw.samba3checkfsp " or t == " raw.samba3closeerr " :
2019-12-13 15:22:05 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2019-12-16 19:01:33 +03:00
plansmbtorture4testsuite ( t , " fileserver_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2019-12-16 19:07:34 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2018-11-08 18:24:45 +03:00
elif t == " raw.session " :
2019-12-13 15:39:48 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' , ' plain ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmpenc -U$USERNAME % $PASSWORD ' , ' enc ' )
2019-12-11 21:40:23 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$SERVER/tmp -k no -U$USERNAME % $PASSWORD ' , ' ntlm ' )
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$SERVER/tmp -k yes -U$USERNAME % $PASSWORD ' , ' krb5 ' )
2018-11-08 18:24:45 +03:00
elif t == " smb2.session " :
2021-03-10 15:06:00 +03:00
alice_creds = " --option= ' torture:user2name=alice ' --option= ' torture:user2password=Secret007 ' "
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 ' )
2021-03-10 15:06:00 +03:00
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -k no -U$USERNAME % $PASSWORD ' + alice_creds , ' ntlm ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -k yes -U$USERNAME % $PASSWORD ' + alice_creds , ' krb5 ' )
2018-12-11 18:43:13 +03:00
# Certain tests fail when run against ad_member with MIT kerberos because the private krb5.conf overrides the provisioned lib/krb5.conf,
# ad_member_idmap_rid sets "create krb5.conf = no"
plansmbtorture4testsuite ( t , " ad_member_idmap_rid " , ' //$SERVER/tmp -k yes -U$DC_USERNAME@$REALM % $DC_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 ' )
selftest: Remove duplicate run of rpc.lsa tests against ad_dc as "samba3"
Running these tests twice is a waste (sorry, thas was my choice when
merging s3 and s4 to just run all the tests against the AD DC) and
more importantly means that tests are run in "samba3" mode against
the AD DC, making it difficult to change the tests to expect a different
behaivour against the AD DC compared to the NT4 DC.
To assure that we have not lost tests, I ran:
grep command st/subunit | grep ad_dc| cut -f 2 -d\" | cut -f 2- -d. | sort | uniq -c
The two blocks (for rpc.lsa and rpc.lsa.*) are because the rpc.lsa.*
subtests were not previously run under ncacn_ip_tcp: and this is the
minimal change.
The output is:
--- /tmp/3 2022-02-12 14:01:50.435761067 +1300
+++ /tmp/now 2022-02-12 14:01:37.427595351 +1300
@@ -13,9 +13,8 @@
2 rpc.lsa-getuser on ncalrpc with validate.
2 rpc.lsa-getuser with bigendian.
2 rpc.lsa-getuser with seal,padcheck.
2 rpc.lsa-getuser with validate.
- 2 rpc.lsa.lookupnames.
2 rpc.lsa.lookupnames with .
2 rpc.lsa.lookupnames with bigendian.
2 rpc.lsa.lookupnames with validate.
2 rpc.lsalookup on ncacn_ip_tcp with bigendian.
@@ -26,9 +25,8 @@
2 rpc.lsalookup on ncacn_np with validate.
2 rpc.lsalookup on ncalrpc with bigendian.
2 rpc.lsalookup on ncalrpc with seal,padcheck.
2 rpc.lsalookup on ncalrpc with validate.
- 2 rpc.lsa.lookupsids.
2 rpc.lsa.lookupsids with .
2 rpc.lsa.lookupsids with bigendian.
2 rpc.lsa.lookupsids with validate.
2 rpc.lsalookup with bigendian.
@@ -42,15 +40,11 @@
2 rpc.lsa on ncacn_np with validate.
2 rpc.lsa on ncalrpc with bigendian.
2 rpc.lsa on ncalrpc with seal,padcheck.
2 rpc.lsa on ncalrpc with validate.
- 2 rpc.lsa over ncacn_ip_tcp .
- 2 rpc.lsa over ncacn_np .
- 2 rpc.lsa.privileges.
2 rpc.lsa.privileges with .
2 rpc.lsa.privileges with bigendian.
2 rpc.lsa.privileges with validate.
- 2 rpc.lsa.secrets.
2 rpc.lsa.secrets on ncacn_np with with -k no --option=clientusespnego=no.
2 rpc.lsa.secrets on ncacn_np with with -k no --option=clientusespnego=no --option=clientntlmv2auth=yes.
2 rpc.lsa.secrets on ncacn_np with with -k no --option=clientusespnego=yes.
2 rpc.lsa.secrets on ncacn_np with with -k no --option=clientusespnego=yes --option=clientntlmv2auth=yes.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2022-02-12 04:09:34 +03:00
elif t . startswith ( " rpc.lsa. " ) :
# This avoids the rpc.lsa.* tests runing under ncacn_ip_tcp:
# (there is rpc.lsa.secrets fails due to OpenPolicy2 for example)
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2019-04-16 17:54:21 +03:00
elif t == " rpc.mdssvc " :
2022-06-07 10:52:53 +03:00
plansmbtorture4testsuite ( t , " fileserver " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2018-08-30 20:15:19 +03:00
elif t == " smb2.durable-open " or t == " smb2.durable-v2-open " or t == " smb2.replay " or t == " smb2.durable-v2-delay " :
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 " :
2019-12-13 13:26:59 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/valid-users-tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/write-list-tmp -U$USERNAME % $PASSWORD ' )
2019-12-11 21:42:24 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$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 ' ] )
2022-02-15 14:33:33 +03:00
plantestsuite ( t ,
" admem_idmap_autorid " ,
[ os . path . join ( samba3srcdir ,
" ../nsswitch/tests/test_idmap_rid.sh " ) ,
' $DOMAIN ' ,
' 2000000 ' ] )
2017-07-10 17:20:23 +03:00
elif t == " idmap.ad " :
2019-04-23 02:38:11 +03:00
plantestsuite ( t , " ad_member_idmap_ad " , [ os . path . join ( samba3srcdir , " ../nsswitch/tests/test_idmap_ad.sh " ) , ' $DOMAIN ' , ' $DC_SERVER ' , ' $DC_PASSWORD ' , ' $TRUST_DOMAIN ' , ' $TRUST_SERVER ' , ' $TRUST_PASSWORD ' ] )
2013-04-14 14:04:45 +04:00
elif t == " raw.acls " :
2019-12-13 15:01:49 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/nfs4acl_simple_40 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-simple-40 ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/nfs4acl_special_40 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-special-40 ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/nfs4acl_simple_41 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-simple-41 ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/nfs4acl_xdr_40 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-xdr-40 ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/nfs4acl_xdr_41 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-xdr-41 ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/nfs4acl_nfs_40 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-nfs-40 ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/nfs4acl_nfs_41 -U$USERNAME % $PASSWORD ' , description = ' nfs4acl_xattr-nfs-41 ' )
2019-12-11 21:44:00 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$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 ' )
2022-11-11 01:41:15 +03:00
elif t == " smb2.ioctl-on-stream " :
plansmbtorture4testsuite ( t , " fileserver " , ' //$SERVER_IP/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 ' )
2018-03-22 06:45:05 +03:00
elif t == " raw.lock " or t == " base.lock " :
2020-01-07 13:32:33 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2014-08-08 02:42:05 +04:00
elif t == " raw.read " :
2019-12-13 15:19:38 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/aio -U$USERNAME % $PASSWORD ' , ' aio ' )
2019-12-11 21:45:33 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2014-02-11 22:39:04 +04:00
elif t == " raw.search " :
2019-12-13 15:32:09 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2014-02-11 22:39:04 +04:00
# test the dirsort module.
2019-12-13 15:32:09 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmpsort -U$USERNAME % $PASSWORD ' )
2019-12-11 21:46:36 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$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 ' )
2019-05-21 15:05:04 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/vfs_fruit_delete_empty_adfiles -U$USERNAME % $PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share --option=torture:share2=vfs_wo_fruit ' , ' fruit_delete_empty_adfiles ' )
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 " :
2019-06-30 15:24:59 +03:00
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/vfs_fruit_zero_fileid -U$USERNAME % $PASSWORD ' )
2018-10-04 15:28:15 +03:00
elif t == " vfs.fruit_conversion " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --option=torture:share2=vfs_fruit_wipe_intentionally_left_blank_rfork --option=torture:delete_empty_adfiles=false ' , ' wipe_intentionally_left_blank_rfork ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --option=torture:share2=vfs_fruit_delete_empty_adfiles --option=torture:delete_empty_adfiles=true ' , ' delete_empty_adfiles ' )
2019-07-05 18:35:50 +03:00
elif t == " vfs.unfruit " :
creds = ' -U$USERNAME % $PASSWORD '
share2 = ' --option=torture:share2=tmp '
netopt = ' --option=torture:net= %s ' % net
shareopt = ' --option=torture:sharename '
plansmbtorture4testsuite ( t , " nt4_dc:local " , ' //$SERVER_IP/vfs_fruit %s %s %s %s = %s ' % ( creds , share2 , netopt , shareopt , ' vfs_fruit ' ) , ' metadata_netatalk ' )
plansmbtorture4testsuite ( t , " nt4_dc:local " , ' //$SERVER_IP/vfs_fruit_metadata_stream %s %s %s %s = %s ' % ( creds , share2 , netopt , shareopt , ' vfs_fruit_metadata_stream ' ) , ' metadata_stream ' )
plansmbtorture4testsuite ( t , " nt4_dc:local " , ' //$SERVER_IP/vfs_fruit_stream_depot %s %s %s %s = %s ' % ( creds , share2 , netopt , shareopt , ' vfs_fruit_stream_depot ' ) , ' streams_depot ' )
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 ' )
2018-03-22 02:02:16 +03:00
elif t == " smb2.notify " or t == " raw.notify " or t == " smb2.oplock " or t == " raw.oplock " :
2019-12-13 15:14:17 +03:00
tmp_env = " nt4_dc "
2019-12-13 15:18:03 +03:00
if t == " raw.notify " or t == " raw.oplock " :
tmp_env = " nt4_dc_smb1 "
2018-03-22 02:02:16 +03:00
# These tests are a little slower so don't duplicate them with ad_dc
2020-12-02 19:24:22 +03:00
plansmbtorture4testsuite ( t , tmp_env , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --client-protection=sign ' )
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 " :
2020-03-21 22:29:33 +03:00
plansmbtorture4testsuite ( t , " fileserver " , ' //$SERVER/compound_find -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " fileserver " , ' //$SERVER_IP/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 ' )
2022-10-19 02:22:33 +03:00
elif t == " smb2.compound_async " :
2022-11-18 20:53:23 +03:00
plansmbtorture4testsuite ( t , " fileserver " , ' //$SERVER_IP/aio_delay_inject -U$USERNAME % $PASSWORD ' )
2022-06-03 06:37:01 +03:00
elif t == " smb2.ea " :
plansmbtorture4testsuite ( t , " fileserver " , ' //$SERVER/ea_acl_xattr --option=torture:acl_xattr_name=hackme -U$USERNAME % $PASSWORD ' )
2017-12-06 02:49:48 +03:00
elif t == " rpc.samba3.netlogon " or t == " rpc.samba3.sessionkey " :
2019-12-13 16:32:22 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --option=torture:wksname=samba3rpctest ' )
2019-12-11 21:48:38 +03:00
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD --option=torture:wksname=samba3rpctest ' )
2018-05-26 17:30:47 +03:00
elif t == " smb2.streams " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/streams_xattr -U$USERNAME % $PASSWORD ' , ' streams_xattr ' )
2018-10-28 21:29:26 +03:00
elif t == " smb2.aio_delay " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/aio_delay_inject -U$USERNAME % $PASSWORD ' )
2018-11-02 22:07:58 +03:00
elif t == " smb2.delete-on-close-perms " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/delete_readonly -U$USERNAME % $PASSWORD --option=torture:delete_readonly=true ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2019-08-30 15:49:24 +03:00
elif t == " smb2.fileid " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/vfs_fruit_xattr -U$USERNAME % $PASSWORD ' )
2021-05-26 13:31:32 +03:00
elif t == " smb2.acls_non_canonical " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/acls_non_canonical -U$USERNAME % $PASSWORD ' )
2022-01-25 19:59:37 +03:00
elif t == " smb2.async_dosmode " :
plansmbtorture4testsuite ( " smb2.async_dosmode " ,
" simpleserver " ,
" //$SERVER_IP/async_dosmode_shadow_copy2 -U$USERNAME % $PASSWORD " )
2022-03-29 04:09:20 +03:00
elif t == " smb2.rename " :
plansmbtorture4testsuite ( t , " fileserver " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2022-03-28 21:05:26 +03:00
elif t == " smb2.twrp " :
# This is being driven by samba3.blackbox.shadow_copy_torture
pass
2022-09-01 19:55:23 +03:00
elif t == " smb2.create_no_streams " :
plansmbtorture4testsuite ( t , " fileserver " , ' //$SERVER_IP/nfs4acl_simple_40 -U$USERNAME % $PASSWORD ' )
2019-05-23 02:19:10 +03:00
elif t == " rpc.wkssvc " :
plansmbtorture4testsuite ( t , " ad_member " , ' //$SERVER/tmp -U$DC_USERNAME % $DC_PASSWORD ' )
2019-05-23 03:21:46 +03:00
elif t == " rpc.srvsvc " :
plansmbtorture4testsuite ( t , " ad_member " , ' //$SERVER/tmp -U$DC_USERNAME % $DC_PASSWORD ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER/tmp -U$DC_USERNAME % $DC_PASSWORD ' )
2019-11-15 16:24:31 +03:00
elif t == " rpc.samba3.lsa_over_netlogon " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2019-11-26 16:16:14 +03:00
elif t == " rpc.samba3.pipes_supported_interfaces " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " ad_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
2019-07-24 07:22:12 +03:00
elif t == " rpc.spoolss.notify " :
plansmbtorture4testsuite ( t , " ad_member " , ' //$SERVER_IP/tmp -U$DC_USERNAME % $DC_PASSWORD ' )
2019-12-11 21:06:47 +03:00
elif ( t in base and t != " base.charset " ) \
2019-12-11 21:09:02 +03:00
or ( t in rap and t != " rap.printing " ) \
2019-12-11 21:16:46 +03:00
or ( t in unix ) \
or ( t in [ " rpc.authcontext " ,
" rpc.join " ,
" rpc.samba3.bind " ,
" rpc.samba3.getusername " ,
" rpc.samba3.sharesec " ,
" rpc.samba3.smb1-pipe-name " ,
" rpc.samba3.smb-reauth1 " ,
" rpc.samba3.smb-reauth2 " ,
" rpc.samba3.spoolss " ,
2020-01-07 13:27:12 +03:00
" rpc.samba3.wkssvc " , ] ) \
or ( t in [ " raw.close " ,
" raw.composite " ,
" raw.eas " ,
" raw.mkdir " ,
" raw.open " ,
" raw.rename " ,
" raw.samba3badnameblob " ,
" raw.samba3badpath " ,
" raw.samba3caseinsensitive " ,
" raw.samba3oplocklogoff " ,
" raw.samba3posixtimedlock " ,
" raw.samba3rootdirfid " ,
2020-05-14 15:22:16 +03:00
" raw.samba3rootdirfid2 " ,
2020-01-07 13:27:12 +03:00
" raw.seek " ,
" raw.sfileinfo.bug " ,
" raw.sfileinfo.end-of-file " ,
" raw.sfileinfo.rename " ,
" raw.streams " ,
" raw.unlink " ,
" raw.write " , ] ) :
2020-03-04 20:35:40 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1 " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " ad_dc_smb1 " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2020-01-23 17:26:53 +03:00
elif t in [ " base.mangle " , " base.tcon " , " raw.mkdir " ] :
2019-12-23 23:58:47 +03:00
plansmbtorture4testsuite ( t , " nt4_dc_smb1_done " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
plansmbtorture4testsuite ( t , " ad_dc_smb1_done " , ' //$SERVER/tmp -U$USERNAME % $PASSWORD ' )
2022-02-11 11:05:38 +03:00
elif t == " rpc.samr.passwords.validate " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' ncacn_ip_tcp:$SERVER_IP[seal] -U$USERNAME % $PASSWORD ' , ' over ncacn_ip_tcp ' )
elif t == " rpc.samr.users.privileges " :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD --option=torture:nt4_dc=true ' )
elif t == " rpc.samr " or t . startswith ( " rpc.samr. " ) :
plansmbtorture4testsuite ( t , " nt4_dc " , ' //$SERVER_IP/tmp -U$USERNAME % $PASSWORD ' )
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
2020-08-13 15:59:58 +03:00
plantestsuite (
" idmap_ad.ticket_expiry " ,
" ad_member_idmap_ad:local " ,
[ os . path . join ( samba3srcdir , " ../nsswitch/tests/test_ticket_expiry.sh " ) ,
' $DOMAIN ' ] )
2012-01-09 02:47:47 +04:00
2020-10-22 18:23:44 +03:00
plansmbtorture4testsuite (
" notifyd " ,
" fileserver:local " ,
' //foo/bar -U % ' )
2021-07-21 03:50:49 +03:00
plansmbtorture4testsuite (
" smb2.streams " ,
" simpleserver " ,
' //$SERVER/external_streams_depot -U$USERNAME % $PASSWORD ' )
2012-01-09 02:47:47 +04:00
test = ' rpc.lsa.lookupsids '
2018-07-19 08:34:11 +03:00
auth_options = [ " " , " ntlm " , " spnego " , " spnego,ntlm " , " spnego,smb1 " , " spnego,smb2 " ]
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 "
2019-12-13 16:21:13 +03:00
if " smb1 " in a :
plansmbtorture4testsuite ( test , " nt4_dc_smb1_done " , options , ' over ncacn_np with [ %s %s %s ] ' % ( a , s , e ) )
else :
plansmbtorture4testsuite ( test , " nt4_dc " , options , ' over ncacn_np with [ %s %s %s ] ' % ( a , s , e ) )
2021-03-16 10:29:33 +03:00
plantestsuite (
f ' samba3.blackbox.rpcclient over ncacn_np with [ { a } { s } { e } ] ' ,
" nt4_dc:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_rpcclient.sh " ) ,
" none " ,
options + " -c getusername " ,
configuration ] )
plantestsuite (
f ' samba3.blackbox.rpcclient over ncalrpc with [ { a } { s } { e } ] ' ,
" nt4_dc:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_rpcclient.sh " ) ,
" none " ,
f ' ncalrpc:[ { a } { s } { e } ] -c epmmap ' ,
configuration ] )
2022-01-09 15:39:12 +03:00
if s != " ,connect " :
plantestsuite (
f ' samba3.blackbox.rpcclient over ncacn_ip_tcp with [ { a } { s } { e } ] ' ,
" nt4_dc:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_rpcclient.sh " ) ,
" none " ,
f ' ncacn_ip_tcp: " $SERVER_IP " [ { a } { s } { e } ] -c epmmap -U " $USERNAME " % " $PASSWORD " ' ,
configuration ] )
2012-01-14 14:17:33 +04:00
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 )
2020-12-02 19:24:22 +03:00
options = binding_string + " --use-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
2020-12-02 19:24:22 +03:00
options = binding_string + " --use-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
2021-03-16 10:29:33 +03:00
plantestsuite (
f ' samba3.blackbox.rpcclient krb5 ncacn_np with [ { a } { s } { e } ] ' ,
" ktest:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_rpcclient.sh " ) ,
" $PREFIX/ktest/krb5_ccache-3 " ,
binding_string ,
2020-12-01 15:48:03 +03:00
" --use-krb5-ccache=$PREFIX/ktest/krb5_ccache-3 -c getusername " ,
2021-03-16 10:29:33 +03:00
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 " ) ,
2018-07-30 09:16:12 +03: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 " ) ,
2019-11-26 19:58:32 +03:00
configuration , os . path . join ( bindir ( ) , " sharesec " ) ,
os . path . join ( bindir ( ) , " net " ) , " tmp " ] )
2014-12-11 18:41:55 +03:00
2020-01-14 15:13:17 +03:00
plantestsuite ( " samba3.blackbox.close-denied-share " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_close_denied_share.sh " ) ,
configuration ,
os . path . join ( bindir ( ) , " sharesec " ) ,
os . path . join ( bindir ( ) , " smbclient " ) ,
os . path . join ( bindir ( ) , " smbcontrol " ) ,
' $SERVER_IP ' ,
" tmp " ] )
2020-03-04 00:31:18 +03:00
plantestsuite ( " samba3.blackbox.force-close-share " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_force_close_share.sh " ) ,
configuration ,
os . path . join ( bindir ( ) , " smbclient " ) ,
os . path . join ( bindir ( ) , " smbcontrol " ) ,
' $SERVER_IP ' ,
2020-09-02 10:25:43 +03:00
" aio_delay_inject " ,
' $PREFIX/force-close-share ' ] )
2020-03-04 00:31:18 +03:00
2020-02-19 17:25:38 +03:00
plantestsuite ( " samba3.blackbox.open-eintr " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_open_eintr.sh " ) ,
configuration ,
os . path . join ( bindir ( ) , " smbclient " ) ,
os . path . join ( bindir ( ) , " smbcontrol " ) ,
' $SERVER_IP ' ,
" error_inject " ] )
2021-10-08 00:08:48 +03:00
plantestsuite ( " samba3.blackbox.chdir-cache " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_chdir_cache.sh " ) ,
configuration ,
os . path . join ( bindir ( ) , " smbclient " ) ,
os . path . join ( bindir ( ) , " smbcontrol " ) ,
' $SERVER_IP ' ,
2023-01-23 12:21:33 +03:00
" error_inject " ,
' $PREFIX ' ,
' simpleserver ' ] )
2020-02-19 17:25:38 +03:00
2023-03-21 20:31:36 +03:00
plantestsuite ( " samba3.blackbox.zero_readsize " ,
" simpleserver:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_zero_readsize.sh " ) ,
configuration ,
os . path . join ( bindir ( ) , " smbclient " ) ,
os . path . join ( bindir ( ) , " smbcontrol " ) ,
' $SERVER_IP ' ,
" tmp " ,
" $PREFIX " ,
" -mSMB2 " ] )
2020-05-11 12:08:54 +03:00
plantestsuite ( " samba3.blackbox.netfileenum " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_netfileenum.sh " ) ,
os . path . join ( bindir ( ) , " smbclient " ) ,
os . path . join ( bindir ( ) , " rpcclient " ) ,
os . path . join ( bindir ( ) , " net " ) ,
' $SERVER_IP ' ,
' tmp ' ] )
2022-05-18 17:40:49 +03:00
plantestsuite ( " samba3.blackbox.netshareenum_username " , " fileserver " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_user_in_sharelist.sh " ) ,
os . path . join ( bindir ( ) , " rpcclient " ) ,
' $SERVER_IP ' ] )
2017-02-17 02:23:47 +03:00
plantestsuite ( " samba3.blackbox.net_tdb " , " simpleserver:local " ,
2018-07-30 09:16:43 +03:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_tdb.sh " ) ,
2018-09-03 16:05:48 +03:00
smbclient3 , ' $SERVER ' , ' tmp ' , ' $USERNAME ' , ' $PASSWORD ' ,
configuration , ' $LOCAL_PATH ' , ' $LOCK_DIR ' ] )
2017-02-17 02:23:47 +03:00
2020-06-22 23:44:12 +03:00
plantestsuite ( " samba3.blackbox.aio-outstanding " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_aio_outstanding.sh " ) ,
configuration ,
os . path . join ( bindir ( ) , " smbclient " ) ,
' $SERVER_IP ' ,
" aio_delay_inject " ] )
2021-08-09 13:31:07 +03:00
plantestsuite ( " samba3.blackbox.deadtime " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_deadtime.sh " ) ,
' $SERVER_IP ' ] )
2017-12-13 22:58:18 +03:00
plantestsuite ( " samba3.blackbox.smbd_error " , " simpleserver:local " ,
2018-07-30 09:17:02 +03:00
[ os . path . join ( samba3srcdir , " script/tests/test_smbd_error.sh " ) ] )
2017-12-13 22:58:18 +03:00
2019-10-07 23:51:19 +03:00
plantestsuite ( " samba3.blackbox.smbd_no_krb5 " , " ad_member:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbd_no_krb5.sh " ) ,
smbclient3 , ' $SERVER ' , " $DC_USERNAME " , " $DC_PASSWORD " , " $PREFIX " ] )
2021-01-13 13:54:40 +03:00
plantestsuite ( " samba3.blackbox.winbind_ignore_domain " , " ad_member_idmap_ad:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_winbind_ignore_domains.sh " ) ] )
2018-08-30 20:15:19 +03:00
plantestsuite ( " samba3.blackbox.durable_v2_delay " , " simpleserver:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_durable_handle_reconnect.sh " ) ] )
2017-07-03 19:36:29 +03:00
plantestsuite ( " samba3.blackbox.net_cache_samlogon " , " ad_member:local " ,
2018-07-30 09:16:43 +03:00
[ os . path . join ( samba3srcdir , " script/tests/test_net_cache_samlogon.sh " ) ,
2018-09-03 16:05:48 +03:00
' $SERVER ' , ' tmp ' , ' $DC_USERNAME ' , ' $DC_PASSWORD ' ] )
2017-07-03 19:36:29 +03:00
2018-11-27 23:09:51 +03:00
plantestsuite ( " samba3.blackbox.net_rpc_share_allowedusers " , " nt4_dc " ,
[ os . path . join ( samba3srcdir , " script/tests/test_net_rpc_share_allowedusers.sh " ) ,
" $SERVER " , " $USERNAME " , " $PASSWORD " , " $PREFIX/net_rpc_share_allowedusers " ,
configuration ] )
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 " ] )
2018-10-24 01:46:11 +03:00
plantestsuite ( " samba3.blackbox.net_rpc_join_creds " , " nt4_dc " ,
[ os . path . join ( samba3srcdir , " script/tests/test_net_rpc_join_creds.sh " ) ,
" $DOMAIN " , " $USERNAME " , " $PASSWORD " , " $SERVER " , " $PREFIX/net_rpc_join_creds " ,
configuration ] )
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 " ] )
2020-03-10 02:25:00 +03:00
plantestsuite ( " samba3.blackbox.rpcclient_lookup " , " simpleserver " ,
[ os . path . join ( samba3srcdir , " script/tests/test_rpcclient_lookup.sh " ) ,
" $USERNAME " , " $PASSWORD " , " $SERVER " ,
os . path . join ( bindir ( ) , " rpcclient " ) ] )
2022-02-23 19:39:46 +03:00
plantestsuite ( " samba3.blackbox.rpcclient_dfs " , " fileserver:local " ,
[ os . path . join ( samba3srcdir , " script/tests/test_rpcclient_dfs.sh " ) ,
" $USERNAME " , " $PASSWORD " , " $SERVER " ,
os . path . join ( bindir ( ) , " rpcclient " ) ] )
2020-03-10 02:25:00 +03:00
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 ] )
2020-09-08 11:15:20 +03:00
2021-10-29 07:27:38 +03:00
plantestsuite ( " samba3.blackbox.smbXsrv_client_dead_rec " , " fileserver:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbXsrv_client_dead_rec.sh " ) ,
configuration ,
' $SERVER_IP ' ,
" tmp " ] )
2022-08-31 15:04:10 +03:00
plantestsuite ( " samba3.blackbox.smbXsrv_client_cross_node " , " clusteredmember:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbXsrv_client_cross_node.sh " ) ,
configuration ,
' ctdb0 ' , ' ctdb1 ' ,
" tmp " ] )
2022-12-28 18:18:40 +03:00
plantestsuite ( " samba3.blackbox.registry_share " , " clusteredmember " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_registry_share.sh " ) ,
" $SERVER " , ' $DC_USERNAME ' , " $DC_PASSWORD " ] )
2022-08-31 15:04:10 +03:00
2022-02-08 17:35:48 +03:00
env = ' fileserver '
plantestsuite ( " samba3.blackbox.virus_scanner " , " %s :local " % ( env ) ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_virus_scanner.sh " ) ,
' $SERVER_IP ' ,
" virusfilter " ,
' $LOCAL_PATH ' ,
smbclient3 ] )
2020-09-08 11:15:20 +03:00
for env in [ ' fileserver ' , ' simpleserver ' ] :
plantestsuite ( " samba3.blackbox.smbclient.encryption " , env ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_encryption.sh " ) ,
" $USERNAME " , " $PASSWORD " , " $SERVER " ,
smbclient3 , env ] )
2017-01-18 18:23:40 +03:00
2021-07-27 15:06:33 +03:00
plantestsuite ( " samba3.blackbox.smbclient.kerberos " , ' ad_dc ' ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbclient_kerberos.sh " ) ,
" alice " ,
" $REALM " ,
" Secret007 " ,
" $SERVER " ,
smbclient3 ,
env ] )
for env in [ ' ad_dc_fips ' , ' ad_member_fips ' ] :
2021-07-20 15:58:09 +03:00
plantestsuite ( " samba3.blackbox.smbclient.kerberos " , env ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbclient_kerberos.sh " ) ,
" alice " ,
" $REALM " ,
" Secret007 " ,
" $SERVER " ,
smbclient3 ,
2021-07-27 15:06:33 +03:00
env ] ,
environ = { ' GNUTLS_FORCE_FIPS_MODE ' : ' 1 ' ,
' OPENSSL_FORCE_FIPS_MODE ' : ' 1 ' } )
2021-07-20 15:58:09 +03:00
2018-04-24 23:52:59 +03:00
plantestsuite ( " samba3.blackbox.rpcclient_netsessenum " , " ad_member " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_rpcclient_netsessenum.sh " ) ,
" $DOMAIN " , " $DC_USERNAME " , " $DC_PASSWORD " , " $SERVER " ,
os . path . join ( bindir ( ) , " rpcclient " ) , smbtorture3 , " tmp " ] )
2017-06-26 10:48:21 +03:00
# The ktest environment uses:
# server min protocol = SMB3_00
# client max protocol = SMB3
2020-08-18 17:58:19 +03:00
options_list = [ " " , " --client-protection=encrypt " ]
2012-01-27 08:20:17 +04:00
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 " ,
2020-08-18 17:58:19 +03:00
smbclient3 , " $SERVER " , " $PREFIX " , options , " --use-krb5-ccache=$PREFIX/ktest/krb5_ccache-3 " + configuration ] )
2012-02-14 02:05:21 +04:00
2020-08-18 17:58:19 +03:00
options_list = [ " -mNT1 " , " -mNT1 --client-protection=encrypt " , " -mSMB3 " , " -mSMB3 --client-protection=encrypt " ]
2017-06-26 10:48:21 +03:00
for options in options_list :
2019-12-13 14:34:13 +03:00
env = " nt4_dc "
if " NT1 " in options :
env = " nt4_dc_smb1_done "
plantestsuite ( " samba3.blackbox.smbclient_large_file %s NTLM " % options , " %s :local " % env ,
2017-06-26 10:55:34 +03:00
[ 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 " ) ,
2021-06-10 15:28:44 +03:00
smbclient3 , alias , " $DC_USERNAME " , " $DC_PASSWORD " , " $PREFIX " ,
configuration ] )
2016-06-18 20:30:46 +03:00
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 ' )
2019-03-07 13:35:07 +03:00
plansmbtorture4testsuite ( ' rpc.fsrvp ' , ' nt4_dc:local ' , ' ncacn_np:$SERVER_IP -U$USERNAME % $PASSWORD ' , ' over ncacn_np ' )
2019-05-16 13:47:34 +03:00
for env in [ " ad_member_idmap_rid:local " , " maptoguest:local " ] :
2019-11-08 16:32:44 +03:00
plantestsuite ( " samba3.blackbox.guest " , env ,
2019-05-16 13:47:34 +03:00
[ os . path . join ( samba3srcdir , " script/tests/test_guest_auth.sh " ) ,
' $SERVER ' , smbclient3 , smbcontrol , net , configuration ] )
2019-06-27 10:38:57 +03:00
2020-09-28 17:29:27 +03:00
plantestsuite ( " samba3.blackbox.smbclient-mget " ,
" fileserver " ,
[ os . path . join ( samba3srcdir , " script/tests/test_smbclient_mget.sh " ) ,
smbclient3 ,
" $SERVER " ,
" tmp " ,
" $USERNAME " ,
" $PASSWORD " ,
" valid_users " ] )
2020-03-25 14:20:39 +03:00
t = " readdir-timestamp "
plantestsuite (
" samba3.smbtorture_s3.plain. %s " % t ,
2020-10-16 17:09:33 +03:00
" clusteredmember " ,
2020-03-25 14:20:39 +03:00
[ os . path . join ( samba3srcdir ,
" script/tests/test_smbtorture_s3.sh " ) ,
t ,
' //foo/bar ' ,
' $DOMAIN \\ \\ $DC_USERNAME ' ,
' $DC_PASSWORD ' ,
smbtorture3 ,
" " ,
2020-10-16 17:09:33 +03:00
" -b $PREFIX/clusteredmember/unclists/tmp.txt -N 5 -o 10 " ] )
2020-02-14 18:58:51 +03:00
2021-11-17 18:34:07 +03:00
plantestsuite (
" samba3.net_machine_account " ,
" clusteredmember " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_net_machine_account.sh " ) ,
" bin/net " ,
" $SERVERCONFFILE " ,
" $SERVER_IP " ] )
2020-12-04 22:00:28 +03:00
plantestsuite (
" samba3.net_lookup_ldap " ,
" ad_dc:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_net_lookup.sh " ) ,
' $DC_SERVER ' ,
' $DC_USERNAME ' ,
' $DC_PASSWORD ' ,
" bin/net " ,
" bin/samba-tool " ,
' $DNSNAME ' ] )
2021-01-25 13:48:32 +03:00
plantestsuite ( " samba3.blackbox.force-user-unlink " ,
" maptoguest:local " ,
[ os . path . join ( samba3srcdir ,
" script/tests/test_force_user_unlink.sh " ) ] )
2020-02-14 18:58:51 +03:00
def planclusteredmembertestsuite ( tname , prefix ) :
''' Define a clustered test for the clusteredmember environment '''
tshare = ' tmp '
autharg = ' -U$ {DOMAIN} /$ {DC_USERNAME} % $ {DC_PASSWORD} '
namearg = ' clustered. %s ' % tname
modnamearg = ' samba3. %s ' % namearg
extraargs = ' '
2020-10-16 17:09:33 +03:00
prefix = os . path . join ( prefix , ' clusteredmember ' )
2020-02-14 18:58:51 +03:00
unclist = os . path . join ( prefix , ' unclists/ %s .txt ' % tshare )
unclistarg = ' --unclist= %s ' % unclist
sharearg = ' //$SERVER_IP/ %s ' % tshare
return selftesthelpers . plansmbtorture4testsuite (
namearg ,
2020-10-16 17:09:33 +03:00
' clusteredmember ' ,
2020-02-14 18:58:51 +03:00
[ extraargs , unclistarg , sharearg , autharg , tname ] ,
target = ' samba3 ' ,
modname = modnamearg )
2020-10-16 17:06:36 +03:00
CLUSTERED_TESTS = [ ' smb2.deny.deny2 ' ]
2020-02-14 18:58:51 +03:00
for test in CLUSTERED_TESTS :
planclusteredmembertestsuite ( test , " $PREFIX " )
2020-03-23 15:03:35 +03:00
CLUSTERED_LOCAL_TESTS = [
2020-03-12 18:20:50 +03:00
" ctdbd-conn1 " ,
2020-03-23 15:03:35 +03:00
" local-dbwrap-ctdb1 "
]
for t in CLUSTERED_LOCAL_TESTS :
plantestsuite (
" samba3. %s " % t ,
2020-10-16 17:09:33 +03:00
" clusteredmember:local " ,
2020-03-23 15:03:35 +03:00
[ os . path . join ( samba3srcdir , " script/tests/test_smbtorture_s3.sh " ) ,
t ,
' //foo/bar ' ,
' " " ' ,
' " " ' ,
smbtorture3 ,
2020-03-12 18:20:50 +03:00
" -N 1000 -o 2000 " ] )
2022-08-26 15:00:28 +03:00
2023-01-25 12:46:03 +03:00
if have_smb3_unix_extensions :
planpythontestsuite ( " fileserver " , " samba.tests.smb3unix " )
2022-11-10 20:31:11 +03:00
planpythontestsuite ( " fileserver " , " samba.tests.reparsepoints " )
2022-10-27 13:59:53 +03:00
planpythontestsuite ( " fileserver_smb1 " , " samba.tests.smb2symlink " )
2022-12-14 20:05:04 +03:00
planpythontestsuite ( " fileserver_smb1 " , " samba.tests.smb1posix " )