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>
--- /dev/null
+#!/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
+++ /dev/null
-#!/bin/sh
-case "$1" in
- openzwave)
- [ -x /usr/bin/MinOZW ] || exit 1
- ;;
-esac