summaryrefslogblamecommitdiff
path: root/test/version.sh
blob: e01b67490c97ea5888472e68e58b7030b9b5021a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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