summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-09 22:50:14 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-09 22:50:14 +0000
commitf3f962659595147d6b8ed2bfcedbd21cb07babdc (patch)
treef9590c1b36363bceb4f2af20d406ebd504dd83c5 /regress/usr.bin
parentb618da3289b59da5a0745959928c13d42b56e2e0 (diff)
add some (currently failing) tests for openssl-like version number (1.0.1g) comparisons
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/pkg-config/Makefile31
-rw-r--r--regress/usr.bin/pkg-config/pcdir/vers3.pc8
2 files changed, 37 insertions, 2 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile
index 44deae6745c..5a517b9bbee 100644
--- a/regress/usr.bin/pkg-config/Makefile
+++ b/regress/usr.bin/pkg-config/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.45 2014/04/14 13:20:46 jasper Exp $
+# $OpenBSD: Makefile,v 1.46 2014/07/09 22:50:12 jasper Exp $
REGRESS_TARGETS=cmp-vers1-1 \
cmp-vers1-2 \
@@ -26,6 +26,10 @@ REGRESS_TARGETS=cmp-vers1-1 \
cmp-vers5-7 \
cmp-vers6-1 \
cmp-vers6-2 \
+ cmp-vers7-1 \
+ cmp-vers7-2 \
+ cmp-vers7-3 \
+ cmp-vers7-4 \
corrupt1 \
corrupt2 \
corrupt3 \
@@ -201,7 +205,6 @@ cmp-vers4-9:
@${VPCONFIG} "alpha = 0.1.0alpha2"
@diff -u ${WANT} ${GOT}
-
cmp-vers5-1:
# Test suffixed versions (beta > alpha)
@touch ${WANT}
@@ -276,6 +279,30 @@ cmp-vers6-2:
@if ${VPCONFIG} --libs --static requires-test2; then false; fi
@diff -u ${WANT} ${GOT}
+cmp-vers7-1:
+ # Test suffixed version (vers3 > 1.0.1g)
+ @touch ${WANT}
+ @${VPCONFIG} "vers3 > 1.0.1g"
+ @diff -u ${WANT} ${GOT}
+
+cmp-vers7-2:
+ # Test suffixed version (vers3 < 1.0.1i)
+ @touch ${WANT}
+ @${VPCONFIG} "vers3 < 1.0.1i"
+ @diff -u ${WANT} ${GOT}
+
+cmp-vers7-3:
+ # Test suffixed version (vers3 < 1.0.1i)
+ @touch ${WANT}
+ @${VPCONFIG} "vers3 < 1.0.1i"
+ @diff -u ${WANT} ${GOT}
+
+cmp-vers7-4:
+ # Test suffixed version (vers3 > 1.0.1)
+ @touch ${WANT}
+ @${VPCONFIG} "vers3 > 1.0.1"
+ @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/vers3.pc b/regress/usr.bin/pkg-config/pcdir/vers3.pc
new file mode 100644
index 00000000000..a04c0f3c5db
--- /dev/null
+++ b/regress/usr.bin/pkg-config/pcdir/vers3.pc
@@ -0,0 +1,8 @@
+prefix=/tmp
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: Version test 3
+Description: pkg-config(1) regress file
+Version: 1.0.1h