]> arthur.barton.de Git - ngircd-alex.git/blob - src/testsuite/join-test.e
Make configure[.ng] compatible with autoconf 1.10 again
[ngircd-alex.git] / src / testsuite / join-test.e
1 spawn telnet localhost 6789
2 expect {
3        timeout { exit 1 }
4        "Connected"
5 }
6
7 send "nick nick\r"
8 send "user user . . :User\r"
9 expect {
10        timeout { exit 1 }
11        "376"
12 }
13
14 send "JOIN\r"
15 expect {
16        timeout { exit 1}
17        "461"
18 }
19
20 send "JOIN #InviteChannel\r"
21 expect {
22        timeout { exit 1 }
23        "473"
24 }
25
26 send "JOIN #FullKeyed\r"
27 expect {
28        timeout { exit 1 }
29        "475"
30 }
31
32 send "JOIN #FullKeyed WrongKey\r"
33 expect {
34        timeout { exit 1 }
35        "475"
36 }
37
38 send "JOIN #FullKeyed Secret\r"
39 expect {
40        timeout { exit 1 }
41        "471"
42 }
43
44 send "JOIN #TopicChannel\r"
45 expect {
46        timeout { exit 1 }
47        "@* JOIN :#TopicChannel"
48 }
49 expect {
50        timeout { exit 1 }
51        "332"
52 }
53
54 send "JOIN 0\r"
55 send "JOIN #1,#2,#3,#4\r"
56 send "JOIN #5\r"
57 expect {
58        timeout { exit 1 }
59        "405"
60 }
61
62 send "quit\r"
63 expect {
64        timeout { exit 1 }
65        "Connection closed"
66 }
67
68 # -eof-