8 res=$(zpm-vercmp "$1" "$2")
9 okstreq "$res" -1 "$1 < $2"
10 res=$(zpm-vercmp "$2" "$1")
11 okstreq "$res" 1 "$2 > $1"
12 res=$(zpm-vercmp "$1" "$1")
13 okstreq "$res" 0 "$1 == $1"
19 l=$(zpm vercmp -L "$@")
20 okstreq "$l" "$want" "least $*"
26 g=$(zpm vercmp -G "$@")
27 okstreq "$g" "$want" "greatest $*"
39 zpm vercmp -gq 'gnupg-1.0-1' "gnupg-2.0-1"
40 exitwith 1 vercmp -g not gt
42 zpm vercmp -gq 'gnupg-2.0-1' "gnupg-1.0-1"
43 exitwith 0 vercmp -g is gt