summaryrefslogtreecommitdiffstats
path: root/sound/mpd/test-version.sh
blob: c6f90488a8198222640af270e44cac3090cfa06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# shellcheck shell=busybox

# mpd 0.24 refuses to start when /proc/self/status reports more than one
# thread before main() runs, which it does under qemu-user, so the binary
# cannot be asked for its version on the emulated CI targets. Match the
# version string compiled into it instead.
case "$1" in
mpd-full | mpd-mini)
	grep -aqF "$2" /usr/bin/mpd
	;;
mpd-avahi-service)
	exit 0
	;;
*)
	echo "Untested package: $1" >&2
	exit 1
	;;
esac