mirror of
https://github.com/openwrt/routing.git
synced 2026-10-12 02:37:25 +04:00
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:
1 parent
b40e6284f9
commit
9de449782f
1 file changed
+16
@@ -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
|
||||
Reference in new issue
Block a user