summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2014-11-02 10:34:53 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2014-11-02 10:34:53 +0000
commit6b478fcf37c861d7eb4f747c85529f0a1e930ca8 (patch)
tree6905b135c95e3512d003365b8b3be3f25c669172 /regress
parentb1673c52f2a6120dc0bf226ba76825ae193e2fd3 (diff)
Tests for constructs such as 'foo >= a.version foo != another.version'.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/pkg-config/Makefile32
1 files changed, 31 insertions, 1 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile
index 9a9b8ace7fd..333db04b14a 100644
--- a/regress/usr.bin/pkg-config/Makefile
+++ b/regress/usr.bin/pkg-config/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.48 2014/11/02 01:09:54 jca Exp $
+# $OpenBSD: Makefile,v 1.49 2014/11/02 10:34:52 jca Exp $
REGRESS_TARGETS=cmp-vers1-1 \
cmp-vers1-2 \
@@ -9,6 +9,12 @@ REGRESS_TARGETS=cmp-vers1-1 \
cmp-vers2-4 \
cmp-vers2-5 \
cmp-vers2-6 \
+ cmp-vers2-7 \
+ cmp-vers2-8 \
+ cmp-vers2-9 \
+ cmp-vers2-10 \
+ cmp-vers2-11 \
+ cmp-vers2-12 \
cmp-vers3 \
cmp-vers4-1 \
cmp-vers4-2 \
@@ -157,6 +163,30 @@ cmp-vers2-6:
# Test regular versions (a != b)
@if ${PCONFIG} --exists "vers2 != 0.2.0"; then false; fi
+cmp-vers2-7:
+ # Test regular versions (a >= b a != c)
+ @${PCONFIG} --exists "vers2 >= 0.1.0 vers2 != 0.3.0"
+
+cmp-vers2-8:
+ # Test regular versions (a >= b a != c)
+ @${PCONFIG} --exists "vers2 >= 0.2.0 vers2 != 0.3.0"
+
+cmp-vers2-9:
+ # Test regular versions (a >= b a != c)
+ @if ${PCONFIG} --exists "vers2 >= 0.1.0 vers2 != 0.2.0"; then false; fi
+
+cmp-vers2-10:
+ # Test regular versions (a >= b a < c)
+ @if ${PCONFIG} --exists "vers2 >= 0.2.0 vers2 < 0.1.0"; then false; fi
+
+cmp-vers2-11:
+ # Test regular versions (a >= b a < c)
+ @if ${PCONFIG} --exists "vers2 >= 0.2.0 vers2 < 0.2.0"; then false; fi
+
+cmp-vers2-12:
+ # Test regular versions (a >= b a < c)
+ @${PCONFIG} --exists "vers2 >= 0.2.0 vers2 < 0.3.0"
+
cmp-vers3:
# Test regular versions (a = b)
@${PCONFIG} --exists "vers2 = 0.2.0"