summaryrefslogtreecommitdiffstats
path: root/tests/cli.sh
blob: 0dcbf2006b68bd688846051d61e31a3293587f27 (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
# awlsim-cli tests

sh_test()
{
	local interpreter="$1"

	cd "$rootdir" || die "Failed to change to rootdir '$rootdir'"


	"$interpreter" ./awlsim-cli -h >/dev/null ||\
		test_failed "Call to awlsim-cli -h failed"
	"$interpreter" ./awlsim-cli --help >/dev/null ||\
		test_failed "Call to awlsim-cli -h failed"

	"$interpreter" ./awlsim-cli -I dummy >/dev/null ||\
		test_failed "Call to awlsim-cli -I dummy failed"
	"$interpreter" ./awlsim-cli --hardware-info dummy >/dev/null ||\
		test_failed "Call to awlsim-cli --hardware-info dummy failed"

	"$interpreter" ./awlsim-cli --list-sfc >/dev/null ||\
		test_failed "Call to awlsim-cli --list-sfc failed"
	"$interpreter" ./awlsim-cli --list-sfc-verbose >/dev/null ||\
		test_failed "Call to awlsim-cli --list-sfc-verbose failed"
	"$interpreter" ./awlsim-cli --list-sfb >/dev/null ||\
		test_failed "Call to awlsim-cli --list-sfb failed"
	"$interpreter" ./awlsim-cli --list-sfb-verbose >/dev/null ||\
		test_failed "Call to awlsim-cli --list-sfb-verbose failed"

}
bues.ch cgit interface