From ddecfcd8310f77974803c9c67431809320646a55 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 17 Feb 2008 13:26:41 +0000 Subject: Implemented IRC commands INFO, USERS (dummy), and SUMMON (dummy). --- src/testsuite/misc-test.e | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/testsuite/misc-test.e (limited to 'src/testsuite/misc-test.e') diff --git a/src/testsuite/misc-test.e b/src/testsuite/misc-test.e new file mode 100644 index 00000000..5c985f55 --- /dev/null +++ b/src/testsuite/misc-test.e @@ -0,0 +1,50 @@ +# $Id: misc-test.e,v 1.1 2008/02/17 13:26:42 alex Exp $ + +spawn telnet localhost 6789 +expect { + timeout { exit 1 } + "Connected" +} + +send "nick nick\r" +send "user user . . :User\r" +expect { + timeout { exit 1 } + "376" +} + +send "summon\r" +expect { + timeout { exit 1 } + "445" +} + +send "users\r" +expect { + timeout { exit 1 } + "446" +} + +send "info\r" +expect { + timeout { exit 1 } + "371" +} +expect { + timeout { exit 1 } + "374" +} + +send "squit\r" +expect { + timeout { exit 1 } + "481" +} + +send "quit\r" +expect { + timeout { exit 1 } + "ERROR" +} + +# -eof- -- cgit 1.4.1