summaryrefslogtreecommitdiff
path: root/test/version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/version.sh')
-rwxr-xr-xtest/version.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/version.sh b/test/version.sh
new file mode 100755
index 0000000..e01b674
--- /dev/null
+++ b/test/version.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+fail=0
+while read a result b rest ; do
+ output="$(../src/apk version -t "$a" "$b")"
+ if [ "$output" != "$result" ] ; then
+ echo "$a $result $b, but got $output"
+ fail=$(($fail+1))
+ fi
+done
+
+exit $fail
+