source: skype/t/irssi/skype-msg.test @ c899eb0

Last change on this file since c899eb0 was c12a5c8, checked in by Miklos Vajna <vmiklos@…>, at 2011-01-04T01:00:00Z

Make tests a bit more robust

Sometimes skyped exits on startup because of the failure of some
underlying C lib (ie we get no expections), that's not something I want
to care about.

  • Property mode set to 100644
File size: 931 bytes
Line 
1TESTNEEDEDVARS="TEST_SKYPE_ID TEST_SKYPE_PASSWORD"
2TESTDURATION=60
3TESTCHECKRESULT="grep '\[Test Passed\]' status.log"
4TESTLOGIN="$TEST_SKYPE_ID"
5TESTPASSWORD="$TEST_SKYPE_PASSWORD"
6### Test sending and receiving messages
7/expectbee 'Welcome to the BitlBee' -command 'msg $$C register testing'
8/expectbee 'Account successfully created' -command 'msg $$C account add skype @LOGIN@ @PASSWORD@'
9/expectbee 'Account successfully added' -command 'msg $$C account 0 set test_join true'
10/expectbee 'test_join' -command 'msg $$C account 0 on'
11# use builtin test service
12/expectjoin echo123 -command 'msg $$C echo123: ping, say pong'
13/expectbee 'pong' -command 'quit Test Passed'
14# use a public bot as well, just in case the above one would fail
15/expectjoin echo123 -command 'msg $$C add skype pam_bot'
16/expectjoin pam_bot -command 'msg $$C pam_bot: pambot help'
17/expectbee 'PamBot, thanks for chatting with me' -command 'quit Test Passed'
Note: See TracBrowser for help on using the repository browser.