Last change
on this file since ab094d9 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
|
Rev | Line | |
---|
[50d453d] | 1 | TESTNEEDEDVARS="TEST_SKYPE_ID TEST_SKYPE_PASSWORD" |
---|
| 2 | TESTDURATION=60 |
---|
| 3 | TESTCHECKRESULT="grep '\[Test Passed\]' status.log" |
---|
| 4 | TESTLOGIN="$TEST_SKYPE_ID" |
---|
| 5 | TESTPASSWORD="$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@' |
---|
[f5ae4a10] | 9 | /expectbee 'Account successfully added' -command 'msg $$C account 0 set test_join true' |
---|
| 10 | /expectbee 'test_join' -command 'msg $$C account 0 on' |
---|
[c12a5c8] | 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 |
---|
[3fa9c25] | 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.