pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/regress/buildlink-transform/tests Add regression tests...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/921a769a11fa
branches:  trunk
changeset: 483241:921a769a11fa
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Nov 09 16:44:49 2004 +0000

description:
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:

 regress/buildlink-transform/tests/libpath-in-define.mk |  8 ++++++++
 regress/buildlink-transform/tests/libpath.mk           |  8 ++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r d91803e43043 -r 921a769a11fa regress/buildlink-transform/tests/libpath-in-define.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/buildlink-transform/tests/libpath-in-define.mk    Tue Nov 09 16:44:49 2004 +0000
@@ -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 -r d91803e43043 -r 921a769a11fa regress/buildlink-transform/tests/libpath.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/buildlink-transform/tests/libpath.mk      Tue Nov 09 16:44:49 2004 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index