3 set testfile [lindex $argv 0]
13 set env(CAFTEST_CAF) $pwd
15 set env(CAFTEST_NOSRCDUMP) 1
18 log_file -a $tt/expect.log
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
48 w3m -config /dev/null -o cgi_bin=$pwd/tests file:///cgi-bin/wrap/Tsuffix
50 epage {You need to log in}
53 proc fillformfield {value} {
57 proc submitform-expect {wanttxt} {
63 proc loginas {user {password sesame} {wanttxt ACCESSGRANTED}} {
65 fillformfield $password
67 submitform-expect $wanttxt