apk-tools/tests/test-basic.sh

17 lines
374 B
Bash
Raw Normal View History

#!/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