Commit 48930b9f authored by Timo Teräs's avatar Timo Teräs

test: add test cases for version comparing

so i don't get to break version compares again.
parent a93a35ee
This diff is collapsed.
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment