3 # this runs the file serving tests that are expected to pass with samba3 against shares with various options
7 Usage: test_smbclient_machine_auth.sh SERVER SMBCLIENT CONFIGURATION <smbclient arguments>
14 # This is used by test_smbclient()
15 # shellcheck disable=2034
20 # This is used by test_smbclient()
21 # shellcheck disable=2034
22 smbclient
="${VALGRIND} ${SMBCLIENT}"
24 incdir
="$(dirname "${0}")/../../../testprogs/blackbox"
25 .
"${incdir}/subunit.sh"
26 .
"${incdir}/common_test_fns.inc"
30 test_smbclient
"smbclient //${SERVER}/tmp" \
31 "quit" "//${SERVER}/tmp" --machine-pass -p 139 "${ADDARGS}" || \
32 failed
=$
((failed
+ 1))
34 # Testing these here helps because we know the machine account isn't already
36 test_smbclient
"smbclient //${SERVER}/forceuser" \
37 "quit" "//${SERVER}/forceuser" --machine-pass -p 139 "${ADDARGS}" || \
38 failed
=$
((failed
+ 1))
40 test_smbclient
"smbclient //${SERVER}/forcegroup" \
41 "quit" "//${SERVER}/forcegroup" --machine-pass -p 139 "${ADDARGS}" || \
42 failed
=$
((failed
+ 1))