behaviour can be undefined… (or at least can't be tested against dpkg)
local DIR=$(readlink -f $(dirname $0))
echo "Compiling the tests …"
test -d "$DIR/../../build/obj/test/libapt/" || mkdir -p "$DIR/../../build/obj/test/libapt/"
-$(cd $DIR && make)
+(cd $DIR && make)
echo "Running all testcases …"
LDPATH="$DIR/../../build/bin"
EXT="_libapt_test"
1.4+OOo3.0.0~ 1.4+OOo3.0.0-4 -1 # another tilde check
2.4.7-1 2.4.7-z -1 # revision comparing
1.002-1+b2 1.00 1 # whatever...
-2.2.4-47978_Debian_lenny 2.2.4-47978_Debian_lenny 0 # and underscore...