2 # Test operations
on IPC$ share
7 load_lib env
-single.exp
14 if {![spawn_smbclient
//$server
/ipc\$
-U $user
]} {
15 perror
"error spawning smbclient"
20 # Start performing tests
25 do_smbclient
"lcd /tmp\r" "lcd /tmp"
26 do_smbclient
"!touch test.out\r" "touch test.out"
28 foreach
{ op
} { "dir\r" "put test.out\r" "get test.out\r" \
29 "get /etc/passwd\r" "mkdir foo\r" "print test.out\r" } {
31 set action
"doing $op"
32 set output
[do_smbclient $op $action
]
34 if {![regexp
"ERR" $output]} {