]> arthur.barton.de Git - ngircd-alex.git/blob - src/testsuite/join-test.e
Clarify that "CAFile" is not set by default
[ngircd-alex.git] / src / testsuite / join-test.e
1 # ngIRCd test suite
2 # JOIN test
3
4 spawn telnet 127.0.0.1 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 send "JOIN 0\r"
65
66 send "JoIn #MultiMode\r"
67 expect {
68        timeout { exit 1 }
69        "474 nick #MultiMode"
70 }
71
72 send "OPer TestOp 123\r"
73 expect {
74         timeout { exit 1 }
75         "381"
76 }
77
78 send "Mode #MultiMode -b nick!~user\r"
79 expect {
80        timeout { exit 1 }
81         "MODE #MultiMode -b nick!~user@*"
82 }
83
84 send "jOiN #MULTIMODE\r"
85 expect {
86        timeout { exit 1 }
87        "@* JOIN :#MULTIMODE"
88 }
89 expect {
90        timeout { exit 1 }
91        "366"
92 }
93 send "ModE #MULTImode\r"
94 expect {
95        timeout { exit 1 }
96        "324 nick #MultiMode +Pnt"
97 }
98 send "mODe #multimode +b\r"
99 expect {
100        timeout { exit 1 }
101        "367 nick #MultiMode banned!~ghost@example.com ngircd.test.server"
102 }
103 expect {
104        timeout { exit 1 }
105        "368 nick #MultiMode"
106 }
107
108 send "quit\r"
109 expect {
110        timeout { exit 1 }
111        "ERROR :Closing connection"
112 }