summaryrefslogtreecommitdiffstats
path: root/regress/usr.bin/pkg-config
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2013-03-27 09:46:55 +0000
committerjasper <jasper@openbsd.org>2013-03-27 09:46:55 +0000
commit7f9e9de06ebc75cb2ec98bfefcc70e349d881acc (patch)
tree4776ee98856aaac779f3416a16503762eed4be41 /regress/usr.bin/pkg-config
parentClaim to support I915_PARAM_HAS_COHERENT_RINGS. (diff)
downloadwireguard-openbsd-7f9e9de06ebc75cb2ec98bfefcc70e349d881acc.tar.xz
wireguard-openbsd-7f9e9de06ebc75cb2ec98bfefcc70e349d881acc.zip
add two tests for resolving a regular module (passes) and the full path
to a pkgconfig file (currently fails). the fix for pkg-config will be committed shortly
Diffstat (limited to 'regress/usr.bin/pkg-config')
-rw-r--r--regress/usr.bin/pkg-config/Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile
index 9e0aafc34e9..26ea388827a 100644
--- a/regress/usr.bin/pkg-config/Makefile
+++ b/regress/usr.bin/pkg-config/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.36 2012/12/10 10:23:27 jasper Exp $
+# $OpenBSD: Makefile,v 1.37 2013/03/27 09:46:55 jasper Exp $
REGRESS_TARGETS=cmp-vers1-1 \
cmp-vers1-2 \
@@ -59,7 +59,9 @@ REGRESS_TARGETS=cmp-vers1-1 \
exact-version-1 \
exact-version-2 \
max-version-1 \
- max-version-2
+ max-version-2 \
+ find-config-1 \
+ find-config-2
PKG_CONFIG?= pkg-config
PCONFIG = PKG_CONFIG_PATH=${.CURDIR}/pcdir/ ${PKG_CONFIG}
@@ -430,6 +432,21 @@ max-version-2:
# Test --max-version (doesn't match)
@if ${PCONFIG} --max-version=0.0.9 vers1 ; then false; fi
+find-config-1:
+ # Test a regular module name being resolved
+ @echo "1.0.0" > ${WANT}
+ @${VPCONFIG} --modversion public-dep
+ @diff -u ${WANT} ${GOT}
+
+# Need to use ${PKG_CONFIG} instead of ${VPCONFIG} as the latter sets PKG_CONFIG_PATH,
+# which is exactly what we don't want for this test.
+find-config-2:
+ # Test a full path to a .pc file
+ @echo "1.0.0" > ${WANT}
+ @${PKG_CONFIG} --errors-to-stdout --print-errors --modversion \
+ ${.CURDIR}/pcdir/public-dep.pc > ${GOT}
+ @diff -u ${WANT} ${GOT}
+
clean:
rm -f *.want *.got