From: Josef Schlehofer Date: Mon, 10 Aug 2026 08:18:29 +0000 (+0200) Subject: domoticz: rename version check test.sh to test-version.sh X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=cee73452be61ede0c92b221b87c500bc0f66c227;p=openwrt-packages.git domoticz: 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. The script only asserts that the binary is present, because domoticz reports no version; say so in the file, so that a later reader does not 'fix' the override by adding a version probe. Add a default arm 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/domoticz/test-version.sh b/utils/domoticz/test-version.sh new file mode 100644 index 000000000..5a6c34d3e --- /dev/null +++ b/utils/domoticz/test-version.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$1" in + domoticz) + # domoticz has no flag that prints its version; just verify the + # binary is present + [ -x /usr/bin/domoticz ] || exit 1 + ;; + + *) + echo "Untested package: $1" >&2 + exit 1 + ;; +esac diff --git a/utils/domoticz/test.sh b/utils/domoticz/test.sh deleted file mode 100644 index cdfc88703..000000000 --- a/utils/domoticz/test.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -case "$1" in - domoticz) - [ -x /usr/bin/domoticz ] || exit 1 - ;; -esac