summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2011-06-07 12:18:22 +0000
committerjasper <jasper@openbsd.org>2011-06-07 12:18:22 +0000
commit3c9f9db6607a7819b08dbb75c1cf25a55eaf1029 (patch)
tree08461ab381c19a54a6ae8f6604b5d06e8b341c13
parentsensible Name fields (diff)
downloadwireguard-openbsd-3c9f9db6607a7819b08dbb75c1cf25a55eaf1029.tar.xz
wireguard-openbsd-3c9f9db6607a7819b08dbb75c1cf25a55eaf1029.zip
add test for spaces in the Name field which currently get mangled
-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