summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
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}