pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress/buildlink-transform Add two new tests for rpat...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e171ac006735
branches: trunk
changeset: 495387:e171ac006735
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Jun 08 05:49:21 2005 +0000
description:
Add two new tests for rpath argument merging and splitting.
diffstat:
regress/buildlink-transform/Makefile | 4 +++-
regress/buildlink-transform/tests/rpath-merge.mk | 15 +++++++++++++++
regress/buildlink-transform/tests/rpath-split.mk | 15 +++++++++++++++
3 files changed, 33 insertions(+), 1 deletions(-)
diffs (59 lines):
diff -r f847140e105b -r e171ac006735 regress/buildlink-transform/Makefile
--- a/regress/buildlink-transform/Makefile Wed Jun 08 05:02:50 2005 +0000
+++ b/regress/buildlink-transform/Makefile Wed Jun 08 05:49:21 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2005/05/02 05:16:21 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2005/06/08 05:49:21 jlam Exp $
#
# Run many buildlink transform tests in a single regression test to avoid
# having to keep creating the wrapper scripts over and over again.
@@ -123,9 +123,11 @@
. include "tests/remove-dir.mk"
. include "tests/remove-option.mk"
. include "tests/repeated-arg.mk"
+. include "tests/rpath-merge.mk"
. include "tests/rpath-pkgdir-slashdot.mk"
. include "tests/rpath-pkgdir.mk"
. include "tests/rpath-pkgsubdir.mk"
+. include "tests/rpath-split.mk"
. include "tests/rpath-usr-lib-slashdot.mk"
. include "tests/rpath-usr-lib-subdir.mk"
. include "tests/rpath-usr-lib.mk"
diff -r f847140e105b -r e171ac006735 regress/buildlink-transform/tests/rpath-merge.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/buildlink-transform/tests/rpath-merge.mk Wed Jun 08 05:49:21 2005 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: rpath-merge.mk,v 1.1 2005/06/08 05:49:21 jlam Exp $
+
+.PHONY: rpath-merge
+do-regress: rpath-merge
+rpath-merge:
+ @test="${COMPILER_RPATH_FLAG} -Wl,${LOCALBASE}/lib:${LOCALBASE}/lib/foo"; \
+ case "${_USE_RPATH}" in \
+ [yY][eE][sS]) \
+ expected="${COMPILER_RPATH_FLAG}${LOCALBASE}/lib ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib/foo"; \
+ ;; \
+ *) \
+ expected=""; \
+ ;; \
+ esac; \
+ ${TEST_RESULT}
diff -r f847140e105b -r e171ac006735 regress/buildlink-transform/tests/rpath-split.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/buildlink-transform/tests/rpath-split.mk Wed Jun 08 05:49:21 2005 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: rpath-split.mk,v 1.1 2005/06/08 05:49:21 jlam Exp $
+
+.PHONY: rpath-split
+do-regress: rpath-split
+rpath-split:
+ @test="${COMPILER_RPATH_FLAG}${LOCALBASE}/lib:${LOCALBASE}/lib/foo"; \
+ case "${_USE_RPATH}" in \
+ [yY][eE][sS]) \
+ expected="${COMPILER_RPATH_FLAG}${LOCALBASE}/lib ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib/foo"; \
+ ;; \
+ *) \
+ expected=""; \
+ ;; \
+ esac; \
+ ${TEST_RESULT}
Home |
Main Index |
Thread Index |
Old Index