blob: 5e0afab3ac9621b446ac25210c9cf66822c18555 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# ngIRCd test suite
# Channel test
spawn telnet 127.0.0.1 6789
expect {
timeout { exit 1 }
"Connected"
}
send "nick nick\r"
send "user user . . :User\r"
expect {
timeout { exit 1 }
"376"
}
send "join #channel\r"
expect {
timeout { exit 1 }
"@* JOIN :#channel"
}
expect {
timeout { exit 1 }
"366"
}
send "topic #channel :Test-Topic\r"
expect {
timeout { exit 1 }
"@* TOPIC #channel :Test-Topic"
}
send "who #channel\r"
expect {
timeout { exit 1 }
"352 nick #channel"
}
expect {
timeout { exit 1 }
"* nick H@ :0 User"
}
expect {
timeout { exit 1 }
"315 nick #channel"
}
send "names #channel\r"
expect {
timeout { exit 1 }
"353 nick = #channel :@nick"
}
expect {
timeout { exit 1 }
"366 nick #channel"
}
send "list\r"
expect {
timeout { exit 1 }
"322 nick #channel 1 :Test-Topic"
}
expect {
timeout { exit 1 }
"323 nick :End of LIST"
}
send "part #channel :bye bye\r"
expect {
timeout { exit 1 }
"@* PART #channel :bye bye"
}
send "join #channel\r"
expect {
timeout { exit 1 }
"@* JOIN :#channel"
}
expect {
timeout { exit 1 }
"366"
}
send "join #channel2\r"
expect {
timeout { exit 1 }
"@* JOIN :#channel2"
}
expect {
timeout { exit 1 }
"366"
}
send "join 0\r"
expect {
timeout { exit 1 }
"@* PART #channel2 :"
}
expect {
timeout { exit 1 }
"@* PART #channel :"
}
send "quit\r"
expect {
timeout { exit 1 }
"ERROR :Closing connection"
}
|