3 # this runs the file serving tests that are expected to pass with samba3
7 Usage: test_smbclient_s3.sh SERVER SERVER_IP DOMAIN USERNAME PASSWORD USERID LOCAL_PATH PREFIX SMBCLIENT WBINFO NET
23 SMBCLIENT
="$VALGRIND ${SMBCLIENT}"
24 WBINFO
="$VALGRIND ${WBINFO}"
28 incdir
=`dirname $0`/..
/..
/..
/testprogs
/blackbox
33 # Test that a noninteractive smbclient does not prompt
34 test_noninteractive_no_prompt
()
38 cmd
='echo du | $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS 2>&1'
49 echo "$out" |
grep $prompt >/dev
/null
2>&1
52 # got a prompt .. fail
53 echo matched interactive prompt
in non-interactive mode
60 # Test that an interactive smbclient prompts to stdout
61 test_interactive_prompt_stdout
()
64 tmpfile
=$PREFIX/smbclient_interactive_prompt_commands
71 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
77 if [ $ret != 0 ] ; then
84 echo "$out" |
grep $prompt >/dev
/null
2>&1
87 # got a prompt .. succeed
90 echo failed to match interactive prompt on stdout
95 # Test creating a bad symlink and deleting it.
98 prompt
="posix_unlink deleted file /newname"
99 tmpfile
=$PREFIX/smbclient_bad_symlinks_commands
104 symlink badname newname
109 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
115 if [ $ret != 0 ] ; then
117 echo "failed create then delete bad symlink with error $ret"
122 echo "$out" |
grep "$prompt" >/dev
/null
2>&1
125 if [ $ret = 0 ] ; then
126 # got the correct prompt .. succeed
130 echo "failed create then delete bad symlink - grep failed with $ret"
135 # Test creating a good symlink and deleting it by path.
138 tmpfile
=$PREFIX/smbclient.
in.$$
139 slink_name
="$LOCAL_PATH/slink"
140 slink_target
="$LOCAL_PATH/slink_target"
143 ln -s $slink_target $slink_name
149 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
155 if [ $ret != 0 ] ; then
157 echo "failed delete good symlink with error $ret"
164 if [ ! -e $slink_target ] ; then
165 echo "failed delete good symlink - symlink target deleted !"
172 if [ -e $slink_name ] ; then
173 echo "failed delete good symlink - symlink still exists"
178 # got the correct prompt .. succeed
184 # Test writing into a read-only directory (logon as guest) fails.
187 prompt
="NT_STATUS_ACCESS_DENIED making remote directory"
188 tmpfile
=$PREFIX/smbclient.
in.$$
191 ## We can't do this as non-root. We always have rights to
192 ## create the directory.
194 if [ "$USERID" != 0 ] ; then
195 echo "skipping test_read_only_dir as non-root"
201 ## We can't do this with an encrypted connection. No credentials
202 ## to set up the channel.
204 if [ "$ADDARGS" = "-e" ] ; then
205 echo "skipping test_read_only_dir with encrypted connection"
215 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT -U% "//$SERVER/$1" -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
221 if [ $ret != 0 ] ; then
223 echo "failed writing into read-only directory with error $ret"
229 echo "$out" |
grep "$prompt" >/dev
/null
2>&1
232 if [ $ret = 0 ] ; then
233 # got the correct prompt .. succeed
237 echo "failed writing into read-only directory - grep failed with $ret"
243 # Test sending a message
246 tmpfile
=$PREFIX/message_in.$$
249 Test message from pid $$
252 cmd
='$SMBCLIENT "$@" -U$USERNAME%$PASSWORD -M $SERVER -p 139 $ADDARGS -n msgtest < $tmpfile 2>&1'
257 if [ $ret != 0 ] ; then
259 echo "failed sending message to $SERVER with error $ret"
265 # The server writes this into a file message.msgtest, via message.%m to test the % sub code
266 cmd
='$SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmpguest -p 139 $ADDARGS -c "get message.msgtest $PREFIX/message_out.$$" 2>&1'
271 if [ $ret != 0 ] ; then
273 echo "failed getting sent message from $SERVER with error $ret"
278 if [ cmp $PREFIX/message_out.$$
$tmpfile != 0 ] ; then
279 echo "failed comparison of message from $SERVER"
286 # Test reading an owner-only file (logon as guest) fails.
287 test_owner_only_file
()
289 prompt
="NT_STATUS_ACCESS_DENIED opening remote file"
290 tmpfile
=$PREFIX/smbclient.
in.$$
293 ## We can't do this as non-root. We always have rights to
296 if [ "$USERID" != 0 ] ; then
297 echo "skipping test_owner_only_file as non-root"
303 ## We can't do this with an encrypted connection. No credentials
304 ## to set up the channel.
306 if [ "$ADDARGS" = "-e" ] ; then
307 echo "skipping test_owner_only_file with encrypted connection"
317 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U% //$SERVER/ro-tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
323 if [ $ret != 0 ] ; then
325 echo "failed reading owner-only file with error $ret"
330 echo "$out" |
grep "$prompt" >/dev
/null
2>&1
333 if [ $ret = 0 ] ; then
334 # got the correct prompt .. succeed
338 echo "failed reading owner-only file - grep failed with $ret"
343 # Test accessing an msdfs path.
346 tmpfile
=$PREFIX/smbclient.
in.$$
347 prompt
=" msdfs-target "
356 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/msdfs-share -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
362 if [ $ret != 0 ] ; then
364 echo "failed accessing \\msdfs-src1 link with error $ret"
369 echo "$out" |
grep "$prompt" >/dev
/null
2>&1
372 if [ $ret != 0 ] ; then
374 echo "failed listing \\msdfs-src1 - grep failed with $ret"
380 cd \\deeppath\\msdfs-src2
385 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/msdfs-share -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
391 if [ $ret != 0 ] ; then
393 echo "failed accessing \\deeppath\\msdfs-src2 link with error $ret"
398 echo "$out" |
grep "$prompt" >/dev
/null
2>&1
401 if [ $ret != 0 ] ; then
403 echo "failed listing \\deeppath\\msdfs-src2 - grep failed with $ret"
412 # Archive bits are correctly set on file/dir creation and rename.
413 test_rename_archive_bit
()
415 prompt_file
="attributes: A (20)"
416 prompt_dir
="attributes: D (10)"
417 tmpfile
="$PREFIX/smbclient.in.$$"
419 filename_ren
="bar.$$"
421 dirname_ren
="bardir.$$"
422 filename_path
="$PREFIX/$filename"
423 local_name1
="$LOCAL_PATH/$filename"
424 local_name2
="$LOCAL_PATH/$filename_ren"
425 local_dir_name1
="$LOCAL_PATH/$dirname"
426 local_dir_name2
="$LOCAL_PATH/$dirname_ren"
432 # Create a new file, ensure it has 'A' attributes.
442 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
448 if [ $ret != 0 ] ; then
450 echo "failed creating file $filename with error $ret"
455 echo "$out" |
grep "$prompt_file" >/dev
/null
2>&1
463 if [ $ret = 0 ] ; then
464 # got the correct prompt .. succeed
468 echo "Attributes incorrect on new file $ret"
472 # Now check if we remove 'A' and rename, the A comes back.
479 ren $filename $filename_ren
480 allinfo $filename_ren
484 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
490 if [ $ret != 0 ] ; then
492 echo "failed creating file and renaming $filename with error $ret"
497 echo "$out" |
grep "$prompt_file" >/dev
/null
2>&1
505 if [ $ret = 0 ] ; then
506 # got the correct prompt .. succeed
510 echo "Attributes incorrect on renamed file $ret"
514 rm -rf $local_dir_name1
515 rm -rf $local_dir_name2
517 # Create a new directory, ensure it has 'D' but not 'A' attributes.
525 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
531 if [ $ret != 0 ] ; then
533 echo "failed creating directory $dirname with error $ret"
538 echo "$out" |
grep "$prompt_dir" >/dev
/null
2>&1
542 rm -rf $local_dir_name1
543 rm -rf $local_dir_name2
545 if [ $ret = 0 ] ; then
546 # got the correct prompt .. succeed
550 echo "Attributes incorrect on new directory $ret"
554 # Now check if we rename, we still only have 'D' attributes
558 ren $dirname $dirname_ren
563 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
569 if [ $ret != 0 ] ; then
571 echo "failed creating directory $dirname and renaming with error $ret"
576 echo "$out" |
grep "$prompt_dir" >/dev
/null
2>&1
583 if [ $ret = 0 ] ; then
584 # got the correct prompt .. succeed
588 echo "Attributes incorrect on renamed directory $ret"
593 # Test authenticating using the winbind ccache
596 $WBINFO --ccache-save="${USERNAME}%${PASSWORD}"
599 if [ $ret != 0 ] ; then
600 echo "wbinfo failed to store creds in cache (user='${USERNAME}', pass='${PASSWORD}')"
605 $SMBCLIENT //$SERVER_IP/tmp
-C -U "${USERNAME}" \
609 if [ $ret != 0 ] ; then
610 echo "smbclient failed to use cached credentials"
615 $WBINFO --ccache-save="${USERNAME}%GarBage"
618 if [ $ret != 0 ] ; then
619 echo "wbinfo failed to store creds in cache (user='${USERNAME}', pass='GarBage')"
624 $SMBCLIENT //$SERVER_IP/tmp
-C -U "${USERNAME}" \
628 if [ $ret -eq 0 ] ; then
629 echo "smbclient succeeded with wrong cached credentials"
637 # Test authenticating using the winbind ccache
640 tmpfile
=$PREFIX/smbclient.
in.$$
646 $SMBCLIENT //$SERVER_IP/tmp
--authentication-file=$tmpfile \
651 if [ $ret != 0 ] ; then
652 echo "smbclient failed to use auth file"
662 $SMBCLIENT //$SERVER_IP/tmp
--authentication-file=$tmpfile\
667 if [ $ret -eq 0 ] ; then
668 echo "smbclient succeeded with wrong auth file credentials"
674 # Test doing a directory listing with backup privilege.
675 test_backup_privilege_list
()
677 tmpfile
=$PREFIX/smbclient_backup_privilege_list
679 # If we don't have a DOMAIN component to the username, add it.
680 echo "$USERNAME" |
grep '\\' 2>&1
682 if [ $ret != 0 ] ; then
683 priv_username
="$DOMAIN\\$USERNAME"
685 priv_username
=$USERNAME
688 $NET sam rights grant
$priv_username SeBackupPrivilege
2>&1
690 if [ $ret != 0 ] ; then
691 echo "Failed to add SeBackupPrivilege to user $priv_username - $ret"
702 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
708 if [ $ret != 0 ] ; then
710 echo "failed backup privilege list $ret"
715 # Now remove all privileges from this SID.
716 $NET sam rights revoke
$priv_username SeBackupPrivilege
2>&1
718 if [ $ret != 0 ] ; then
719 echo "failed to remove SeBackupPrivilege from user $priv_username - $ret"
725 # Test accessing an share with bad names (won't convert).
728 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/badname-tmp -I $SERVER_IP $ADDARGS -c ls 2>&1'
733 if [ $ret != 0 ] ; then
735 echo "failed accessing badname-tmp (SMB1) with error $ret"
740 echo "$out" |
wc -l 2>&1 |
grep 6
742 if [ $ret != 0 ] ; then
744 echo "failed listing \\badname-tmp - grep of number of lines (1) failed with $ret"
748 echo "$out" |
grep 'Domain=.*OS=.*Server='
750 if [ $ret != 0 ] ; then
752 echo "failed listing \\badname-tmp - grep (1) failed with $ret"
756 echo "$out" |
grep '^ \. *D'
758 if [ $ret != 0 ] ; then
760 echo "failed listing \\badname-tmp - grep (2) failed with $ret"
764 echo "$out" |
grep '^ \.\. *D'
766 if [ $ret != 0 ] ; then
768 echo "failed listing \\badname-tmp - grep (3) failed with $ret"
772 echo "$out" |
grep '^ blank.txt *N'
774 if [ $ret != 0 ] ; then
776 echo "failed listing \\badname-tmp - grep (4) failed with $ret"
780 echo "$out" |
grep '^ *$'
782 if [ $ret != 0 ] ; then
784 echo "failed listing \\badname-tmp - grep (5) failed with $ret"
788 echo "$out" |
grep 'blocks of size.*blocks available'
790 if [ $ret != 0 ] ; then
792 echo "failed listing \\badname-tmp - grep (6) failed with $ret"
796 # Now check again with -mSMB3
797 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/badname-tmp -I $SERVER_IP -mSMB3 $ADDARGS -c ls 2>&1'
802 if [ $ret != 0 ] ; then
804 echo "failed accessing badname-tmp (SMB3) with error $ret"
809 echo "$out" |
wc -l 2>&1 |
grep 6
811 if [ $ret != 0 ] ; then
813 echo "failed listing \\badname-tmp - SMB3 grep of number of lines (1) failed with $ret"
817 echo "$out" |
grep 'Domain=.*OS=.*Server='
819 if [ $ret != 0 ] ; then
821 echo "failed listing \\badname-tmp - SMB3 grep (1) failed with $ret"
825 echo "$out" |
grep '^ \. *D'
827 if [ $ret != 0 ] ; then
829 echo "failed listing \\badname-tmp - SMB3 grep (2) failed with $ret"
833 echo "$out" |
grep '^ \.\. *D'
835 if [ $ret != 0 ] ; then
837 echo "failed listing \\badname-tmp - SMB3 grep (3) failed with $ret"
841 echo "$out" |
grep '^ blank.txt *N'
843 if [ $ret != 0 ] ; then
845 echo "failed listing \\badname-tmp - SMB3 grep (4) failed with $ret"
849 echo "$out" |
grep '^ *$'
851 if [ $ret != 0 ] ; then
853 echo "failed listing \\badname-tmp - SMB3 grep (5) failed with $ret"
857 echo "$out" |
grep 'blocks of size.*blocks available'
859 if [ $ret != 0 ] ; then
861 echo "failed listing \\badname-tmp - SMB3 grep (6) failed with $ret"
866 # Test accessing an share with a name that must be mangled - with acl_xattrs.
867 # We know foo:bar gets mangled to FF4GBY~Q with the default name-mangling algorithm (hash2).
870 tmpfile
=$PREFIX/smbclient_interactive_prompt_commands
877 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/manglenames_share -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
883 if [ $ret != 0 ] ; then
885 echo "failed accessing manglenames_share with error $ret"
890 echo "$out" |
grep 'NT_STATUS'
892 if [ $ret == 0 ] ; then
894 echo "failed - NT_STATUS_XXXX listing \\manglenames_share\\FF4GBY~Q"
899 # Test using scopy to copy a file on the server.
902 tmpfile
=$PREFIX/smbclient_interactive_prompt_commands
903 scopy_file
=$PREFIX/scopy_file
908 scopy smbclient scopy_file
915 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -mSMB3 -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
919 out1
=`md5sum ${SMBCLIENT} | sed -e 's/ .*//'`
920 out2
=`md5sum ${scopy_file} | sed -e 's/ .*//'`
924 if [ $ret != 0 ] ; then
926 echo "failed scopy test (1) with output $ret"
931 if [ $out1 != $out2 ] ; then
933 echo "failed md5sum (1)"
938 # Now do again using SMB1
939 # to force client-side fallback.
944 scopy smbclient scopy_file
951 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -mNT1 -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
955 out1
=`md5sum ${SMBCLIENT} | sed -e 's/ .*//'`
956 out2
=`md5sum ${scopy_file} | sed -e 's/ .*//'`
960 if [ $ret != 0 ] ; then
962 echo "failed scopy test (2) with output $ret"
967 if [ $out1 != $out2 ] ; then
969 echo "failed md5sum (2)"
974 # Test creating a stream on the root of the share directory filname - :foobar
975 test_toplevel_stream
()
977 tmpfile
=$PREFIX/smbclient_interactive_prompt_commands
979 put ${PREFIX}/smbclient_interactive_prompt_commands :foobar
984 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP -mSMB3 $ADDARGS < $tmpfile 2>&1'
990 if [ $ret != 0 ] ; then
992 echo "failed creating toplevel stream :foobar with error $ret"
997 echo "$out" |
grep '^stream:.*:foobar'
999 if [ $ret != 0 ] ; then
1001 echo "failed creating toplevel stream :foobar"
1006 # Test wide links are restricted.
1009 tmpfile
=$PREFIX/smbclient_interactive_prompt_commands
1010 cat > $tmpfile <<EOF
1015 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/widelinks_share -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
1021 if [ $ret != 0 ] ; then
1023 echo "failed accessing widelinks_share with error $ret"
1028 echo "$out" |
grep 'NT_STATUS'
1030 if [ $ret == 0 ] ; then
1032 echo "failed - NT_STATUS_XXXX listing \\widelinks_share\\dot"
1036 cat > $tmpfile <<EOF
1040 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/widelinks_share -I $SERVER_IP $ADDARGS < $tmpfile 2>&1'
1046 if [ $ret != 0 ] ; then
1048 echo "failed accessing widelinks_share with error $ret"
1053 # This should fail with NT_STATUS_ACCESS_DENIED
1054 echo "$out" |
grep 'NT_STATUS_ACCESS_DENIED'
1056 if [ $ret != 0 ] ; then
1058 echo "failed - should get NT_STATUS_ACCESS_DENIED listing \\widelinks_share\\source"
1063 # Test creating then deleting a stream file doesn't leave a lost-XXXXX directory.
1064 test_streams_depot_delete
()
1066 tmpfile
=$PREFIX/smbclient_interactive_prompt_commands
1067 rm -rf "$LOCAL_PATH/lost-*"
1069 cat > $tmpfile <<EOF
1070 put ${PREFIX}/smbclient_interactive_prompt_commands foo:bar
1075 cmd
='CLI_FORCE_INTERACTIVE=yes $SMBCLIENT "$@" -U$USERNAME%$PASSWORD //$SERVER/tmp -I $SERVER_IP -mSMB3 $ADDARGS < $tmpfile 2>&1'
1081 if [ $ret != 0 ] ; then
1083 echo "failed creating then deleting foo:bar with error $ret"
1088 echo "$out" |
grep 'NT_STATUS_NO_SUCH_FILE listing \\lost\*'
1090 if [ $ret != 0 ] ; then
1092 echo "deleting foo:bar left lost-XXX directory"
1093 rm -rf "$LOCAL_PATH/lost-*"
1100 LOGDIR_PREFIX
=test_smbclient_s3
1102 # possibly remove old logdirs:
1104 for OLDDIR
in $
(find ${PREFIX} -type d
-name "${LOGDIR_PREFIX}_*") ; do
1105 echo "removing old directory ${OLDDIR}"
1109 LOGDIR
=$
(mktemp
-d ${PREFIX}/${LOGDIR_PREFIX}_XXXXXX
)
1112 testit
"smbclient -L $SERVER_IP" $SMBCLIENT -L $SERVER_IP -N -p 139 || failed
=`expr $failed + 1`
1113 testit
"smbclient -L $SERVER -I $SERVER_IP" $SMBCLIENT -L $SERVER -I $SERVER_IP -N -p 139 -c quit || failed
=`expr $failed + 1`
1115 testit
"noninteractive smbclient does not prompt" \
1116 test_noninteractive_no_prompt || \
1117 failed
=`expr $failed + 1`
1119 testit
"noninteractive smbclient -l does not prompt" \
1120 test_noninteractive_no_prompt
-l $LOGDIR || \
1121 failed
=`expr $failed + 1`
1123 testit
"interactive smbclient prompts on stdout" \
1124 test_interactive_prompt_stdout || \
1125 failed
=`expr $failed + 1`
1127 testit
"interactive smbclient -l prompts on stdout" \
1128 test_interactive_prompt_stdout
-l $LOGDIR || \
1129 failed
=`expr $failed + 1`
1131 testit
"creating a bad symlink and deleting it" \
1132 test_bad_symlink || \
1133 failed
=`expr $failed + 1`
1135 testit
"creating a good symlink and deleting it by path" \
1136 test_good_symlink || \
1137 failed
=`expr $failed + 1`
1139 testit
"writing into a read-only directory fails" \
1140 test_read_only_dir ro-tmp || \
1141 failed
=`expr $failed + 1`
1143 testit
"writing into a read-only share fails" \
1144 test_read_only_dir valid-users-tmp || \
1145 failed
=`expr $failed + 1`
1147 testit
"Reading a owner-only file fails" \
1148 test_owner_only_file || \
1149 failed
=`expr $failed + 1`
1151 testit
"Accessing an MS-DFS link" \
1152 test_msdfs_link || \
1153 failed
=`expr $failed + 1`
1155 testit
"Ensure archive bit is set correctly on file/dir rename" \
1156 test_rename_archive_bit || \
1157 failed
=`expr $failed + 1`
1159 testit
"ccache access works for smbclient" \
1160 test_ccache_access || \
1161 failed
=`expr $failed + 1`
1163 testit
"sending a message to the remote server" \
1165 failed
=`expr $failed + 1`
1167 testit
"using an authentication file" \
1169 failed
=`expr $failed + 1`
1171 testit
"list with backup privilege" \
1172 test_backup_privilege_list || \
1173 failed
=`expr $failed + 1`
1175 testit
"list a share with bad names (won't convert)" \
1177 failed
=`expr $failed + 1`
1179 testit
"list a share with a mangled name + acl_xattr object" \
1180 test_mangled_names || \
1181 failed
=`expr $failed + 1`
1183 testit
"server-side file copy" \
1185 failed
=`expr $failed + 1`
1187 testit
"creating a :stream at root of share" \
1188 test_toplevel_stream || \
1189 failed
=`expr $failed + 1`
1191 testit
"Ensure widelinks are restricted" \
1193 failed
=`expr $failed + 1`
1195 testit
"streams_depot can delete correctly" \
1196 test_streams_depot_delete || \
1197 failed
=`expr $failed + 1`
1199 testit
"rm -rf $LOGDIR" \
1201 failed
=`expr $failed + 1`