2009-11-06 11:20:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
fail=0
|
2011-07-26 13:56:55 +00:00
|
|
|
cat version.data | while read a result b rest ; do
|
2009-11-06 11:20:30 +00:00
|
|
|
output="$(../src/apk version -t "$a" "$b")"
|
|
|
|
if [ "$output" != "$result" ] ; then
|
|
|
|
echo "$a $result $b, but got $output"
|
|
|
|
fail=$(($fail+1))
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2011-07-26 13:56:55 +00:00
|
|
|
if [ "$fail" == "0" ]; then
|
|
|
|
echo "OK: version checking works"
|
|
|
|
fi
|
|
|
|
|
2009-11-06 11:20:30 +00:00
|
|
|
exit $fail
|
|
|
|
|