diff options
author | jlam <jlam@pkgsrc.org> | 2005-06-08 05:49:21 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-06-08 05:49:21 +0000 |
commit | 5bc688b376b1e69659c4e1e60b9f2f18da7c1183 (patch) | |
tree | c15c564c8b7fc4a268995ecc71e198792a2035b1 /regress/buildlink-transform/tests | |
parent | ce74a9adee98f6d60622a8de2c80e756fb9bd192 (diff) | |
download | pkgsrc-5bc688b376b1e69659c4e1e60b9f2f18da7c1183.tar.gz |
Add two new tests for rpath argument merging and splitting.
Diffstat (limited to 'regress/buildlink-transform/tests')
-rw-r--r-- | regress/buildlink-transform/tests/rpath-merge.mk | 15 | ||||
-rw-r--r-- | regress/buildlink-transform/tests/rpath-split.mk | 15 |
2 files changed, 30 insertions, 0 deletions
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} |