Files
routing/ahcpd/test-version.sh
T
Josef SchlehoferandClaude Fable 5 9de449782f 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>
2026-08-10 09:43:05 +02:00

17 lines
291 B
Bash

#!/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