summaryrefslogtreecommitdiff
path: root/tests/test-basic.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-basic.sh')
-rw-r--r--tests/test-basic.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test-basic.sh b/tests/test-basic.sh
new file mode 100644
index 0000000..3d4fffe
--- /dev/null
+++ b/tests/test-basic.sh
@@ -0,0 +1,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