aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/skype/t/irssi/skype-msg.test
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-07-24 13:51:00 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2011-07-24 13:51:00 +0100
commitc8b8c83fb6a0ae1b59de71ac796a78d73e444988 (patch)
tree9fdc9d1393353e663132b34cff0b8c16fb1e014c /protocols/skype/t/irssi/skype-msg.test
parenta01049810d7101b8c0014aa7b36826fc95f944a5 (diff)
parent17f6079a06eaed2fba1da999332e9e5ac1dbc2a6 (diff)
Merging Skype plugin. Many thanks to Miklos Vajna for all his work on this,
having this distributed together with BitlBee will hopefully make up for the fact that BitlBee has poor binary API backward compatibility.
Diffstat (limited to 'protocols/skype/t/irssi/skype-msg.test')
-rw-r--r--protocols/skype/t/irssi/skype-msg.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/protocols/skype/t/irssi/skype-msg.test b/protocols/skype/t/irssi/skype-msg.test
new file mode 100644
index 00000000..d35615cd
--- /dev/null
+++ b/protocols/skype/t/irssi/skype-msg.test
@@ -0,0 +1,17 @@
+TESTNEEDEDVARS="TEST_SKYPE_ID TEST_SKYPE_PASSWORD"
+TESTDURATION=60
+TESTCHECKRESULT="grep '\[Test Passed\]' status.log"
+TESTLOGIN="$TEST_SKYPE_ID"
+TESTPASSWORD="$TEST_SKYPE_PASSWORD"
+### Test sending and receiving messages
+/expectbee 'Welcome to the BitlBee' -command 'msg $$C register testing'
+/expectbee 'Account successfully created' -command 'msg $$C account add skype @LOGIN@ @PASSWORD@'
+/expectbee 'Account successfully added' -command 'msg $$C account 0 set test_join true'
+/expectbee 'test_join' -command 'msg $$C account 0 on'
+# use builtin test service
+/expectjoin echo123 -command 'msg $$C echo123: ping, say pong'
+/expectbee 'pong' -command 'quit Test Passed'
+# use a public bot as well, just in case the above one would fail
+/expectjoin echo123 -command 'msg $$C add skype pam_bot'
+/expectjoin pam_bot -command 'msg $$C pam_bot: pambot help'
+/expectbee 'PamBot, thanks for chatting with me' -command 'quit Test Passed'