]> git.99rst.org Git - openwrt-packages.git/commitdiff
prosody: add test-version.sh
authorJosef Schlehofer <redacted>
Sun, 9 Aug 2026 05:38:35 +0000 (07:38 +0200)
committerAlexandru Ardelean <redacted>
Sun, 9 Aug 2026 08:40:28 +0000 (11:40 +0300)
Neither prosody nor prosodyctl reports its version on any flag the
generic tests probe, so the version check fails without an override.
Drop the now duplicate check from the functional test.sh.

Signed-off-by: Josef Schlehofer <redacted>
net/prosody/test-version.sh [new file with mode: 0644]
net/prosody/test.sh

diff --git a/net/prosody/test-version.sh b/net/prosody/test-version.sh
new file mode 100644 (file)
index 0000000..de261c7
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Version check override for the prosody package.
+#
+# Neither prosody nor prosodyctl reports its version on any of the flags the
+# generic tests probe; the version is only recorded in prosody.version.
+
+case "$1" in
+prosody)
+       grep -F "$2" /usr/lib/prosody/prosody.version
+       ;;
+
+*)
+       echo "test-version.sh: unknown subpackage '$1' — refusing to silently pass" >&2
+       echo "test-version.sh: update net/prosody/test-version.sh to cover it" >&2
+       exit 1
+       ;;
+esac
index 856848ccf08b3f0878e4dbc6ca4e4877ec62189d..4f5d0886ffb7520884ba88b8ef46de3c4b20f242 100644 (file)
@@ -16,10 +16,6 @@ TEST_PASS="s3cr3t-ci-passphrase"
 
 case "$1" in
 prosody)
-       # Verify the installed version file matches the apk version arg the
-       # runner passes, so a stale .apk from an earlier batch fails fast.
-       grep -qF "$2" "$PROSODY_LIB/prosody.version"
-
        # loader.lua installs the "prosody.*" -> "*" module searcher that every
        # require() in 13.x goes through. It is the first thing prosodyctl looks
        # for, and the package is dead on arrival if it was not installed.
git clone https://git.99rst.org/PROJECT