3 set testfile [lindex $argv 0]
13 set env(CAFTEST_CAF) $pwd
17 log_file -a $tt/expect.log
19 proc timeout-abort {} {
20 send_log "\r\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
21 error "aborting due to timeout"
25 expect_after timeout timeout-abort
28 set m "[list expect [lindex $args end]]"
35 regsub -all { } $str {\W{0,3}\w?} str
47 w3m -config /dev/null -o cgi_bin=$pwd/tests file:///cgi-bin/wrap/Tsuffix
49 epage {You need to log in}
52 proc fillformfield {value} {
56 proc submitform-expect {wanttxt} {
62 proc loginas {user {password sesame} {wanttxt ACCESSGRANTED}} {
64 fillformfield $password
66 submitform-expect $wanttxt