]> git.99rst.org Git - openwrt-packages.git/commitdiff
uspot: add version check override
authorJosef Schlehofer <redacted>
Tue, 30 Jun 2026 12:36:24 +0000 (14:36 +0200)
committerJosef Schlehofer <redacted>
Tue, 30 Jun 2026 14:12:45 +0000 (16:12 +0200)
None of the uspot executables (radius-client, uspot, uspot-das) expose
the package version via --version or --help flags. This causes the
generic CI tests to fail with "No executables in the package provided
version".

Add a test-version.sh to skip the version probe for the uspot,
uspotfilter and uspot-www subpackages.

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

diff --git a/net/uspot/test-version.sh b/net/uspot/test-version.sh
new file mode 100755 (executable)
index 0000000..c43c2d2
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# shellcheck shell=busybox
+
+# uspot executables (radius-client, uspot, uspot-das) do not expose the
+# package version via --version or --help. Skip the generic version probe.
+
+case "$PKG_NAME" in
+uspot|uspotfilter|uspot-www)
+       exit 0
+       ;;
+
+*)
+       echo "Untested package: $PKG_NAME" >&2
+       exit 1
+       ;;
+esac
git clone https://git.99rst.org/PROJECT