]> git.99rst.org Git - openwrt-packages.git/commitdiff
domoticz: rename version check test.sh to test-version.sh
authorJosef Schlehofer <redacted>
Mon, 10 Aug 2026 08:18:29 +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.

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 <redacted>
utils/domoticz/test-version.sh [new file with mode: 0644]
utils/domoticz/test.sh [deleted file]

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