Changes in / [6f5ab2a:bb0775c]


Ignore:
Location:
skype/t
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • skype/t/Makefile

    r6f5ab2a rbb0775c  
    1515$(tests): % : %.test
    1616        @echo "--- Running test $@ ---"; \
    17                 if [ -r "$(BITLBEE)" -a -x "$(BITLBEE)" ]; then \
    18                         bitlbee_binary="$(BITLBEE)"; \
    19                 else \
    20                         bitlbee_basename=`basename $(BITLBEE)`; \
    21                         bitlbee_binary=`which $$bitlbee_basename`; \
    22                 fi; \
    23                 if ! ./livetest-bitlbee.sh "$$bitlbee_binary" $(PORT) irssi/livetest-irssi.sh $< >$@.log; then \
     17                if ! ./livetest-bitlbee.sh $(BITLBEE) $(PORT) irssi/livetest-irssi.sh $< >$@.log; then \
    2418                        echo Test failed, log: ;\
    2519                        cat $@.log;\
  • skype/t/irssi/livetest-irssi.sh

    r6f5ab2a rbb0775c  
    1 #!/usr/bin/env bash
     1#!/bin/bash
    22ISCRIPT=$1
    33OPT=$2
     
    7979
    8080submitlogs() {
    81         perl -p -i -e "s/$TESTLOGIN/---TESTLOGIN---/;s/$TESTPASSWORD/---TESTPASSWORD---/" dotirssi/logs/*.log
     81        sed -i -e "s/$TESTLOGIN/---TESTLOGIN---/;s/$TESTPASSWORD/---TESTPASSWORD---/" dotirssi/logs/*.log
    8282
    8383        if [ "$OPT" == "tgz" ]; then
  • skype/t/livetest-bitlbee.sh

    r6f5ab2a rbb0775c  
    1 #!/usr/bin/env bash
     1#!/bin/bash
    22BITLBEE=$1
    33typeset -ix PORT=`echo $2 | egrep '^[0-9]{1,5}$'`
     
    1818kill -0 `cat bitlbeetest.pid 2>/dev/null ` 2>/dev/null || { echo Failed to run bitlbee daemon on port $PORT; exit 1; }
    1919
    20 if [ -z "$TUNNELED_MODE" ]; then
    21         # Set up skyped
     20# Set up skyped
    2221
    23         rm -rf etc
    24         mkdir etc
    25         cd etc
    26         cp ../../skyped.cnf .
    27         cp ~/.skyped/skyped.cert.pem .
    28         cp ~/.skyped/skyped.key.pem .
    29         cd ..
    30         echo "[skyped]" > skyped.conf
    31         echo "username = $TEST_SKYPE_ID" >> skyped.conf
    32         SHA1=`which sha1sum`
    33         if [ -z "$SHA1" ]; then
    34                 SHA1=`which sha1`
    35         fi
    36         if [ -z "$SHA1" ]; then
    37                 echo Test failed
    38                 echo "(Can't compute password for skyped.conf)"
    39                 exit 77
    40         fi
    41         echo "password = $(echo -n $TEST_SKYPE_PASSWORD|$SHA1|sed 's/ *-$//')" >> skyped.conf
    42         # we use ~ here to test that resolve that syntax works
    43         echo "cert = $(pwd|sed "s|$HOME|~|")/etc/skyped.cert.pem" >> skyped.conf
    44         echo "key = $(pwd|sed "s|$HOME|~|")/etc/skyped.key.pem" >> skyped.conf
    45         echo "port = 2727" >> skyped.conf
     22rm -rf etc
     23mkdir etc
     24cd etc
     25cp ../../skyped.cnf .
     26cp ~/.skyped/skyped.cert.pem .
     27cp ~/.skyped/skyped.key.pem .
     28cd ..
     29echo "[skyped]" > skyped.conf
     30echo "username = $TEST_SKYPE_ID" >> skyped.conf
     31echo "password = $(echo -n $TEST_SKYPE_PASSWORD|sha1sum|sed 's/ *-$//')" >> skyped.conf
     32# we use ~ here to test that resolve that syntax works
     33echo "cert = $(pwd|sed "s|$HOME|~|")/etc/skyped.cert.pem" >> skyped.conf
     34echo "key = $(pwd|sed "s|$HOME|~|")/etc/skyped.key.pem" >> skyped.conf
     35echo "port = 2727" >> skyped.conf
    4636
    47         # Run skyped
    48         python ../skyped.py -c skyped.conf -l skypedtest.log > skypedtest.pid
    49         sleep 2
    50 fi
    51 
    52 if [ "$TUNNELED_MODE" = "yes" ]; then
    53         rm -f tunnel.pid
    54         if [ -n "$TUNNEL_SCRIPT" ]; then
    55                 $TUNNEL_SCRIPT &
    56                 echo $! > tunnel.pid
    57                 sleep 5
    58         fi
    59 fi
     37# Run skyped
     38python ../skyped.py -c skyped.conf -l skypedtest.log > skypedtest.pid
     39sleep 2
    6040
    6141# Run the test
     
    6444RET=$?
    6545
    66 if [ -z "$TUNNELED_MODE" ]; then
    67         # skyped runs on another host: no means to kill it
    68         # Kill skyped
    69         killall -TERM skype
    70         kill -TERM $(sed 's/.*: //' skypedtest.pid)
    71 fi
    72 
    73 if [ "$TUNNELED_MODE" = "yes" ]; then
    74         if [ -n "$TUNNEL_SCRIPT" ]; then
    75                 cat tunnel.pid >> /tmp/tunnel.pid
    76                 kill `cat tunnel.pid`
    77                 rm -f tunnel.pid
    78         fi
    79 fi
     46# Kill skyped
     47killall -TERM skype
     48kill -TERM $(sed 's/.*: //' skypedtest.pid)
    8049
    8150# Kill bee
    8251echo Killing bitlbee...
    8352kill `cat bitlbeetest.pid`
    84 
    85 if [ "$TUNNELED_MODE" = "yes" ]; then
    86         # give the skyped a chance to timeout
    87         sleep 30
    88 fi
    8953
    9054# Return test result
Note: See TracChangeset for help on using the changeset viewer.