diff options
author | jlam <jlam> | 2005-06-08 05:49:21 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-06-08 05:49:21 +0000 |
commit | 0046d52c18794e119483a923c60a3c04f3661b97 (patch) | |
tree | c15c564c8b7fc4a268995ecc71e198792a2035b1 /regress/buildlink-transform | |
parent | 3b535e02ceba18b3df3b2bce9648ae2a34a39934 (diff) | |
download | pkgsrc-0046d52c18794e119483a923c60a3c04f3661b97.tar.gz |
Add two new tests for rpath argument merging and splitting.
Diffstat (limited to 'regress/buildlink-transform')
-rw-r--r-- | regress/buildlink-transform/Makefile | 4 | ||||
-rw-r--r-- | regress/buildlink-transform/tests/rpath-merge.mk | 15 | ||||
-rw-r--r-- | regress/buildlink-transform/tests/rpath-split.mk | 15 |
3 files changed, 33 insertions, 1 deletions
diff --git a/regress/buildlink-transform/Makefile b/regress/buildlink-transform/Makefile index f5b324efe60..4a06e83a0e5 100644 --- a/regress/buildlink-transform/Makefile +++ b/regress/buildlink-transform/Makefile @@ -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 @@ TEST_MAKEFILES= ${RUNTESTS:S/^/${TEST_DIR}\//:S/$/.mk/} . 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 --git a/regress/buildlink-transform/tests/rpath-merge.mk b/regress/buildlink-transform/tests/rpath-merge.mk new file mode 100644 index 00000000000..edaa6e31aca --- /dev/null +++ b/regress/buildlink-transform/tests/rpath-merge.mk @@ -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 --git a/regress/buildlink-transform/tests/rpath-split.mk b/regress/buildlink-transform/tests/rpath-split.mk new file mode 100644 index 00000000000..bfef7736019 --- /dev/null +++ b/regress/buildlink-transform/tests/rpath-split.mk @@ -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} |