summaryrefslogtreecommitdiff
path: root/testsuite/build_farm/basicsmb-shareguest.test
blob: 7b0175a66390ac2ae4a6361c9e823243481834f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
. 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
}

password=samba
security=SHARE
( test_smb_conf_setup && ( test_smbpasswd $password ) ) || exit 1

( test_listfilesguestshare $security ) || exit 1