From: Josef Schlehofer Date: Mon, 10 Aug 2026 08:18:30 +0000 (+0200) Subject: openzwave: rename version check test.sh to test-version.sh X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=7bc659273b0e12b10bc1299a72528a28850e8f78;p=openwrt-packages.git openzwave: rename version check test.sh to test-version.sh In actions-shared-workflows the version is now checked in test-version.sh, while test.sh is left for the generic tests. MinOZW reports "OpenZWave Version 1.6-1965-g3fff11d2" while PKG_VERSION is 1.6.1965, so the generic probe never matches and fails the package for not providing the version. As the only executable in the package it takes the whole run down; the presence check was already there for that reason, it just could not suppress the probe from test.sh. Record that in the file: the format mismatch is not evident from the code. Give libopenzwave and openzwave-config arms of their own as well, so that an unknown sub-package fails loudly instead of falling off the end of the case and returning 0. Signed-off-by: Josef Schlehofer --- diff --git a/utils/openzwave/test-version.sh b/utils/openzwave/test-version.sh new file mode 100644 index 000000000..ab252bd3d --- /dev/null +++ b/utils/openzwave/test-version.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$1" in + openzwave) + # MinOZW prints "OpenZWave Version 1.6-1965-g3fff11d2", which never + # matches PKG_VERSION (1.6.1965); just verify the binary is present + [ -x /usr/bin/MinOZW ] || exit 1 + ;; + + libopenzwave|openzwave-config) + # ship no executable, nothing to assert + exit 0 + ;; + + *) + echo "Untested package: $1" >&2 + exit 1 + ;; +esac diff --git a/utils/openzwave/test.sh b/utils/openzwave/test.sh deleted file mode 100644 index d449cb312..000000000 --- a/utils/openzwave/test.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -case "$1" in - openzwave) - [ -x /usr/bin/MinOZW ] || exit 1 - ;; -esac