File: test_dbus.sh

package info (click to toggle)
wader 0.5.12-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,672 kB
  • ctags: 5,053
  • sloc: python: 17,191; makefile: 142; sh: 131
file content (25 lines) | stat: -rwxr-xr-x 463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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