summaryrefslogtreecommitdiffstats
path: root/regress/usr.bin/pkg-config
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2014-03-31 06:44:23 +0000
committerjasper <jasper@openbsd.org>2014-03-31 06:44:23 +0000
commitb80335d20320f3b7fbef62bf5b088efe26205319 (patch)
tree26eb6a38ef88be878818890719f11a9fc755c4d4 /regress/usr.bin/pkg-config
parentmove the last htoleXX things to htolemXX where possible. (diff)
downloadwireguard-openbsd-b80335d20320f3b7fbef62bf5b088efe26205319.tar.xz
wireguard-openbsd-b80335d20320f3b7fbef62bf5b088efe26205319.zip
add test where Libs contains a variable reference
Diffstat (limited to 'regress/usr.bin/pkg-config')
-rw-r--r--regress/usr.bin/pkg-config/Makefile11
-rw-r--r--regress/usr.bin/pkg-config/pcdir/variables.pc3
2 files changed, 12 insertions, 2 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile
index ca694f47919..38391cf697a 100644
--- a/regress/usr.bin/pkg-config/Makefile
+++ b/regress/usr.bin/pkg-config/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.43 2014/03/29 11:37:05 jasper Exp $
+# $OpenBSD: Makefile,v 1.44 2014/03/31 06:44:23 jasper Exp $
REGRESS_TARGETS=cmp-vers1-1 \
cmp-vers1-2 \
@@ -66,7 +66,8 @@ REGRESS_TARGETS=cmp-vers1-1 \
variables-1 \
variables-2 \
variables-3 \
- variables-4
+ variables-4 \
+ variables-5
PKG_CONFIG?= pkg-config
PCONFIG = PKG_CONFIG_PATH=${.CURDIR}/pcdir/ ${PKG_CONFIG}
@@ -481,6 +482,12 @@ variables-4:
@${VPCONFIG} --define-variable=libdir='$${libdir}' --variable=plugindir variables
@diff -u ${WANT} ${GOT}
+variables-5:
+ # Test --variable
+ @echo ' -lfoo-0' > ${WANT}
+ @${VPCONFIG} --libs variables
+ @diff -u ${WANT} ${GOT}
+
clean:
rm -f *.want *.got
diff --git a/regress/usr.bin/pkg-config/pcdir/variables.pc b/regress/usr.bin/pkg-config/pcdir/variables.pc
index 2dd75f79806..9d5b22943e0 100644
--- a/regress/usr.bin/pkg-config/pcdir/variables.pc
+++ b/regress/usr.bin/pkg-config/pcdir/variables.pc
@@ -3,6 +3,9 @@ exec_prefix=${prefix}
libdir=${exec_prefix}/lib
plugindir=${libdir}/pkgconfig-plugins.0
+foo_api_version=0
+
Name: variables
Description: pkg-config(1) regress file
Version: 0.1.0
+Libs: -lfoo-${foo_api_version}