summaryrefslogtreecommitdiffstats
path: root/ahcpd/test-version.sh
blob: 130f48d0f28c5b8478ac751485a22ba2b518c279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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