summaryrefslogtreecommitdiffstats
path: root/net/comrade/test.sh
blob: 17d923df0cac805716755a0fba4e41afdf2c6917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
#
# comrade: no package-specific test -- the generic checks (executable,
#   version banner, no hardcoded paths, stripped, linked libs) already cover
#   this binary; there is no comrade-specific behaviour worth grepping
#   arbitrary --help/show text for, which is free to change independently of
#   this file.
# comrade-tests: run the deterministic unit test suite (run-unit-tests.sh).
#   The end-to-end scenarios shipped alongside it are not run here: they need
#   real network/multicast conditions this CI's QEMU emulation cannot
#   promise, and several also need a live DHT. They are for manual use on
#   real hardware, see the comrade-tests package description.

# shellcheck shell=busybox

set -e

case "$1" in
comrade)
	;;

comrade-tests)
	/usr/share/comrade/tests/run-unit-tests.sh
	;;

*)
	echo "test.sh: unknown subpackage '$1' -- refusing to silently pass" >&2
	echo "test.sh: update net/comrade/test.sh to cover this subpackage" >&2
	exit 1
	;;
esac