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 <redacted>
--- /dev/null
+#!/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