1 # $Id: misc-test.e,v 1.2 2008/02/17 13:51:00 alex Exp $
3 spawn telnet localhost 6789
10 send "user user . . :User\r"
16 # RFC 2812 Section 3.4.1
32 send "motd ngircd.test.server\r"
46 send "motd doesnotexist\r"
50 # note this is not specified in RFC 2812, but probably should be
53 # RFC 2812 Section 3.4.3
61 send "version ngircd.test.server\r"
67 send "version doesnotexist\r"
73 # RFC 2812 Section 3.4.6
81 send "time ngircd.test.server\r"
87 send "time doesnotexist\r"
93 # RFC 2812 Section 3.4.10
105 # RFC 2812 Section 4.5
113 # RFC 2812 Section 4.6
121 # RFC 2812 Section 4.8
129 send "userhost nick\r"
132 -re ":ngircd.test.server 302 nick :?nick=+.*@(localhos.*|127.0.0.1)"
135 send "userhost doesnotexist\r"
138 ":ngircd.test.server 302 nick :\r"
141 send "userhost nick doesnotexist nick doesnotexist\r"
144 -re ":ngircd.test.server 302 nick :nick=+.*@(localhos.*|127.0.0.1) nick=+.*@(localhos.*|127.0.0.1)"
147 send "away :testing\r"
153 send "userhost nick nick nick nick nick nick\r"
156 -re ":ngircd.test.server 302 nick :nick=-.*@(localhos.*|127.0.0.1) nick=-.*@(localhos.*|127.0.0.1) nick=-.*@(localhos.*|127.0.0.1) nick=-.*@(localhos.*|127.0.0.1) nick=-.*@(localhos.*|127.0.0.1)\r"