11 set env(CAFTEST_CAF) $pwd
15 log_file -a $tt/expect.log
18 w3m -config /dev/null -o cgi_bin=$pwd/tests file:///cgi-bin/wrap/Tsuffix
20 proc timeout-abort {} {
21 send_log "\r\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
22 error "aborting due to timeout"
26 expect_after timeout timeout-abort
29 set m "[list expect [lindex $args end]]"
36 regsub -all { } $str {\W{0,3}\w?} str
44 epage {You need to log in}
46 proc fillformfield {value} {
50 proc submitform-expect {wanttxt} {
58 submitform-expect "wrong password"
62 submitform-expect "ACCESSGRANTED"
64 etxt {path = '/Tsuffix'}