* [PATCH 1/3] lttng-tools: Improve ptest robustness
@ 2018-11-19 15:32 Richard Purdie
2018-11-19 15:32 ` [PATCH 2/3] lttng-tools: Upgrade 2.9.5 -> 2.10.5 and improve ptest Richard Purdie
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Richard Purdie @ 2018-11-19 15:32 UTC (permalink / raw)
To: openembedded-core
There are some fatal make errors that occur from the current ptest
for lttng-tools however since other tests are successful, those make
build failures were being ignored.
When upgrading, the order of test execution changed and the ptest failed
fatally straight away with the same errors.
Passing -k to make means it will try and run all the tests making the
test suite run more consistently over all lttng-tools versions.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/recipes-kernel/lttng/lttng-tools/run-ptest | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-kernel/lttng/lttng-tools/run-ptest b/meta/recipes-kernel/lttng/lttng-tools/run-ptest
index 705030ee53b..dbb18820a4c 100755
--- a/meta/recipes-kernel/lttng/lttng-tools/run-ptest
+++ b/meta/recipes-kernel/lttng/lttng-tools/run-ptest
@@ -3,4 +3,4 @@
# test plan to raise ERRORs; this is just noise.
makeargs="LOG_DRIVER_FLAGS=--ignore-exit top_srcdir=$PWD top_builddir=$PWD"
make -k -t all >/dev/null 2>&1
-exec make -s $makeargs check 2>/dev/null
+exec make -k -s $makeargs check 2>/dev/null
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] lttng-tools: Upgrade 2.9.5 -> 2.10.5 and improve ptest
2018-11-19 15:32 [PATCH 1/3] lttng-tools: Improve ptest robustness Richard Purdie
@ 2018-11-19 15:32 ` Richard Purdie
2018-11-19 15:32 ` [PATCH 3/3] nasm: Couple of recipe cleanups Richard Purdie
2018-11-19 16:05 ` ✗ patchtest: failure for "lttng-tools: Improve ptest rob..." and 2 more Patchwork
2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2018-11-19 15:32 UTC (permalink / raw)
To: openembedded-core
A backported patch was removed.
The kmod option changed format in the new version so was adjusted accordingly.
The ptest package was improved to resolve failures in the tests/unit/
directory but disabling attempts to rebuild the binaries on target.
Various ptest libtool script wrappers are now replaced with real binaries
and since the test suite knows about these paths for dymanic libraries,
we put links in place for those.
A data file needed by one of the tests is also copied in.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
...ltiple-attempts-to-connect-to-relayd.patch | 43 -------------------
...g-tools_2.9.5.bb => lttng-tools_2.10.5.bb} | 30 +++++++++++--
2 files changed, 26 insertions(+), 47 deletions(-)
delete mode 100644 meta/recipes-kernel/lttng/lttng-tools/0001-Allow-multiple-attempts-to-connect-to-relayd.patch
rename meta/recipes-kernel/lttng/{lttng-tools_2.9.5.bb => lttng-tools_2.10.5.bb} (81%)
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-Allow-multiple-attempts-to-connect-to-relayd.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-Allow-multiple-attempts-to-connect-to-relayd.patch
deleted file mode 100644
index 62a0978592d..00000000000
--- a/meta/recipes-kernel/lttng/lttng-tools/0001-Allow-multiple-attempts-to-connect-to-relayd.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 70eff899104b86bae02862927c76caaef5de5d3c Mon Sep 17 00:00:00 2001
-From: Mikael Beckius <mikael.beckius@windriver.com>
-Date: Thu, 7 May 2015 16:14:25 +0200
-Subject: [PATCH] Allow multiple attempts to connect to relayd.
-
-It is unclear why a session needs to be made
-unusable after a failure to connect to relayd
-since a check for a relayd connection is
-always made before a session can be configured.
-
-The behaviour was introduced in:
-d9078d0c000d04d49c599a72c1a725026b636ec0
-
-Signed-off-by: Mikael Beckius <mikael.beckius@windriver.com>
-[ The context has moved, adjust the hunk accordingly ]
-Signed-off-by: He Zhe <zhe.he@windriver.com>
-Upstream-Status: Pending
----
- src/bin/lttng-sessiond/cmd.c | 8 --------
- 1 file changed, 8 deletions(-)
-
-diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c
-index 73b4ce3..36f62ee 100644
---- a/src/bin/lttng-sessiond/cmd.c
-+++ b/src/bin/lttng-sessiond/cmd.c
-@@ -689,14 +689,6 @@ close_sock:
- free(rsock);
-
- error:
-- if (ret != LTTNG_OK) {
-- /*
-- * The consumer output for this session should not be used anymore
-- * since the relayd connection failed thus making any tracing or/and
-- * streaming not usable.
-- */
-- consumer->enabled = 0;
-- }
- return ret;
- }
-
---
-1.7.9.5
-
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.9.5.bb b/meta/recipes-kernel/lttng/lttng-tools_2.10.5.bb
similarity index 81%
rename from meta/recipes-kernel/lttng/lttng-tools_2.9.5.bb
rename to meta/recipes-kernel/lttng/lttng-tools_2.10.5.bb
index 0314b536376..11d7db68482 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.9.5.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.10.5.bb
@@ -22,7 +22,7 @@ PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \
PACKAGECONFIG ??= "lttng-ust"
PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python3 swig-native"
PACKAGECONFIG[lttng-ust] = "--with-lttng-ust, --without-lttng-ust, lttng-ust"
-PACKAGECONFIG[kmod] = "--enable-kmod, --disable-kmod, kmod"
+PACKAGECONFIG[kmod] = "--with-kmod, --without-kmod, kmod"
PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native"
PACKAGECONFIG_remove_libc-musl = "lttng-ust"
PACKAGECONFIG_remove_riscv64 = "lttng-ust"
@@ -30,12 +30,11 @@ PACKAGECONFIG_remove_riscv64 = "lttng-ust"
SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \
file://x32.patch \
file://run-ptest \
- file://0001-Allow-multiple-attempts-to-connect-to-relayd.patch \
file://lttng-sessiond.service \
"
-SRC_URI[md5sum] = "051224eb991aee07f8721ff1877d0b96"
-SRC_URI[sha256sum] = "77839eb6fc6c652125f08acfd9369701c2516eb05cc2084160e7efc7a3fb731c"
+SRC_URI[md5sum] = "50e07676d5eb5d6cf4ece804863a6f74"
+SRC_URI[sha256sum] = "a4868078ef961e83dc236c4f24fd848161bfa755344b064dece62c4c81a07411"
inherit autotools ptest pkgconfig useradd python3-dir manpages systemd
@@ -91,6 +90,20 @@ do_install_ptest () {
install -t "${D}${PTEST_PATH}/tests/$d" "${B}/tests/$d/Makefile"
done
+ for d in $(find "${B}/tests" -type d -name .libs -printf '%P ') ; do
+ for f in $(find "${B}/tests/$d" -maxdepth 1 -executable -type f -printf '%P ') ; do
+ cp ${B}/tests/$d/$f ${D}${PTEST_PATH}/tests/`dirname $d`/$f
+ case $f in
+ *.so)
+ install -d ${D}${PTEST_PATH}/tests/$d/
+ ln -s ../$f ${D}${PTEST_PATH}/tests/$d/$f
+ ;;
+ esac
+ done
+ done
+
+ 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
sed -i -e 's!^SUBDIRS = tools !SUBDIRS = !' \
"${D}${PTEST_PATH}/tests/regression/Makefile"
@@ -118,6 +131,15 @@ do_install_ptest () {
find "${D}${PTEST_PATH}" -name Makefile -type f -exec \
touch -r "${B}/Makefile" {} +
+ #
+ # Need to stop generated binaries from rebuilding by removing their source dependencies
+ #
+ sed -e 's#\(^test.*OBJECTS.=\)#disable\1#g' \
+ -e 's#\(^test.*DEPENDENCIES.=\)#disable\1#g' \
+ -e 's#\(^test.*SOURCES.=\)#disable\1#g' \
+ -e 's#\(^test.*LDADD.=\)#disable\1#g' \
+ -i ${D}${PTEST_PATH}/tests/unit/Makefile
+
# Substitute links to installed binaries.
for prog in lttng lttng-relayd lttng-sessiond lttng-consumerd ; do
exedir="${D}${PTEST_PATH}/src/bin/${prog}"
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] nasm: Couple of recipe cleanups
2018-11-19 15:32 [PATCH 1/3] lttng-tools: Improve ptest robustness Richard Purdie
2018-11-19 15:32 ` [PATCH 2/3] lttng-tools: Upgrade 2.9.5 -> 2.10.5 and improve ptest Richard Purdie
@ 2018-11-19 15:32 ` Richard Purdie
2018-11-19 16:05 ` ✗ patchtest: failure for "lttng-tools: Improve ptest rob..." and 2 more Patchwork
2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2018-11-19 15:32 UTC (permalink / raw)
To: openembedded-core
The do_install now matches that from autotools.bbclass.
Document that brokensep is still needed.
Use a better form of handling of aclocal.m4
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/recipes-devtools/nasm/nasm_2.14.bb | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/meta/recipes-devtools/nasm/nasm_2.14.bb b/meta/recipes-devtools/nasm/nasm_2.14.bb
index 231d4e6b15f..687a05a5cde 100644
--- a/meta/recipes-devtools/nasm/nasm_2.14.bb
+++ b/meta/recipes-devtools/nasm/nasm_2.14.bb
@@ -8,17 +8,10 @@ SRC_URI = "http://www.nasm.us/pub/nasm/releasebuilds/${PV}/nasm-${PV}.tar.bz2"
SRC_URI[md5sum] = "238a240d3f869a52f8ac38ee3f8faafa"
SRC_URI[sha256sum] = "d43cfd27cad53d0c22a9bf9702e9dffcc7018a0df21d15b92c56d250d747c744"
+# brokensep since this uses autoconf but not automake
inherit autotools-brokensep
-do_configure_prepend () {
- if [ -f ${S}/aclocal.m4 ] && [ ! -f ${S}/acinclude.m4 ]; then
- mv ${S}/aclocal.m4 ${S}/acinclude.m4
- fi
-}
-
-do_install() {
- oe_runmake 'DESTDIR=${D}' install
-}
+EXTRA_AUTORECONF += "--exclude=aclocal"
BBCLASSEXTEND = "native"
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* ✗ patchtest: failure for "lttng-tools: Improve ptest rob..." and 2 more
2018-11-19 15:32 [PATCH 1/3] lttng-tools: Improve ptest robustness Richard Purdie
2018-11-19 15:32 ` [PATCH 2/3] lttng-tools: Upgrade 2.9.5 -> 2.10.5 and improve ptest Richard Purdie
2018-11-19 15:32 ` [PATCH 3/3] nasm: Couple of recipe cleanups Richard Purdie
@ 2018-11-19 16:05 ` Patchwork
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-11-19 16:05 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
== Series Details ==
Series: "lttng-tools: Improve ptest rob..." and 2 more
Revision: 1
URL : https://patchwork.openembedded.org/series/14979/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:
* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 62fe04c245)
If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-19 16:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-19 15:32 [PATCH 1/3] lttng-tools: Improve ptest robustness Richard Purdie
2018-11-19 15:32 ` [PATCH 2/3] lttng-tools: Upgrade 2.9.5 -> 2.10.5 and improve ptest Richard Purdie
2018-11-19 15:32 ` [PATCH 3/3] nasm: Couple of recipe cleanups Richard Purdie
2018-11-19 16:05 ` ✗ patchtest: failure for "lttng-tools: Improve ptest rob..." and 2 more Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox