diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2015-10-26 18:09:33 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2015-10-26 18:09:33 +0000 |
commit | 9b695c439bc3d1cb48e59e0f1293d3b58062cd58 (patch) | |
tree | 324af7fb75e7cea215e559a28c895777f4447b50 /regress | |
parent | 42ddecca1a4e3bd65dd26a42aebbb19984de8c0c (diff) |
add tests for whitespace surrounding properties
Diffstat (limited to 'regress')
4 files changed, 29 insertions, 1 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile index 5eef8570176..26a725a9a7d 100644 --- a/regress/usr.bin/pkg-config/Makefile +++ b/regress/usr.bin/pkg-config/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.52 2015/10/11 11:47:21 jasper Exp $ +# $OpenBSD: Makefile,v 1.53 2015/10/26 18:09:32 jasper Exp $ REGRESS_TARGETS=cmp-vers1-1 \ cmp-vers1-2 \ @@ -63,6 +63,8 @@ REGRESS_TARGETS=cmp-vers1-1 \ whitespace-libs \ whitespace-linebreak \ whitespace-name \ + whitespace-property-1 \ + whitespace-property-2 \ quoting \ broken-require-1 \ broken-require-2 \ @@ -469,6 +471,18 @@ whitespace-name: @if ${VPCONFIG} "whitespace > 0.2.0"; then false; fi @diff -u ${WANT} ${GOT} +whitespace-property-1: + # Test lack of whitespace after property name + @echo "-I/usr/local/include" > ${WANT} + @${VPCONFIG} --cflags whitespace-prop-1 + @diff -u ${WANT} ${GOT} + +whitespace-property-2: + # Test whitespace after property name + @echo "0.0.0" > ${WANT} + @${VPCONFIG} --modversion whitespace-prop-3 + @diff -u ${WANT} ${GOT} + quoting: # Test for stripping out quotes from variables @echo "-I/usr/X11R6/include/freetype2" > ${WANT} diff --git a/regress/usr.bin/pkg-config/pcdir/whitespace-prop-1.pc b/regress/usr.bin/pkg-config/pcdir/whitespace-prop-1.pc new file mode 100644 index 00000000000..628f0ac48b3 --- /dev/null +++ b/regress/usr.bin/pkg-config/pcdir/whitespace-prop-1.pc @@ -0,0 +1,4 @@ +Name: Whitespace test +Description: pkg-config(1) regress file +Version: 0.0.0 +Requires:whitespace-prop-2 diff --git a/regress/usr.bin/pkg-config/pcdir/whitespace-prop-2.pc b/regress/usr.bin/pkg-config/pcdir/whitespace-prop-2.pc new file mode 100644 index 00000000000..9baddc69577 --- /dev/null +++ b/regress/usr.bin/pkg-config/pcdir/whitespace-prop-2.pc @@ -0,0 +1,7 @@ +prefix=/usr/local +includedir=${prefix}/include + +Name: Whitespace test +Description: pkg-config(1) regress file +Version: 0.0.0 +Cflags: -I${includedir} diff --git a/regress/usr.bin/pkg-config/pcdir/whitespace-prop-3.pc b/regress/usr.bin/pkg-config/pcdir/whitespace-prop-3.pc new file mode 100644 index 00000000000..6687d49b1ed --- /dev/null +++ b/regress/usr.bin/pkg-config/pcdir/whitespace-prop-3.pc @@ -0,0 +1,3 @@ +Name: Whitespace test +Description: pkg-config(1) regress file +Version: 0.0.0 |