summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pkg-config
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-06-07 12:18:23 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-06-07 12:18:23 +0000
commit6538514820308cb52b798643bd2f72d64320f563 (patch)
tree4b22180d66e296bd10e3ab5e6846963347a2e5d3 /regress/usr.bin/pkg-config
parentcd9a5847b7133d07a033e58dbcbdfafb434df28f (diff)
add test for spaces in the Name field which currently get mangled
Diffstat (limited to 'regress/usr.bin/pkg-config')
-rw-r--r--regress/usr.bin/pkg-config/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile
index b83d21c6857..82a4597cf17 100644
--- a/regress/usr.bin/pkg-config/Makefile
+++ b/regress/usr.bin/pkg-config/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.10 2011/06/07 06:42:47 jasper Exp $
+# $OpenBSD: Makefile,v 1.11 2011/06/07 12:18:22 jasper Exp $
REGRESS_TARGETS=cmp-vers1-1 \
cmp-vers1-2 \
@@ -21,6 +21,7 @@ REGRESS_TARGETS=cmp-vers1-1 \
missing-req-3 \
whitespace-cflags \
whitespace-libs \
+ whitespace-name
WANT= ${.OBJDIR}/$@.want
GOT= ${.OBJDIR}/$@.got
@@ -173,6 +174,13 @@ whitespace-libs:
whitespace > ${GOT}
@diff -u ${WANT} ${GOT}
+whitespace-name:
+ # Test whitespace in Name
+ @echo "Requested 'whitespace > 0.2.0' but version of Whitespace test is 0.0.0" > ${WANT}
+ @if PKG_CONFIG_PATH=${.CURDIR}/pcdir/ pkg-config --print-errors \
+ "whitespace > 0.2.0" 2> ${GOT}; then false; fi
+ @diff -u ${WANT} ${GOT}
+
clean:
rm -f *.want *.got