Browse files

Add test starter script

  • Loading branch information...
1 parent 99695dc commit 3cb6bba074da1fcadbd44c8a6bf9ea4a1be83ae3 @andrewbird committed May 2, 2012
Showing with 25 additions and 0 deletions.
  1. +25 −0 test_dbus.sh
View
25 test_dbus.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+if [ -z "$1" ] ; then
+ echo "need name of device"
+ exit 1
+fi
+
+NAME="`date +%s`-$1"
+
+[ -d reports ] || mkdir reports
+
+sudo su -c "cat /dev/null > /var/log/wader.log"
+sudo wader-core-ctl --restart
+
+sleep 10
+
+nosetests -v --with-xunit --xunit-file=reports/"${NAME}".xml test/test_dbus.py
+
+sync
+
+sleep 5
+
+cp /var/log/wader.log reports/"${NAME}".log
+
+[ -f /usr/share/sounds/speech-dispatcher/test.wav ] && aplay /usr/share/sounds/speech-dispatcher/test.wav

0 comments on commit 3cb6bba

Please sign in to comment.