diff options
Diffstat (limited to 'testsuite/build_farm/basicsmb-listfilesauth.test')
-rw-r--r-- | testsuite/build_farm/basicsmb-listfilesauth.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/build_farm/basicsmb-listfilesauth.test b/testsuite/build_farm/basicsmb-listfilesauth.test new file mode 100644 index 0000000000..4ec72fd2b9 --- /dev/null +++ b/testsuite/build_farm/basicsmb-listfilesauth.test @@ -0,0 +1,22 @@ +. basicsmb.fns + +test_listfilesauth() { + echo $prefix/bin/smbclient //localhost/samba -U$whoami%$password -c 'ls' + $prefix/bin/smbclient //localhost/samba -U$whoami%$password -c 'ls' + status=$? + if [ $status = 0 ]; then + echo "listed files OK" + else + echo "listing files with smbd failed with status $status" + return 1 + fi + return 0 +} + +password=samba + +(test_smb_conf_setup && test_smbpasswd) || exit 1 + +test_listfilesauth || exit 1 + + |