summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-03-31 06:44:24 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-03-31 06:44:24 +0000
commita8e9003132202f1b076af3652a2ca5436aec836b (patch)
tree922a30a07f3f0fcb546a33af6700ce8ed3492638 /regress/usr.bin
parent08a3bd1311cfdcc30d88d54705c1b84ad4373f9d (diff)
add test where Libs contains a variable reference
Diffstat (limited to 'regress/usr.bin')
-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}