diff options
| author | Alexander Barton <alex@barton.de> | 2008-02-17 13:26:41 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2008-02-26 23:49:33 +0100 |
| commit | ddecfcd8310f77974803c9c67431809320646a55 (patch) | |
| tree | 5828be71a1718a170a0b8873561cd7c0a7d5a76f /src/testsuite/misc-test.e | |
| parent | 2f71fbb2a1319d1b0aca4c9564c2e51a88b4a578 (diff) | |
| download | ngircd-ddecfcd8310f77974803c9c67431809320646a55.tar.gz ngircd-ddecfcd8310f77974803c9c67431809320646a55.zip | |
Implemented IRC commands INFO, USERS (dummy), and SUMMON (dummy).
Diffstat (limited to 'src/testsuite/misc-test.e')
| -rw-r--r-- | src/testsuite/misc-test.e | 50 |
1 files changed, 50 insertions, 0 deletions
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- |