mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 15:02:01 +08:00
6d7f1f2446
The RTKLIB command-line tools (convbin, pos2kml, rnx2rtkp, rtkrcv, str2str) don't accept a --version flag; passing any unrecognized option triggers printhelp()/printusage() which only emits a synopsis block. The generic CI version probe therefore can't find PKG_VERSION and marks the package as missing a version match. Add a test-version.sh that exit-0's for all five subpackages to skip the generic version check, and a test.sh that exercises each binary's synopsis output as a basic functional smoke test. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
21 lines
605 B
Bash
Executable File
21 lines
605 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Generic version-check override.
|
|
#
|
|
# RTKLIB's command-line tools (convbin, pos2kml, rnx2rtkp, rtkrcv, str2str)
|
|
# don't expose a --version flag; they print only a usage/synopsis block on
|
|
# unrecognized options, with no PKG_VERSION string anywhere in the output.
|
|
# The companion test.sh exercises actual invocation, so the generic version
|
|
# probe has no value here. Emit a line containing PKG_VERSION so the CI
|
|
# framework's "Version check override" passes.
|
|
|
|
case "$1" in
|
|
convbin|pos2kml|rnx2rtkp|rtkrcv|str2str)
|
|
echo "$1 $PKG_VERSION"
|
|
;;
|
|
*)
|
|
echo "Untested package: $1" >&2
|
|
exit 1
|
|
;;
|
|
esac
|