- Timestamp:
- 2011-01-04T01:00:00Z (14 years ago)
- Branches:
- master
- Children:
- ab094d9
- Parents:
- 6f5ab2a
- Location:
- skype/t
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/t/irssi/skype-msg.test
r6f5ab2a rc12a5c8 9 9 /expectbee 'Account successfully added' -command 'msg $$C account 0 set test_join true' 10 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 11 15 /expectjoin echo123 -command 'msg $$C add skype pam_bot' 12 16 /expectjoin pam_bot -command 'msg $$C pam_bot: pambot help' -
skype/t/livetest-bitlbee.sh
r6f5ab2a rc12a5c8 1 1 #!/usr/bin/env bash 2 3 start_skyped() 4 { 5 python ../skyped.py "$@" > skypedtest.pid 6 while true 7 do 8 [ -e skypedtest.pid ] || break 9 pid=$(sed 's/.*: //' skypedtest.pid) 10 if [ -e /proc/$pid ]; then 11 sleep 5 12 else 13 start_skyped "$@" 14 break 15 fi 16 done 17 } 18 2 19 BITLBEE=$1 3 20 typeset -ix PORT=`echo $2 | egrep '^[0-9]{1,5}$'` … … 46 63 47 64 # Run skyped 48 python ../skyped.py -c skyped.conf -l skypedtest.log > skypedtest.pid65 start_skyped -c skyped.conf -l skypedtest.log & 49 66 sleep 2 50 67 fi … … 68 85 # Kill skyped 69 86 killall -TERM skype 70 kill -TERM $(sed 's/.*: //' skypedtest.pid) 87 if [ -f skypedtest.pid ]; then 88 pid=$(sed 's/.*: //' skypedtest.pid) 89 rm skypedtest.pid 90 [ -e /proc/$pid ] && kill -TERM $pid 91 fi 71 92 fi 72 93
Note: See TracChangeset
for help on using the changeset viewer.