From a0d029c248576fd011b68d6ef2913c47af62fda9 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Fri, 14 Aug 2015 06:38:17 +0000 Subject: add (currently failing) test for version comparison against "22-stable" from attila@stalphonsos.com --- regress/usr.bin/pkg-config/Makefile | 9 ++++++++- regress/usr.bin/pkg-config/pcdir/vers4.pc | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 regress/usr.bin/pkg-config/pcdir/vers4.pc (limited to 'regress/usr.bin/pkg-config') 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 -- cgit v1.2.3