diff options
Diffstat (limited to 'testsuite/build_farm/basicsmb-shareguest.test')
-rw-r--r-- | testsuite/build_farm/basicsmb-shareguest.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/build_farm/basicsmb-shareguest.test b/testsuite/build_farm/basicsmb-shareguest.test new file mode 100644 index 0000000000..4ba445a17e --- /dev/null +++ b/testsuite/build_farm/basicsmb-shareguest.test @@ -0,0 +1,20 @@ +. basicsmb.fns + +test_listfilesguestshare() { + remote_name=$1 + echo $prefix/bin/smbclient //$remote_name/guest_share -n buildclient -U$whoami% -c 'ls' + $prefix/bin/smbclient //$remote_name/guest_share -n buildclient -U$whoami% -c 'ls' + status=$? + if [ $status = 0 ]; then + echo "smbd listed files correctly (guest share)" + else + echo "listing files on a guest share failed with status $status" + return 1 + fi + return 0 +} + +security=SHARE +( test_smb_conf_setup ) || exit 1 + +( test_listfilesguestshare $security ) || exit 1
\ No newline at end of file |