3 set testfile [lindex $argv 0]
5 switch -glob -- $testfile {
7 regsub {^tests/} $testfile {} id
8 regsub {\.at$} $id {} id
12 set id "\[[info pid]\]"
13 set tt tests/tmp/[info pid]
18 file mkdir tests/tmp $tt
23 set env(CAFTEST_CAF) $pwd
24 set env(CAFTEST_TMP) $pwd/$tt
26 set env(CAFTEST_NOSRCDUMP) 1
27 set env(LC_ALL) en_GB.utf-8
30 log_file -a $tt/expect.log
32 proc timeout-abort {} {
33 send_log "\r\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
34 error "$id: aborting due to timeout"
40 set m "[list expect [lindex $args end]]"
47 regsub -all { } $str {\W{0,3}\w?} str
59 w3m -config /dev/null -o cgi_bin=$pwd/tests file:///cgi-bin/wrap/Tsuffix
61 expect_after timeout timeout-abort
63 epage {You need to log in}
66 proc fillformfield {value} {
70 proc submitform-expect {wanttxt} {
76 proc loginas {user {password sesame} {wanttxt ACCESSGRANTED}} {
78 fillformfield $password
80 submitform-expect $wanttxt