[BACK]Return to channel-test.e CVS log [TXT][DIR] Up to [local] / ircnowd / src / testsuite

Annotation of ircnowd/src/testsuite/channel-test.e, Revision 1.1.1.1

1.1       tomglok     1: # ngIRCd test suite
                      2: # Channel 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 #channel\r"
                     18: expect {
                     19:        timeout { exit 1 }
                     20:        "@* JOIN :#channel"
                     21: }
                     22: expect {
                     23:        timeout { exit 1 }
                     24:        "366"
                     25: }
                     26:
                     27: send "topic #channel :Test-Topic\r"
                     28: expect {
                     29:        timeout { exit 1 }
                     30:        "@* TOPIC #channel :Test-Topic"
                     31: }
                     32:
                     33: send "who #channel\r"
                     34: expect {
                     35:        timeout { exit 1 }
                     36:        "352 nick #channel"
                     37: }
                     38: expect {
                     39:        timeout { exit 1 }
                     40:        "* nick H@ :0 User"
                     41: }
                     42: expect {
                     43:        timeout { exit 1 }
                     44:        "315 nick #channel"
                     45: }
                     46:
                     47: send "names #channel\r"
                     48: expect {
                     49:        timeout { exit 1 }
                     50:        "353 nick = #channel :@nick"
                     51: }
                     52: expect {
                     53:        timeout { exit 1 }
                     54:        "366 nick #channel"
                     55: }
                     56:
                     57: send "list\r"
                     58: expect {
                     59:        timeout { exit 1 }
                     60:        "322 nick #channel 1 :Test-Topic"
                     61: }
                     62: expect {
                     63:        timeout { exit 1 }
                     64:        "323 nick :End of LIST"
                     65: }
                     66:
                     67: send "part #channel :bye bye\r"
                     68: expect {
                     69:        timeout { exit 1 }
                     70:        "@* PART #channel :bye bye"
                     71: }
                     72:
                     73: send "join #channel\r"
                     74: expect {
                     75:        timeout { exit 1 }
                     76:        "@* JOIN :#channel"
                     77: }
                     78: expect {
                     79:        timeout { exit 1 }
                     80:        "366"
                     81: }
                     82:
                     83: send "join #channel2\r"
                     84: expect {
                     85:        timeout { exit 1 }
                     86:        "@* JOIN :#channel2"
                     87: }
                     88: expect {
                     89:        timeout { exit 1 }
                     90:        "366"
                     91: }
                     92:
                     93: send "join 0\r"
                     94: expect {
                     95:        timeout { exit 1 }
                     96:        "@* PART #channel2 :"
                     97: }
                     98: expect {
                     99:        timeout { exit 1 }
                    100:        "@* PART #channel :"
                    101: }
                    102:
                    103: send "quit\r"
                    104: expect {
                    105:        timeout { exit 1 }
                    106:        "Connection closed"
                    107: }

CVSweb