summaryrefslogtreecommitdiffstats
path: root/net/uradvd/test-version.sh
blob: 1cf0e57c2a070d5cf0ff81a8403aaa4230a0ba85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

case "$1" in
uradvd)
	# The binary is built with VERSION=$(PKG_SOURCE_DATE) and prints
	# "uradvd 2025-09-20", while PKG_VERSION is 2025.09.20~<short hash>.
	version=$(echo "${2%%~*}" | tr . -)
	uradvd --version | grep -Fx "uradvd $version"
	;;

*)
	echo "Untested package: $1" >&2
	exit 1
	;;
esac