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/Makefile.am | 14 ++++++++----- src/testsuite/misc-test.e | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 src/testsuite/misc-test.e (limited to 'src/testsuite') diff --git a/src/testsuite/Makefile.am b/src/testsuite/Makefile.am index 6ea9597c..6512aaae 100644 --- a/src/testsuite/Makefile.am +++ b/src/testsuite/Makefile.am @@ -9,7 +9,7 @@ # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. # -# $Id: Makefile.am,v 1.17 2008/02/17 00:00:13 fw Exp $ +# $Id: Makefile.am,v 1.18 2008/02/17 13:26:42 alex Exp $ # AUTOMAKE_OPTIONS = ../portab/ansi2knr @@ -20,9 +20,8 @@ EXTRA_DIST = \ README functions.inc getpid.sh \ start-server.sh stop-server.sh tests.sh stress-server.sh \ test-loop.sh wait-tests.sh \ - connect-test.e channel-test.e mode-test.e \ - who-test.e - stress-A.e stress-B.e check-idle.e \ + channel-test.e connect-test.e check-idle.e misc-test.e mode-test.e \ + who-test.e stress-A.e stress-B.e \ ngircd-test.conf all: @@ -52,6 +51,10 @@ who-test: tests.sh rm -f who-test ln -s $(srcdir)/tests.sh who-test +misc-test: tests.sh + rm -f misc-test + ln -s $(srcdir)/tests.sh misc-test + mode-test: tests.sh rm -f mode-test ln -s $(srcdir)/tests.sh mode-test @@ -59,8 +62,9 @@ mode-test: tests.sh TESTS = start-server.sh \ connect-test \ channel-test \ - who-test \ + misc-test \ mode-test \ + who-test \ stress-server.sh \ stop-server.sh 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