2
# Test misc file operations
7
load_lib env-single.exp
14
if {![spawn_smbclient //$server/$share -U $user]} {
15
perror "error spawning smbclient"
19
# Do wildcard rename test
21
foreach { op } {"!touch /tmp/test.out\r" "lcd /tmp\r" "rm test.out\r" \
24
set action "doing $op"
25
set output [do_smbclient $op $action]
27
if {[regexp "ERR" $output]} {
34
file delete "/tmp/test.out"
38
set output [do_smbclient "rename *.out *.dat\r" "wildcard rename"]
40
if {[regexp "ERR" $output]} {
41
perror "wildcard rename didn't work"
47
set testname "wildcard match"
48
set output [do_smbclient "dir\r" "wildcard rename check"]
50
if {[regexp "test.dat" $output]} {
58
set op "rm test.dat\r"
59
do_smbclient $op "doing $op"