3 set testfile [lindex $argv 0]
13 set env(CAFTEST_CAF) $pwd
15 set env(CAFTEST_NOSRCDUMP) 1
16 set env(LC_ALL) en_GB.utf-8
19 log_file -a $tt/expect.log
21 proc timeout-abort {} {
22 send_log "\r\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
23 error "aborting due to timeout"
27 expect_after timeout timeout-abort
30 set m "[list expect [lindex $args end]]"
37 regsub -all { } $str {\W{0,3}\w?} str
49 w3m -config /dev/null -o cgi_bin=$pwd/tests file:///cgi-bin/wrap/Tsuffix
51 epage {You need to log in}
54 proc fillformfield {value} {
58 proc submitform-expect {wanttxt} {
64 proc loginas {user {password sesame} {wanttxt ACCESSGRANTED}} {
66 fillformfield $password
68 submitform-expect $wanttxt