mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
s4:selftest: change the blackbox.smbclient test to use binary mapping for smbclient
This commit is contained in:
parent
4b07193705
commit
11a2eeabaa
@ -5,7 +5,7 @@
|
||||
|
||||
if [ $# -lt 5 ]; then
|
||||
cat <<EOF
|
||||
Usage: test_smbclient.sh SERVER USERNAME PASSWORD DOMAIN PREFIX
|
||||
Usage: test_smbclient.sh SERVER USERNAME PASSWORD DOMAIN PREFIX SMBCLIENT
|
||||
EOF
|
||||
exit 1;
|
||||
fi
|
||||
@ -15,12 +15,10 @@ USERNAME=$2
|
||||
PASSWORD=$3
|
||||
DOMAIN=$4
|
||||
PREFIX=$5
|
||||
shift 5
|
||||
smbclient=$6
|
||||
shift 6
|
||||
failed=0
|
||||
|
||||
samba4bindir="$BINDIR"
|
||||
smbclient="$samba4bindir/smbclient"
|
||||
|
||||
. `dirname $0`/../../../testprogs/blackbox/subunit.sh
|
||||
|
||||
runcmd() {
|
||||
|
@ -34,6 +34,7 @@ else:
|
||||
validate_list = []
|
||||
|
||||
nmblookup = binpath('nmblookup4')
|
||||
smbclient = binpath('smbclient4')
|
||||
|
||||
def plansmbtorturetestsuite(name, env, options, modname=None):
|
||||
if modname is None:
|
||||
@ -330,7 +331,7 @@ plansmbtorturetestsuite('rpc.echo', "s4member", ['ncacn_np:$NETBIOSNAME', '-U$DO
|
||||
plansmbtorturetestsuite('rpc.samr', "s4member", ['ncacn_np:$NETBIOSNAME', '-U$NETBIOSNAME/$USERNAME%$PASSWORD'], "samba4.rpc.samr against s4member server with local creds")
|
||||
plansmbtorturetestsuite('rpc.samr.users', "s4member", ['ncacn_np:$NETBIOSNAME', '-U$NETBIOSNAME/$USERNAME%$PASSWORD'], "samba4.rpc.samr.users against s4member server with local creds",)
|
||||
plansmbtorturetestsuite('rpc.samr.passwords', "s4member", ['ncacn_np:$NETBIOSNAME', '-U$NETBIOSNAME/$USERNAME%$PASSWORD'], "samba4.rpc.samr.passwords against s4member server with local creds")
|
||||
plantestsuite("samba4.blackbox.smbclient against s4member server with local creds", "s4member", [os.path.join(samba4srcdir, "client/tests/test_smbclient.sh"), '$NETBIOSNAME', '$USERNAME', '$PASSWORD', '$NETBIOSNAME', '$PREFIX'])
|
||||
plantestsuite("samba4.blackbox.smbclient against s4member server with local creds", "s4member", [os.path.join(samba4srcdir, "client/tests/test_smbclient.sh"), '$NETBIOSNAME', '$USERNAME', '$PASSWORD', '$NETBIOSNAME', '$PREFIX', smbclient])
|
||||
|
||||
# RPC Proxy
|
||||
plansmbtorturetestsuite("rpc.echo", "rpc_proxy", ['ncacn_ip_tcp:$NETBIOSNAME', '-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'], modname="samba4.rpc.echo against rpc proxy with domain creds")
|
||||
|
Loading…
x
Reference in New Issue
Block a user