summaryrefslogtreecommitdiff
path: root/test/version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/version.sh')
-rwxr-xr-xtest/version.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/version.sh b/test/version.sh
index e01b674..18199a6 100755
--- a/test/version.sh
+++ b/test/version.sh
@@ -1,7 +1,7 @@
#!/bin/sh
fail=0
-while read a result b rest ; do
+cat version.data | 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"
@@ -9,5 +9,9 @@ while read a result b rest ; do
fi
done
+if [ "$fail" == "0" ]; then
+ echo "OK: version checking works"
+fi
+
exit $fail