[oe-commits] [openembedded-core] 02/20: lttng-tools ptest: fix test_ust-dl
git at git.openembedded.org
git at git.openembedded.org
Wed Mar 13 15:41:53 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 991f9710504bf01183adfb4108529f0443edcab5
Author: Jonathan Rajotte <jonathan.rajotte-julien at efficios.com>
AuthorDate: Tue Mar 12 21:13:30 2019 +0000
lttng-tools ptest: fix test_ust-dl
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien at efficios.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-kernel/lttng/lttng-tools_2.10.6.bb | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.10.6.bb b/meta/recipes-kernel/lttng/lttng-tools_2.10.6.bb
index 3324959..37b6161 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.10.6.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.10.6.bb
@@ -87,6 +87,9 @@ do_install_ptest () {
install -d "${D}${PTEST_PATH}/tests/$d"
find "${B}/tests/$d" -maxdepth 1 -executable -type f \
-exec install -t "${D}${PTEST_PATH}/tests/$d" {} +
+ # Take all .py scripts for tests using the python bindings.
+ find "${B}/tests/$d" -maxdepth 1 -type f -name "*.py" \
+ -exec install -t "${D}${PTEST_PATH}/tests/$d" {} +
test -r "${B}/tests/$d/Makefile" && \
install -t "${D}${PTEST_PATH}/tests/$d" "${B}/tests/$d/Makefile"
done
@@ -98,11 +101,19 @@ do_install_ptest () {
*.so)
install -d ${D}${PTEST_PATH}/tests/$d/
ln -s ../$f ${D}${PTEST_PATH}/tests/$d/$f
+ # Remove any rpath/runpath to pass QA check.
+ chrpath --delete ${D}${PTEST_PATH}/tests/$d/$f
;;
esac
done
done
+ #
+ # Use the versioned libs of liblttng-ust-dl.
+ #
+ sed -i -e 's!:liblttng-ust-dl.so!:liblttng-ust-dl.so.0!' \
+ "${D}${PTEST_PATH}/tests/regression/ust/ust-dl/test_ust-dl.py"
+
install ${B}/tests/unit/ini_config/sample.ini ${D}${PTEST_PATH}/tests/unit/ini_config/
# We shouldn't need to build anything in tests/regression/tools
@@ -119,16 +130,6 @@ do_install_ptest () {
-e 's/^all-am:.*/all-am:/' \
{} +
- # These objects trigger [rpaths] QA checks; the test harness
- # skips the associated tests if they're missing, so delete
- # them.
- objs=""
- objs="$objs regression/ust/ust-dl/libbar.so"
- objs="$objs regression/ust/ust-dl/libfoo.so"
- for obj in $objs ; do
- rm -f "${D}${PTEST_PATH}/tests/${obj}"
- done
-
find "${D}${PTEST_PATH}" -name Makefile -type f -exec \
touch -r "${B}/Makefile" {} +
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list