summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pkg-config/Makefile
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-08-26 09:07:53 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-08-26 09:07:53 +0000
commit54b713d431880dcfb0a0582b4dfa21c4f2de2ba2 (patch)
treeb80966a62351dab78bd888041e7d4ccadfc2e6c7 /regress/usr.bin/pkg-config/Makefile
parent7c2bae621da0ee90e45e99bee7794c9435846ec7 (diff)
Add regression tests for not removing subpaths of /usr/include and
/usr/lib. ok jasper@
Diffstat (limited to 'regress/usr.bin/pkg-config/Makefile')
-rw-r--r--regress/usr.bin/pkg-config/Makefile25
1 files changed, 23 insertions, 2 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile
index 7716b85f11c..3fcac71aa90 100644
--- a/regress/usr.bin/pkg-config/Makefile
+++ b/regress/usr.bin/pkg-config/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.56 2017/08/15 01:22:05 jasper Exp $
+# $OpenBSD: Makefile,v 1.57 2017/08/26 09:07:52 jsg Exp $
REGRESS_TARGETS=cmp-vers1-1 \
cmp-vers1-2 \
@@ -88,7 +88,10 @@ REGRESS_TARGETS=cmp-vers1-1 \
variables-5 \
filter-system-dirs-1 \
filter-system-dirs-2 \
- filter-system-dirs-3
+ filter-system-dirs-3 \
+ filter-system-dirs-4 \
+ filter-system-dirs-5 \
+ filter-system-dirs-6
PKG_CONFIG?= /usr/bin/pkg-config
PCONFIG = PKG_CONFIG_PATH=${.CURDIR}/pcdir/ ${PKG_CONFIG}
@@ -609,6 +612,24 @@ filter-system-dirs-3:
@${VPCONFIG} --static --libs filter
@diff -u ${WANT} ${GOT}
+filter-system-dirs-4:
+ # Test not removing -I/usr/include/filter as a system directory
+ @echo '-I/usr/include/filter -DFILTER' > ${WANT}
+ @${VPCONFIG} --cflags filter2
+ @diff -u ${WANT} ${GOT}
+
+filter-system-dirs-5:
+ # Test not removing -L/usr/lib/filter as a system directory
+ @echo '-L/usr/lib/filter -lfilter' > ${WANT}
+ @${VPCONFIG} --libs filter2
+ @diff -u ${WANT} ${GOT}
+
+filter-system-dirs-6:
+ # Test not removing -L/usr/lib/filter as a system directory (static)
+ @echo '-L/usr/lib/filter -lfilter -lprivate-filter' > ${WANT}
+ @${VPCONFIG} --static --libs filter2
+ @diff -u ${WANT} ${GOT}
+
clean:
rm -f *.want *.got