2 # Blackbox tests for substitutions
4 # Copyright (c) 2016 Andreas Schneider <asn@samba.org>
8 Usage: test_substitutions.sh SERVER USERNAME PASSWORD PREFIX
20 samba_bindir
="$BINDIR"
21 samba_srcdir
="$SRCDIR"
22 smbclient
="$samba_bindir/smbclient"
24 .
$samba_srcdir/testprogs
/blackbox
/subunit.sh
25 .
$samba_srcdir/testprogs
/blackbox
/common_test_fns.inc
27 SMB_UNC
="//$SERVER/subDUG"
29 test_smbclient
"Test login to share with substitution" \
30 "ls" "$SMB_UNC" "-U$USERNAME%$PASSWORD" || failed
=$
(expr $failed + 1)