s3-rpcclient: fix getform command asprintf return code.
[Samba.git] / testsuite / build_farm / basicsmb-sharelist.test
blob188e985658d35523b2d89789c09af78391252b01
1 . basicsmb.fns
2 test_sharelist() {
3         echo $prefix/bin/smbclient -U$whoami% -L localhost
4         $prefix/bin/smbclient -U$whoami% -L localhost
5         status=$?
6         if [ $status = 0 ]; then
7                 echo "smbd listed shares OK"
8         else
9                 echo "listing shares with smbd failed with status $status"
10                 return 1
11         fi
12         return 0
15 # Need guest account
16 password=samba
17 security=USER
18 (test_smb_conf_setup && test_smbpasswd $password ) || exit 1
20 test_sharelist || exit 1