mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
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 <pepe.schlehofer@gmail.com>
(cherry picked from commit 7bc659273b)
This commit is contained in:
1 parent
09b3650c05
commit
56897b43f8
2 files changed
+21
-6
No files matched your search
@@ -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
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
openzwave)
|
||||
[ -x /usr/bin/MinOZW ] || exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in new issue
Block a user