summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-07-08 07:45:38 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-07-08 07:45:38 +0000
commit1eab193ab6f0eab43a14b03fe0d9055cd8d9dd9a (patch)
treed7d097334e0d921e5c7c96a650964298668b0b27 /regress/usr.bin
parent00fa172f244cb12526ff4cd2043c96f02fafb458 (diff)
nasty real test, create a Requires that depends on a variable in such a
way that a reparse is needed
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/pkg-config/Makefile14
-rw-r--r--regress/usr.bin/pkg-config/pcdir/requires-test4.pc6
2 files changed, 18 insertions, 2 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile
index 918f69d8ae4..41172c50d4c 100644
--- a/regress/usr.bin/pkg-config/Makefile
+++ b/regress/usr.bin/pkg-config/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.31 2012/07/08 06:52:00 espie Exp $
+# $OpenBSD: Makefile,v 1.32 2012/07/08 07:45:37 espie Exp $
REGRESS_TARGETS=cmp-vers1-1 \
cmp-vers1-2 \
@@ -50,7 +50,9 @@ REGRESS_TARGETS=cmp-vers1-1 \
whitespace-cflags \
whitespace-libs \
whitespace-linebreak \
- whitespace-name
+ whitespace-name \
+ broken-require-1 \
+ broken-require-2
PKG_CONFIG= pkg-config
PCONFIG = PKG_CONFIG_PATH=${.CURDIR}/pcdir/ ${PKG_CONFIG}
@@ -384,6 +386,14 @@ whitespace-name:
@if ${VPCONFIG} "whitespace > 0.2.0"; then false; fi
@diff -u ${WANT} ${GOT}
+broken-require-1:
+ # Test expanded variables with special parsing requirements
+ ${PCONFIG} requires-test3
+
+broken-require-2:
+ # Test expanded variables with special parsing requirements
+ ${PCONFIG} requires-test4
+
clean:
rm -f *.want *.got
diff --git a/regress/usr.bin/pkg-config/pcdir/requires-test4.pc b/regress/usr.bin/pkg-config/pcdir/requires-test4.pc
new file mode 100644
index 00000000000..7a3fe60273f
--- /dev/null
+++ b/regress/usr.bin/pkg-config/pcdir/requires-test4.pc
@@ -0,0 +1,6 @@
+requires=alpha >= 0.0 beta
+
+Name: Requires/$requires expansion test
+Description: pkg-config(1) regress file
+Version: 1.0
+Requires: ${requires}