mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 20:57:37 +04:00
The binaries print the version as X.Y.Z-R while PKG_VERSION is X.Y.Z.R, so the generic per-executable version probe never matches and the job fails. Add a test-version.sh override that greps for the dashed form, mirroring the conversion the runtime test.sh already does. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
15 lines
275 B
Bash
Executable File
15 lines
275 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# shellcheck shell=busybox
|
|
|
|
case "$PKG_NAME" in
|
|
imagemagick)
|
|
# PKG_VERSION is X.Y.Z.R but the binaries print X.Y.Z-R.
|
|
magick -version | grep -F "$(echo "$PKG_VERSION" | sed 's/\.\([0-9]*\)$/-\1/')"
|
|
;;
|
|
*)
|
|
echo "Untested package: $PKG_NAME" >&2
|
|
exit 1
|
|
;;
|
|
esac
|