From 6b478fcf37c861d7eb4f747c85529f0a1e930ca8 Mon Sep 17 00:00:00 2001 From: Jeremie Courreges-Anglas Date: Sun, 2 Nov 2014 10:34:53 +0000 Subject: Tests for constructs such as 'foo >= a.version foo != another.version'. --- regress/usr.bin/pkg-config/Makefile | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'regress/usr.bin') 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" -- cgit v1.2.3