11 set env(CAFTEST_CAF) $pwd
15 log_file -a $tt/expect.log
17 proc timeout-abort {} {
18 send_log "\r\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
19 error "aborting due to timeout"
23 expect_after timeout timeout-abort
26 set m "[list expect [lindex $args end]]"
33 regsub -all { } $str {\W{0,3}\w?} str
45 w3m -config /dev/null -o cgi_bin=$pwd/tests file:///cgi-bin/wrap/Tsuffix
47 epage {You need to log in}
50 proc fillformfield {value} {
54 proc submitform-expect {wanttxt} {
60 proc loginas {user {password sesame} {wanttxt ACCESSGRANTED}} {
62 fillformfield $password
64 submitform-expect $wanttxt
69 loginas alice bogus "wrong password"
73 etxt {path = '/Tsuffix'}
76 submitform-expect "MAKING-worms"
79 submitform-expect "You have been logged out"
81 send "B\x10/Make sponges\r"
82 submitform-expect "You need to log in"
87 submitform-expect "You have been logged out"
89 send "/Log in again\r"
90 submitform-expect "need to log in"
94 send "BBB\x10/Make sponges\r"
95 submitform-expect "Login session interrupted"