summaryrefslogtreecommitdiff
path: root/ngircd/src/testsuite/opless-channel-test.e
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-10-23 23:44:03 +0800
committerMistivia <i@mistivia.com>2025-10-23 23:44:07 +0800
commitc8aeef18cb46a617b6397b9822263895e97e9048 (patch)
treeebe127e7c194039f315b74a5998b05a271c57b9d /ngircd/src/testsuite/opless-channel-test.e
add ircd
Diffstat (limited to 'ngircd/src/testsuite/opless-channel-test.e')
-rw-r--r--ngircd/src/testsuite/opless-channel-test.e33
1 files changed, 33 insertions, 0 deletions
diff --git a/ngircd/src/testsuite/opless-channel-test.e b/ngircd/src/testsuite/opless-channel-test.e
new file mode 100644
index 0000000..cd4f9a0
--- /dev/null
+++ b/ngircd/src/testsuite/opless-channel-test.e
@@ -0,0 +1,33 @@
+# ngIRCd test suite
+# Op-less channel test
+
+spawn telnet 127.0.0.1 6789
+expect {
+ timeout { exit 1 }
+ "Connected"
+}
+
+send "nick nick\r"
+send "user user . . :User\r"
+expect {
+ timeout { exit 1 }
+ "376"
+}
+
+send "JOIN +Channel\r"
+expect {
+ timeout { exit 1 }
+ "@* JOIN :+Channel"
+}
+
+send "mode +Channel +t\r"
+expect {
+ timeout { exit 1 }
+ "477"
+}
+
+send "quit\r"
+expect {
+ timeout { exit 1 }
+ "ERROR :Closing connection"
+}