diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2015-08-14 06:38:17 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2015-08-14 06:38:17 +0000 |
commit | a0d029c248576fd011b68d6ef2913c47af62fda9 (patch) | |
tree | 187610049417802fbe469cc442c3f954b0836770 /regress/usr.bin/pkg-config | |
parent | 68704befa2a2cb39d5082887c61ae48a17125d96 (diff) |
add (currently failing) test for version comparison against "22-stable"
from attila@stalphonsos.com
Diffstat (limited to 'regress/usr.bin/pkg-config')
-rw-r--r-- | regress/usr.bin/pkg-config/Makefile | 9 | ||||
-rw-r--r-- | regress/usr.bin/pkg-config/pcdir/vers4.pc | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile index 333db04b14a..63b80910aea 100644 --- a/regress/usr.bin/pkg-config/Makefile +++ b/regress/usr.bin/pkg-config/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.49 2014/11/02 10:34:52 jca Exp $ +# $OpenBSD: Makefile,v 1.50 2015/08/14 06:38:16 jasper Exp $ REGRESS_TARGETS=cmp-vers1-1 \ cmp-vers1-2 \ @@ -38,6 +38,7 @@ REGRESS_TARGETS=cmp-vers1-1 \ cmp-vers7-2 \ cmp-vers7-3 \ cmp-vers7-4 \ + cmp-vers8-1 \ corrupt1 \ corrupt2 \ corrupt3 \ @@ -343,6 +344,12 @@ cmp-vers7-4: @${VPCONFIG} "vers3 > 1.0.1" @diff -u ${WANT} ${GOT} +cmp-vers8-1: + # Test Version: x.y.z-stable w/compare() + @touch ${WANT} + @${VPCONFIG} --atleast-version=2.0.1 vers4 + @diff -u ${WANT} ${GOT} + # Tests for various environment variables builddir: # Test PKG_CONFIG_TOP_BUILD_DIR diff --git a/regress/usr.bin/pkg-config/pcdir/vers4.pc b/regress/usr.bin/pkg-config/pcdir/vers4.pc new file mode 100644 index 00000000000..e4f9281857e --- /dev/null +++ b/regress/usr.bin/pkg-config/pcdir/vers4.pc @@ -0,0 +1,3 @@ +Name: dash-stable +Description: pkg-config(1) regress file +Version: 2.0.22-stable |