forked from RedhawkSDR/rest-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntests.sh
More file actions
executable file
·44 lines (31 loc) · 1.1 KB
/
runtests.sh
File metadata and controls
executable file
·44 lines (31 loc) · 1.1 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh -e
# Runs the unit test with nose in the virtual environment
err() {
echo "ERROR: $@" 1>&2
exit 1
}
. /usr/libexec/sdrtools/sdrlib.bash || err "Unable to load sdrlib bash library"
COMPONENTS="KitchenSink SigGen"
WAVEFORMS="SigTest TestConfigureWaveform"
# verify the components
for c in $COMPONENTS ; do
st_verify_component "$c" || err "Missing component '$c'"
done
# verify the waveforms
for c in $WAVEFORMS ; do
st_verify_waveform "$c" || err "Missing waveform '$c'"
done
#trap 'rhkill.sh -1' 0 1
#rhkill.sh -2
# Domain Manager
#nodeBooter $NBARGS -D /domain/DomainManager.dmd.xml --domainname $RHDOMAIN || exit 1 &
#sleep 2
# GPP
#nodeBooter $NBARGS -d /nodes/GPP/DeviceManager.dcd.xml --domainname $RHDOMAIN || exit 1 &
#sleep 4
#.virtualenv/bin/python /usr/bin/nosetests1.1 --with-doctest --with-coverage --where . --where model/ --where tests/ --where rest --cover-tests "$@" 2>&1 | tee tests.out
# example test:Sysinfo
if [ $# -lt 1 ] ; then
set -- test
fi
.virtualenv/bin/python /usr/bin/nosetests1.1 --with-doctest --with-coverage --cover-tests "$@" 2>&1 | tee tests.out