]> git.99rst.org Git - openwrt-packages.git/commitdiff
openzwave: rename version check test.sh to test-version.sh
authorJosef Schlehofer <redacted>
Mon, 10 Aug 2026 08:18:30 +0000 (10:18 +0200)
committerJosef Schlehofer <redacted>
Tue, 18 Aug 2026 09:18:07 +0000 (11:18 +0200)
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 <redacted>
utils/openzwave/test-version.sh [new file with mode: 0644]
utils/openzwave/test.sh [deleted file]

diff --git a/utils/openzwave/test-version.sh b/utils/openzwave/test-version.sh
new file mode 100644 (file)
index 0000000..ab252bd
--- /dev/null
@@ -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 (file)
index d449cb3..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-case "$1" in
-       openzwave)
-               [ -x /usr/bin/MinOZW ] || exit 1
-               ;;
-esac
git clone https://git.99rst.org/PROJECT