aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/skype/t/irssi/skype-msg.test
blob: d35615cd04f3f3fbd087703f9941f76f114cced4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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'