2 # simple test script for lasker
3 # Andrew Tridgell <lasker@tridgell.net>
6 send_user "Usage: test.exp HOSTNAME USERNAME PASSWORD\n"
10 set host [lrange $argv 0 0]
11 set user [lrange $argv 1 1]
12 set pass [lrange $argv 2 2]
16 spawn tseal $host 5000
25 expect "players displayed"
26 expect "indicates system administrator."
31 expect "players displayed"
32 expect "indicates system administrator."
37 expect "See 'help who' for a complete description"
41 expect "zzdf: Command not found."
45 expect "'f' is a global alias for 'finger'"
49 expect -- "-- Matches: "
50 expect "help topics --"
51 expect "clearmessages"
54 send -- "-notify tridge\r"
55 send "+notify tridge\r"
56 expect "added to your notify list."
59 send "+notify tridge\r"
60 expect "is already on your notify list."
64 expect -- "-- notify list: 1 names --"
67 send "toggle notify tridge\r"
68 expect "removed from your notify list."
73 expect "<12> rnbqkbnr pppppppp -------- -------- -------- -------- PPPPPPPP RNBQKBNR"
77 expect "<12> rnbqkbnr pppppppp -------- -------- ----P--- -------- PPPP-PPP RNBQKBNR"
81 expect "<12> rnbqkbnr pppp-ppp -------- ----p--- ----P--- -------- PPPP-PPP RNBQKBNR"
85 expect "You are no longer examining game"
90 expect "Thank you for using a"