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

Annotation of ircnowd/src/testsuite/mode-test.e, Revision 1.1

1.1     ! tomglok     1: # ngIRCd test suite
        !             2: # MODE 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 "mode nick +i\r"
        !            18: expect {
        !            19:        timeout { exit 1 }
        !            20:        "@* MODE nick :+i"
        !            21: }
        !            22:
        !            23: send "mode nick\r"
        !            24: expect {
        !            25:        timeout { exit 1 }
        !            26:        "221 nick +i"
        !            27: }
        !            28:
        !            29: send "mode nick -i\r"
        !            30: expect {
        !            31:        timeout { exit 1 }
        !            32:        "@* MODE nick :-i"
        !            33: }
        !            34:
        !            35: send "join #usermode\r"
        !            36: expect {
        !            37:        timeout { exit 1 }
        !            38:        "@* JOIN :#usermode"
        !            39: }
        !            40: expect {
        !            41:        timeout { exit 1 }
        !            42:        "366"
        !            43: }
        !            44:
        !            45: send "mode #usermode +v nick\r"
        !            46: expect {
        !            47:        timeout { exit 1 }
        !            48:        "@* MODE #usermode +v nick\r"
        !            49: }
        !            50:
        !            51: send "mode #usermode +h nick\r"
        !            52: expect {
        !            53:        timeout { exit 1 }
        !            54:        "@* MODE #usermode +h nick\r"
        !            55: }
        !            56:
        !            57: send "mode #usermode +a nick\r"
        !            58: expect {
        !            59:        timeout { exit 1 }
        !            60:        "482 nick"
        !            61: }
        !            62:
        !            63: send "mode #usermode +q nick\r"
        !            64: expect {
        !            65:        timeout { exit 1 }
        !            66:        "482 nick"
        !            67: }
        !            68:
        !            69: send "mode #usermode -vho nick nick nick\r"
        !            70: expect {
        !            71:        timeout { exit 1 }
        !            72:        "@* MODE #usermode -vho nick nick nick"
        !            73: }
        !            74:
        !            75: send "oper TestOp 123\r"
        !            76: expect {
        !            77:        timeout { exit 1 }
        !            78:        "MODE nick :+o"
        !            79: }
        !            80: expect {
        !            81:        timeout { exit 1 }
        !            82:        "381 nick"
        !            83: }
        !            84:
        !            85: send "mode nick\r"
        !            86: expect {
        !            87:        timeout { exit 1 }
        !            88:        "221 nick +o"
        !            89: }
        !            90:
        !            91: send "mode #usermode +a nick\r"
        !            92: expect {
        !            93:        timeout { exit 1 }
        !            94:        "@* MODE #usermode +a nick"
        !            95: }
        !            96:
        !            97: send "mode #usermode +q nick\r"
        !            98: expect {
        !            99:        timeout { exit 1 }
        !           100:        "@* MODE #usermode +q nick"
        !           101: }
        !           102:
        !           103: send "names #usermode\r"
        !           104: expect {
        !           105:        timeout { exit 1 }
        !           106:        "353 nick = #usermode :~nick"
        !           107: }
        !           108: expect {
        !           109:        timeout { exit 1 }
        !           110:        "366 nick #usermode"
        !           111: }
        !           112:
        !           113: send "part #usermode\r"
        !           114: expect {
        !           115:        timeout { exit 1 }
        !           116:        "@* PART #usermode"
        !           117: }
        !           118:
        !           119: send "join #channel\r"
        !           120: expect {
        !           121:        timeout { exit 1 }
        !           122:        "@* JOIN :#channel"
        !           123: }
        !           124: expect {
        !           125:        timeout { exit 1 }
        !           126:        "366"
        !           127: }
        !           128:
        !           129: send "mode #channel +tn\r"
        !           130: expect {
        !           131:        timeout { exit 1 }
        !           132:        "@* MODE #channel +tn"
        !           133: }
        !           134:
        !           135: send "mode #channel\r"
        !           136: expect {
        !           137:        timeout { exit 1 }
        !           138:        "324 nick #channel +tn"
        !           139: }
        !           140:
        !           141: send "mode #channel +v nick\r"
        !           142: expect {
        !           143:        timeout { exit 1 }
        !           144:        "@* MODE #channel +v nick\r"
        !           145: }
        !           146:
        !           147: send "mode #channel +I nick1\r"
        !           148: expect {
        !           149:        timeout { exit 1 }
        !           150:        "@* MODE #channel +I nick1!*@*"
        !           151: }
        !           152:
        !           153: send "mode #channel +b nick2@domain\r"
        !           154: expect {
        !           155:        timeout { exit 1 }
        !           156:        "@* MODE #channel +b nick2!*@domain"
        !           157: }
        !           158:
        !           159: send "mode #channel +I nick3!user\r"
        !           160: expect {
        !           161:        timeout { exit 1 }
        !           162:        "@* MODE #channel +I nick3!user@*"
        !           163: }
        !           164:
        !           165: send "mode #channel -vo nick nick\r"
        !           166: expect {
        !           167:        timeout { exit 1 }
        !           168:        "@* MODE #channel -vo nick nick\r"
        !           169: }
        !           170:
        !           171: send "quit\r"
        !           172: expect {
        !           173:        timeout { exit 1 }
        !           174:        "Connection closed"
        !           175: }

CVSweb