aboutsummaryrefslogtreecommitdiffstats
path: root/tests/000-base/cli.sh
blob: 1df0bbbe757b271f9bf492f634c8c5d7ace831a3 (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
# command line interface tests

sh_test()
{
	local interpreter="$1"

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


	# check awlsim-test executable

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

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

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

}
bues.ch cgit interface