summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pkg-config
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.bin/pkg-config')
-rw-r--r--regress/usr.bin/pkg-config/Makefile9
-rw-r--r--regress/usr.bin/pkg-config/pcdir/vers4.pc3
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