aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-02-18 00:49:19 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2009-02-18 00:49:19 +0100
commitfbd6c6932312b8ed926e82dddd972beb2fbc0760 (patch)
tree71a4e003e0ba7e756db0a62b3ca8e4f89581bf93
parent50d453d4405d52edb1405928286ae9a251518dea (diff)
t: autogen skyped.conf
-rwxr-xr-xskype/t/livetest-bitlbee.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/skype/t/livetest-bitlbee.sh b/skype/t/livetest-bitlbee.sh
index d0c6c80e..4b7ced7d 100755
--- a/skype/t/livetest-bitlbee.sh
+++ b/skype/t/livetest-bitlbee.sh
@@ -16,8 +16,23 @@ $VALGRIND $BITLBEE -n -c bitlbee.conf -d livetest/ -D -P bitlbeetest.pid -p $POR
# Check if it's really running
kill -0 `cat bitlbeetest.pid 2>/dev/null ` 2>/dev/null || { echo Failed to run bitlbee daemon on port $PORT; exit 1; }
+# Set up skyped
+
+rm -rf etc
+mkdir etc
+cd etc
+cp ../../skyped.cnf .
+yes ""|openssl req -new -x509 -days 365 -nodes -config skyped.cnf -out skyped.cert.pem -keyout skyped.key.pem 2> openssl.log
+cd ..
+echo "[skyped]" > skyped.conf
+echo "username = $TEST_SKYPE_ID" >> skyped.conf
+echo "password = $(echo -n $TEST_SKYPE_PASSWORD|sha1sum|sed 's/ *-$//')" >> skyped.conf
+echo "cert = $(pwd)/etc/skyped.cert.pem" >> skyped.conf
+echo "key = $(pwd)/etc/skyped.key.pem" >> skyped.conf
+echo "port = 2727" >> skyped.conf
+
# Run skyped
-python ../skyped.py -c ../skyped.conf > skypedtest.pid
+python ../skyped.py -c skyped.conf > skypedtest.pid
sleep 2
# Run the test