summaryrefslogtreecommitdiff
path: root/tests/test-basic.sh
blob: 3d4fffee5fa844641bf6d7a28046f27865cc1fc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

source ${SRC:-.}/test-lib.sh

t_case "help" && {
	help_normal=$($APK version --help 2>/dev/null) || true
	[ "${#help_normal}" -gt 2000 ]
	help_invalid=$($APK version --invalid-option 2>/dev/null) || true
	[ "$help_normal" = "$help_invalid" ]
}

t_case "version" && {
	sed 's/[[:blank:]]*#.*//g' < $SRC/version.data | tr '\n' '\0' | xargs -0 $APK vertest
}

t_end