diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-11-03 11:14:50 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-11-03 11:14:50 +0000 |
commit | 16478f17d9d4a96cda9c43c86dbad050b532dade (patch) | |
tree | e6ec08bda39dc62484cf36eb412ae6f4b188eefc | |
parent | 5c1f76d49ef66706cbe3e14b25b5415a69c04f34 (diff) |
Add some (currently failing) version number comparison tests.
ok espie@
-rw-r--r-- | regress/usr.sbin/pkg_add/check-name | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/regress/usr.sbin/pkg_add/check-name b/regress/usr.sbin/pkg_add/check-name index fb6e6317a86..a3fd12ef7ef 100644 --- a/regress/usr.sbin/pkg_add/check-name +++ b/regress/usr.sbin/pkg_add/check-name @@ -1,9 +1,9 @@ #! /usr/bin/perl -# $OpenBSD: check-name,v 1.6 2008/07/15 10:48:14 espie Exp $ +# $OpenBSD: check-name,v 1.7 2009/11/03 11:14:49 sthen Exp $ # Written by Marc Espie # Public domain -use Test::Simple tests => 11; +use Test::Simple tests => 13; use OpenBSD::Search; use OpenBSD::PackageName; @@ -44,6 +44,12 @@ ok(check_list([qw(foo-1.0 foo-1.0p0)], ok(check_list([qw(foo-1.0 foo-1.0p0 foo-1.0p25)], check_pkgspec('foo-1.0', @list)), 'any 1.0p* matches 1.0'); +ok(check_list([qw(foo-1.0rc2)], + check_pkgspec('foo-<1.0', @list)), + 'before 1.0 came 1.0rc2'); +ok(check_list([qw(foo-1.0)], + check_pkgspec('foo-<1.0pl1', @list)), + 'before 1.0pl1 came 1.0'); my @pkglist=qw(foo-1.0 bar-2.0 foo-2.5 foobar-2.3-pouet hugs-noversion baz-0.0 baz-1.1 baz-25.3 pouet-1.0 pouet-zoinx-1.0 pouet-0.0-foo); |