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