start for test of record

master
Ken Barbour 2022-06-28 12:49:29 -04:00
parent 50f9b133f3
commit 9099938f1d
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
#!/usr/bin/bash
prog="$0"
me=`basename "$prog"`
unit=$(realpath $(dirname "$0")/../record.sh)
fixture_dir=$(realpath $(dirname "$0")/fixtures)
##
# Tests is a rtl_sdr is connected
# @return 0 if rtl_sdr is found
device_is_connected() {
lsusb | grep RTL2838 > /dev/null
}
test_demodulate_pass() {
# RTL_SDR is required, otherwise skip this test
device_is_connected || startSkipping
echo "TODO: test demodulate_pass"
}
test_resample_pass() {
echo "TODO: test resample_pass"
}
test_monitor_pass() {
echo "TODO: test monitor_pass"
}
. shunit2