ahcpd: add test-version.sh for CI runtime tests

ahcpd does not provide any option to report its version, so the
generic version check of the CI runtime tests always fails for this
package. Override it by checking that the binary starts and prints
its usage instead.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Josef SchlehoferandClaude Fable 5 committed 2026-08-10 09:43:05 +02:00
1 parent b40e6284f9
commit 9de449782f
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in
ahcpd)
# ahcpd does not provide any option to report its version.
# Check that the binary starts and prints its usage instead.
ahcpd 2>&1 | grep -F "Syntax: ahcpd"
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac