diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2019-02-04 20:18:28 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2019-02-04 20:18:28 +0000 |
commit | db9479d57764d924c46a6949b99426dba74bde84 (patch) | |
tree | 8099f6618309c1d9439572c9ca85bb5d50fbb7d6 /regress | |
parent | b510453dc598e25bb1def1b4881a24e59ecbf51a (diff) |
add tests for PKG_CONFIG_$PACKAGE_$VARIABLE
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/pkg-config/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile index 408603b36b4..452eb336e72 100644 --- a/regress/usr.bin/pkg-config/Makefile +++ b/regress/usr.bin/pkg-config/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.60 2019/02/04 18:53:19 jasper Exp $ +# $OpenBSD: Makefile,v 1.61 2019/02/04 20:18:27 jasper Exp $ REGRESS_TARGETS=cmp-vers1-1 \ cmp-vers1-2 \ @@ -92,6 +92,8 @@ REGRESS_TARGETS=cmp-vers1-1 \ variables-3 \ variables-4 \ variables-5 \ + variables-6 \ + variables-7 \ filter-system-dirs-1 \ filter-system-dirs-2 \ filter-system-dirs-3 \ @@ -631,6 +633,18 @@ variables-5: @${VPCONFIG} --libs variables @diff -u ${WANT} ${GOT} +variables-6: + # Test variable overriding from environment + @echo ' -lfoo-2' > ${WANT} + @PKG_CONFIG_VARIABLES_FOO_API_VERSION=2 ${VPCONFIG} --libs variables + @diff -u ${WANT} ${GOT} + +variables-7: + # Ensure variable overriding only uses uppercase keys + @echo ' -lfoo-1' > ${WANT} + @PKG_CONFIG_variables_foo_api_version=2 ${VPCONFIG} --libs variables + @diff -u ${WANT} ${GOT} + filter-system-dirs-1: # Test removing -I/usr/include as a system directory @echo '-DFILTER' > ${WANT} |