summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorjlam <jlam>2004-11-09 16:44:49 +0000
committerjlam <jlam>2004-11-09 16:44:49 +0000
commit86cd567a091ae9845cf1f2c9c8fca6251bc70aea (patch)
treefeca36aa68a97829b1aa3347495a8ad4cebd3391 /regress
parent3776328550f69a77bc6777792e68b67e1e25dcd5 (diff)
downloadpkgsrc-86cd567a091ae9845cf1f2c9c8fca6251bc70aea.tar.gz
Add regression tests to check that -DFOO="/usr/pkg/lib/libfoo.la" isn't
transformed by the wrapper scripts. This is the test case for the breakage in compiling audio/arts reported several weeks ago on tech-pkg@.
Diffstat (limited to 'regress')
-rw-r--r--regress/buildlink-transform/tests/libpath-in-define.mk8
-rw-r--r--regress/buildlink-transform/tests/libpath.mk8
2 files changed, 16 insertions, 0 deletions
diff --git a/regress/buildlink-transform/tests/libpath-in-define.mk b/regress/buildlink-transform/tests/libpath-in-define.mk
new file mode 100644
index 00000000000..88646a6c973
--- /dev/null
+++ b/regress/buildlink-transform/tests/libpath-in-define.mk
@@ -0,0 +1,8 @@
+# $NetBSD: libpath-in-define.mk,v 1.1 2004/11/09 16:44:49 jlam Exp $
+
+.PHONY: libpath-in-define
+do-regress: libpath-in-define
+libpath-in-define:
+ @test="-DFOO=\"${LOCALBASE}/lib/libfoo.la\""; \
+ expected="-DFOO=\"${LOCALBASE}/lib/libfoo.la\""; \
+ ${TEST_RESULT}
diff --git a/regress/buildlink-transform/tests/libpath.mk b/regress/buildlink-transform/tests/libpath.mk
new file mode 100644
index 00000000000..661c5f5ab2c
--- /dev/null
+++ b/regress/buildlink-transform/tests/libpath.mk
@@ -0,0 +1,8 @@
+# $NetBSD: libpath.mk,v 1.1 2004/11/09 16:44:49 jlam Exp $
+
+.PHONY: libpath
+do-regress: libpath
+libpath:
+ @test="${LOCALBASE}/lib/libfoo.la"; \
+ expected="${BUILDLINK_DIR}/lib/libfoo.la"; \
+ ${TEST_RESULT}