mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 19:10:30 +04:00
rtl-sdr: add test.sh
although rtl-sdr doesn't print version, test at least if compiled binary runs Written-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Test-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Suggested-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Signed-off-by: Seo Suchan <tjtncks@gmail.com>
This commit is contained in:
committed by
Josef Schlehofer
parent
2bbef2fbf4
commit
afcb60f99d
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# shellckeck shell=busybox
|
||||
# shellcheck shell=busybox
|
||||
|
||||
case "$PKG_NAME" in
|
||||
rtl-sdr|librtlsdr)
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# shellcheck shell=busybox
|
||||
|
||||
case "$1" in
|
||||
rtl-sdr)
|
||||
rtl_sdr 2>&1 | grep -q "RTL2832"
|
||||
rtl_tcp -h 2>&1 | grep -q "RTL2832"
|
||||
rtl_test -h 2>&1 | grep -q "RTL2832"
|
||||
rtl_fm -h 2>&1 | grep -q "RTL2832"
|
||||
rtl_eeprom -h 2>&1 | grep -q "RTL2832"
|
||||
rtl_adsb -h 2>&1 | grep -q "ADS-B"
|
||||
rtl_power -h 2>&1 | grep -q "RTL2832"
|
||||
;;
|
||||
librtlsdr)
|
||||
# Pure shared library, checked by packaging and linking tools
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "test.sh: unknown subpackage '$1' — refusing to silently pass" >&2
|
||||
echo "test.sh: update utils/rtl-sdr/test.sh to cover this subpackage" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user