babeltrace2: added first version, 2.0.1
PATCH v2 1/1 babeltrace2: added first version, 2.0.1
Babeltrace 1 vs. Babeltrace 2
The Babeltrace project exists since 2010. In 2020, Babeltrace 2 was released. Babeltrace 2 is a complete rewrite of the library, Python bindings, and CLI. It is plugin based and offers much more features and potential than Babeltrace 1.
Because Babeltrace 2 is still a young released project, some distributions still provide packages for the Babeltrace 1 project. Both projects can coexist on the same system as there are no common installed files.
--- meta/conf/distro/include/distro_alias.inc | 1 + meta/conf/distro/include/maintainers.inc | 1 + .../distro/include/ptest-packagelists.inc | 1 + .../packagegroup-core-tools-profile.bb | 2 + ...not-run-test-applications-from-.libs.patch | 28 ++++++ .../lttng/babeltrace2/run-ptest | 9 ++ .../recipes-kernel/lttng/babeltrace2_2.0.1.bb | 92 +++++++++++++++++++ 7 files changed, 134 insertions(+) create mode 100644 meta/recipes-kernel/lttng/babeltrace2/0001-tests-do-not-run-test-applications-from-.libs.patch create mode 100755 meta/recipes-kernel/lttng/babeltrace2/run-ptest create mode 100644 meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb
meta/conf/distro/include/distro_alias.inc +1 -0
@@ -15,6 +15,7 @@ DISTRO_PN_ALIAS_pn-alsa-utils-scripts = "OE-Core" DISTRO_PN_ALIAS_pn-atk = "Fedora=atk OpenSuSE=atk" DISTRO_PN_ALIAS_pn-avahi-ui = "Ubuntu=avahi-discover Debian=avahi-discover" DISTRO_PN_ALIAS_pn-babeltrace = "OSPDT" +DISTRO_PN_ALIAS_pn-babeltrace2 = "OSPDT" DISTRO_PN_ALIAS_pn-bjam = "OpenSuSE=boost-jam Debian=bjam" DISTRO_PN_ALIAS_pn-blktool = "Debian=blktool Mandriva=blktool" DISTRO_PN_ALIAS_pn-bluez5 = "Fedora=bluez Opensuse=bluez"
meta/conf/distro/include/maintainers.inc +1 -0
@@ -59,6 +59,7 @@ RECIPE_MAINTAINER_pn-automake = "Robert Yang <[email protected]>" RECIPE_MAINTAINER_pn-avahi = "Yi Zhao <[email protected]>" RECIPE_MAINTAINER_pn-avahi-ui = "Yi Zhao <[email protected]>" RECIPE_MAINTAINER_pn-babeltrace = "Alexander Kanavin <[email protected]>" +RECIPE_MAINTAINER_pn-babeltrace2 = "Alexander Kanavin <[email protected]>" RECIPE_MAINTAINER_pn-base-files = "Anuj Mittal <[email protected]>" RECIPE_MAINTAINER_pn-base-passwd = "Anuj Mittal <[email protected]>" RECIPE_MAINTAINER_pn-bash = "Hongxu Jia <[email protected]>"
meta/conf/distro/include/ptest-packagelists.inc +1 -0
@@ -64,6 +64,7 @@ PTESTS_FAST = "\ PTESTS_SLOW = "\ babeltrace-ptest \ + babeltrace2-ptest \ busybox-ptest \ dbus-test-ptest \ e2fsprogs-ptest \
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +2 -0
@@ -46,6 +46,7 @@ LTTNGMODULES = "lttng-modules" LTTNGMODULES_arc = "" BABELTRACE = "babeltrace" +BABELTRACE2 = "babeltrace2" # valgrind does not work on the following configurations/architectures
@@ -69,6 +70,7 @@ RDEPENDS_${PN} = "\ ${LTTNGTOOLS} \ ${LTTNGMODULES} \ ${BABELTRACE} \ + ${BABELTRACE2} \ ${SYSTEMTAP} \ ${VALGRIND} \ "
meta/recipes-kernel/lttng/babeltrace2/0001-tests-do-not-run-test-applications-from-.libs.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 582713cc9a013481eeef253195d644020f637ec4 Mon Sep 17 00:00:00 2001 +Message-Id: <582713cc9a013481eeef253195d644020f637ec4.1583403622.git.wallinux@gmail.com> +From: Anders Wallin <[email protected]> +Date: Thu, 5 Mar 2020 11:20:04 +0100 +Subject: [PATCH] tests: do not run test applications from .libs + +Cross compile specific change + +Upstream-Status: Inappropriate [oe-core specific] + +Signed-off-by: Anders Wallin <[email protected]> +--- + tests/lib/test_plugin | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/lib/test_plugin b/tests/lib/test_plugin +index 652c90cc..1f817c50 100755 +--- a/tests/lib/test_plugin ++++ b/tests/lib/test_plugin +@@ -26,4 +26,4 @@ fi + # shellcheck source=../utils/utils.sh + source "$UTILSSH" + +-"${BT_TESTS_BUILDDIR}/lib/plugin" "${BT_TESTS_BUILDDIR}/lib/test-plugin-plugins/.libs" ++"${BT_TESTS_BUILDDIR}/lib/plugin" "${BT_TESTS_BUILDDIR}/lib/test-plugin-plugins" +-- +2.25.1 +
meta/recipes-kernel/lttng/babeltrace2/run-ptest new file +9 -0
@@ -0,0 +1,9 @@ +#!/bin/sh +# use target=recheck if you want to recheck failing tests +[ "$target" = "" ] && target=check + +# Without --ignore-exit, the tap harness causes any FAILs within a +# test plan to raise ERRORs; this is just noise. +makeargs="LOG_DRIVER_FLAGS=--ignore-exit abs_top_srcdir=$PWD abs_top_builddir=$PWD GREP=grep SED=sed PYTHON=python3" + +exec make -C tests -k -s $makeargs $target 2>/dev/null
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +92 -0
92 lines not on this page · raw message
Signature · 1 line
2.25.1
I am seeing a QA textrel issue with clang/arm
http://errors.yoctoproject.org/Errors/Details/393983/
Quoted 236 lines · Anders Wallin
Babeltrace 1 vs. Babeltrace 2
The Babeltrace project exists since 2010. In 2020, Babeltrace 2 was released. Babeltrace 2 is a complete rewrite of the library, Python bindings, and CLI. It is plugin based and offers much more features and potential than Babeltrace 1.
Because Babeltrace 2 is still a young released project, some distributions still provide packages for the Babeltrace 1 project. Both projects can coexist on the same system as there are no common installed files.
Signed-off-by Anders Wallin <[email protected]>--- meta/conf/distro/include/distro_alias.inc | 1 + meta/conf/distro/include/maintainers.inc | 1 + .../distro/include/ptest-packagelists.inc | 1 + .../packagegroup-core-tools-profile.bb | 2 + ...not-run-test-applications-from-.libs.patch | 28 ++++++ .../lttng/babeltrace2/run-ptest | 9 ++ .../recipes-kernel/lttng/babeltrace2_2.0.1.bb | 92 +++++++++++++++++++ 7 files changed, 134 insertions(+) create mode 100644 meta/recipes-kernel/lttng/babeltrace2/0001-tests-do-not-run-test-applications-from-.libs.patch create mode 100755 meta/recipes-kernel/lttng/babeltrace2/run-ptest create mode 100644 meta/recipes-kernel/lttng/babeltrace2_2.0.1.bbmeta/conf/distro/include/distro_alias.inc +1
-0@@ -15,6 +15,7 @@ DISTRO_PN_ALIAS_pn-alsa-utils-scripts = "OE-Core" DISTRO_PN_ALIAS_pn-atk = "Fedora=atk OpenSuSE=atk" DISTRO_PN_ALIAS_pn-avahi-ui = "Ubuntu=avahi-discover Debian=avahi-discover" DISTRO_PN_ALIAS_pn-babeltrace = "OSPDT" +DISTRO_PN_ALIAS_pn-babeltrace2 = "OSPDT" DISTRO_PN_ALIAS_pn-bjam = "OpenSuSE=boost-jam Debian=bjam" DISTRO_PN_ALIAS_pn-blktool = "Debian=blktool Mandriva=blktool" DISTRO_PN_ALIAS_pn-bluez5 = "Fedora=bluez Opensuse=bluez"meta/conf/distro/include/maintainers.inc +1
-0@@ -59,6 +59,7 @@ RECIPE_MAINTAINER_pn-automake = "Robert Yang <[email protected]>" RECIPE_MAINTAINER_pn-avahi = "Yi Zhao <[email protected]>" RECIPE_MAINTAINER_pn-avahi-ui = "Yi Zhao <[email protected]>" RECIPE_MAINTAINER_pn-babeltrace = "Alexander Kanavin <[email protected]>" +RECIPE_MAINTAINER_pn-babeltrace2 = "Alexander Kanavin <[email protected]>" RECIPE_MAINTAINER_pn-base-files = "Anuj Mittal <[email protected]>" RECIPE_MAINTAINER_pn-base-passwd = "Anuj Mittal <[email protected]>" RECIPE_MAINTAINER_pn-bash = "Hongxu Jia <[email protected]>"meta/conf/distro/include/ptest-packagelists.inc +1
-0@@ -64,6 +64,7 @@ PTESTS_FAST = "\ PTESTS_SLOW = "\ babeltrace-ptest \ + babeltrace2-ptest \ busybox-ptest \ dbus-test-ptest \ e2fsprogs-ptest \meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +2
-0@@ -46,6 +46,7 @@ LTTNGMODULES = "lttng-modules" LTTNGMODULES_arc = "" BABELTRACE = "babeltrace" +BABELTRACE2 = "babeltrace2" # valgrind does not work on the following configurations/architectures@@ -69,6 +70,7 @@ RDEPENDS_${PN} = "\ ${LTTNGTOOLS} \ ${LTTNGMODULES} \ ${BABELTRACE} \ + ${BABELTRACE2} \ ${SYSTEMTAP} \ ${VALGRIND} \ "meta/recipes-kernel/lttng/babeltrace2/0001-tests-do-not-run-test-applications-from-.libs.patch new file +28
-0@@ -0,0 +1,28 @@ +From 582713cc9a013481eeef253195d644020f637ec4 Mon Sep 17 00:00:00 2001 +Message-Id: <582713cc9a013481eeef253195d644020f637ec4.1583403622.git.wallinux@gmail.com> +From: Anders Wallin <[email protected]> +Date: Thu, 5 Mar 2020 11:20:04 +0100 +Subject: [PATCH] tests: do not run test applications from .libs + +Cross compile specific change + +Upstream-Status: Inappropriate [oe-core specific] + +Signed-off-by: Anders Wallin <[email protected]> +--- + tests/lib/test_plugin | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/lib/test_plugin b/tests/lib/test_plugin +index 652c90cc..1f817c50 100755 +--- a/tests/lib/test_plugin ++++ b/tests/lib/test_plugin +@@ -26,4 +26,4 @@ fi + # shellcheck source=../utils/utils.sh + source "$UTILSSH" + +-"${BT_TESTS_BUILDDIR}/lib/plugin" "${BT_TESTS_BUILDDIR}/lib/test-plugin-plugins/.libs" ++"${BT_TESTS_BUILDDIR}/lib/plugin" "${BT_TESTS_BUILDDIR}/lib/test-plugin-plugins" +-- +2.25.1 +meta/recipes-kernel/lttng/babeltrace2/run-ptest new file +9
-0@@ -0,0 +1,9 @@ +#!/bin/sh +# use target=recheck if you want to recheck failing tests +[ "$target" = "" ] && target=check + +# Without --ignore-exit, the tap harness causes any FAILs within a +# test plan to raise ERRORs; this is just noise. +makeargs="LOG_DRIVER_FLAGS=--ignore-exit abs_top_srcdir=$PWD abs_top_builddir=$PWD GREP=grep SED=sed PYTHON=python3" + +exec make -C tests -k -s $makeargs $target 2>/dev/nullmeta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +92
-1@@ -0,0 +1,92 @@ +SUMMARY = "Babeltrace2 - Trace Format Babel Tower" +DESCRIPTION = "Babeltrace provides trace read and write libraries in host side, as well as a trace converter, which used to convert LTTng 2.0 traces into human-readable log." +HOMEPAGE = "http://babeltrace.org/" +BUGTRACKER = "https://bugs.lttng.org/projects/babeltrace" +LICENSE = "MIT & GPLv2 & LGPLv2.1 & BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a6a458c13f18385b7bc5069a6d7b176e" + +DEPENDS = "glib-2.0 util-linux popt bison-native flex-native" + +SRC_URI = "git://git.linuxfoundation.org/diamon/babeltrace.git;branch=stable-2.0 \ + file://run-ptest \ + file://0001-tests-do-not-run-test-applications-from-.libs.patch \ + " +SRCREV = "06df58f89ee51b1a2c6a2c187ec3f15691633910" +UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>2(\.\d+)+)$" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig ptest + +EXTRA_OECONF = "--disable-debug-info" + +PACKAGECONFIG ??= "manpages" +PACKAGECONFIG[manpages] = ", --disable-man-pages, asciidoc-native xmlto-native" + +FILES_${PN}-staticdev += "${libdir}/babeltrace2/plugins/*.a" +FILES_${PN} += "${libdir}/babeltrace2/plugins/*.so" + +ASNEEDED = "" + +RDEPENDS_${PN}-ptest += "bash gawk python3" + +do_compile_ptest () { + make -C tests all +} + +do_install_ptest () { + install -d "${D}${PTEST_PATH}/tests" + + # Copy required files from source directory + for d in $(find "${S}/tests" -type d -printf '%P ') ; do + install -d "${D}${PTEST_PATH}/tests/$d" + find "${S}/tests/$d" -maxdepth 1 -executable -type f \ + -exec install -t "${D}${PTEST_PATH}/tests/$d" {} + + find "${S}/tests/$d" -maxdepth 1 -name *.sh \ + -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \; + find "${S}/tests/$d" -maxdepth 1 -name *.py \ + -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \; + find "${S}/tests/$d" -maxdepth 1 -name *.expect \ + -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \; + done + install -d "${D}${PTEST_PATH}/tests/data/ctf-traces/" + cp -a ${S}/tests/data/ctf-traces/* ${D}${PTEST_PATH}/tests/data/ctf-traces/ + + # Copy the tests directory tree and the executables and + # Makefiles found within. + install -D "${B}/tests/Makefile" "${D}${PTEST_PATH}/tests/" + for d in $(find "${B}/tests" -type d -not -name .libs -printf '%P ') ; do + install -d "${D}${PTEST_PATH}/tests/$d" + find "${B}/tests/$d" -maxdepth 1 -executable -type f \ + -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" + find "${B}/tests/$d" -maxdepth 1 -name *.sh \ + -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \; + 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 + done + done + + # Prevent attempts to update Makefiles during test runs, and + # silence "Making check in $SUBDIR" messages. + find "${D}${PTEST_PATH}" -name Makefile -type f -exec \ + sed -i \ + -e '/Makefile:/,/^$/d' \ + -e '/%: %.in/,/^$/d' \ + -e '/echo "Making $$target in $$subdir"; \\/d' \ + -e 's/^srcdir = \(.*\)/srcdir = ./' \ + -e 's/^builddir = \(.*\)/builddir = ./' \ + -e 's/^all-am:.*/all-am:/' \ + {} + + + # Substitute links to installed binaries. + install -d "${D}${PTEST_PATH}/src/cli/" + ln -s "${bindir}/babeltrace2" ${D}${PTEST_PATH}/src/cli/ + + # Remove architechture specific testfiles + rm -rf ${D}${PTEST_PATH}/tests/data/plugins/flt.lttng-utils.debug-info/* +} --2.25.1
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
I will check/fix it
Anders Wallin
Quoted 278 lines · Khem Raj
I am seeing a QA textrel issue with clang/arm
http://errors.yoctoproject.org/Errors/Details/393983/
Quoted 4 lines · Anders Wallin
Babeltrace 1 vs. Babeltrace 2
The Babeltrace project exists since 2010. In 2020, Babeltrace 2 was
released.
Quoted 1 line
Babeltrace 2 is a complete rewrite of the library, Python bindings, and
CLI. It
Quoted 1 line
is plugin based and offers much more features and potential than
Babeltrace 1.
Quoted 2 lines
Because Babeltrace 2 is still a young released project, some
distributions still
Quoted 1 line
provide packages for the Babeltrace 1 project. Both projects can coexist
on the
Quoted 13 lines
same system as there are no common installed files.
Signed-off-by Anders Wallin <[email protected]>--- meta/conf/distro/include/distro_alias.inc | 1 + meta/conf/distro/include/maintainers.inc | 1 + .../distro/include/ptest-packagelists.inc | 1 + .../packagegroup-core-tools-profile.bb | 2 + ...not-run-test-applications-from-.libs.patch | 28 ++++++ .../lttng/babeltrace2/run-ptest | 9 ++ .../recipes-kernel/lttng/babeltrace2_2.0.1.bb | 92 +++++++++++++++++++ 7 files changed, 134 insertions(+) create mode 100644
meta/recipes-kernel/lttng/babeltrace2/0001-tests-do-not-run-test-applications-from-.libs.patchReview
Quoted 4 lines
create mode 100755 meta/recipes-kernel/lttng/babeltrace2/run-ptest create mode 100644 meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb(quoted diff) +0
-0b/meta/conf/distro/include/distro_alias.inc
meta/conf/distro/include/distro_alias.inc DISTRO_PN_ALIAS_pn-alsa-utils-scripts = "OE-Core" · line 16
Quoted 6 lines
index
79ebcaee29..0e4a9a9f8f100644meta/conf/distro/include/distro_alias.inc +0
-0@@ -15,6 +15,7 @@ DISTRO_PN_ALIAS_pn-alsa-utils-scripts = "OE-Core" DISTRO_PN_ALIAS_pn-atk = "Fedora=atk OpenSuSE=atk" DISTRO_PN_ALIAS_pn-avahi-ui = "Ubuntu=avahi-discoverDebian=avahi-discover"
Review
Quoted 6 lines
meta/conf/distro/include/distro_alias.inc +1
-0DISTRO_PN_ALIAS_pn-babeltrace = "OSPDT" +DISTRO_PN_ALIAS_pn-babeltrace2 = "OSPDT" DISTRO_PN_ALIAS_pn-bjam = "OpenSuSE=boost-jam Debian=bjam" DISTRO_PN_ALIAS_pn-blktool = "Debian=blktool Mandriva=blktool" DISTRO_PN_ALIAS_pn-bluez5 = "Fedora=bluez Opensuse=bluez"(quoted diff) +0
-0b/meta/conf/distro/include/maintainers.inc
meta/conf/distro/include/maintainers.inc RECIPE_MAINTAINER_pn-automake = "Robert Yang <
Quoted 4 lines
index
10095ffe76..adb18228e7100644meta/conf/distro/include/maintainers.inc +0
-0@@ -59,6 +59,7 @@ RECIPE_MAINTAINER_pn-automake = "Robert Yang <meta/conf/distro/include/maintainers.inc RECIPE_MAINTAINER_pn-automake = "Robert Yang <[email protected]>"
Quoted 3 lines
meta/conf/distro/include/maintainers.inc +0
-0RECIPE_MAINTAINER_pn-avahi = "Yi Zhao <[email protected]>" RECIPE_MAINTAINER_pn-avahi-ui = "Yi Zhao <[email protected]>" RECIPE_MAINTAINER_pn-babeltrace = "Alexander Kanavin <meta/conf/distro/include/maintainers.inc RECIPE_MAINTAINER_pn-automake = "Robert Yang < · line 62
Quoted 1 line
meta/conf/distro/include/maintainers.inc +1
-0+RECIPE_MAINTAINER_pn-babeltrace2 = "Alexander Kanavin <Review
Quoted 5 lines
meta/conf/distro/include/maintainers.inc +0
-0RECIPE_MAINTAINER_pn-base-files = "Anuj Mittal <[email protected]>" RECIPE_MAINTAINER_pn-base-passwd = "Anuj Mittal <[email protected]"
RECIPE_MAINTAINER_pn-bash = "Hongxu Jia <[email protected]>"(quoted diff) +0
-0b/meta/conf/distro/include/ptest-packagelists.inc
Review
Quoted 12 lines
index
4afac58e3a..d6f3aafc7f100644meta/conf/distro/include/ptest-packagelists.inc +1
-0@@ -64,6 +64,7 @@ PTESTS_FAST = "\ PTESTS_SLOW = "\ babeltrace-ptest \ + babeltrace2-ptest \ busybox-ptest \ dbus-test-ptest \ e2fsprogs-ptest \(quoted diff) +0
-0packagegroup-core-tools-profile.bb b/meta/recipes-core/packagegroups/ packagegroup-core-tools-profile.bb
Quoted 19 lines
index
984c2fac92..ac180b542a100644meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +2
-0@@ -46,6 +46,7 @@ LTTNGMODULES = "lttng-modules" LTTNGMODULES_arc = "" BABELTRACE = "babeltrace" +BABELTRACE2 = "babeltrace2" # valgrind does not work on the following configurations/architectures@@ -69,6 +70,7 @@ RDEPENDS_${PN} = "\ ${LTTNGTOOLS} \ ${LTTNGMODULES} \ ${BABELTRACE} \ + ${BABELTRACE2} \ ${SYSTEMTAP} \ ${VALGRIND} \ "Quoted 1 line
diff --git
a/meta/recipes-kernel/lttng/babeltrace2/0001-tests-do-not-run-test-applications-from-.libs.patchb/meta/recipes-kernel/lttng/babeltrace2/0001-tests-do-not-run-test-applications-from-.libs.patchQuoted 4 lines
new file mode 100644
index 0000000000..805dde8064
---/dev/null
+++
b/meta/recipes-kernel/lttng/babeltrace2/0001-tests-do-not-run-test-applications-from-.libs.patchmeta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb line 2
Quoted 3 lines
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +2
-0@@ -0,0 +1,28 @@ +From 582713cc9a013481eeef253195d644020f637ec4 Mon Sep 17 00:00:00 2001 +Message-Id: <582713cc9a013481eeef253195d644020f637ec4.1583403622.git.wallinux@gmail.com
Quoted 13 lines
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +12
-0+From: Anders Wallin <[email protected]> +Date: Thu, 5 Mar 2020 11:20:04 +0100 +Subject: [PATCH] tests: do not run test applications from .libs + +Cross compile specific change + +Upstream-Status: Inappropriate [oe-core specific] + +Signed-off-by: Anders Wallin <[email protected]> +--- + tests/lib/test_plugin | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb line 24
Quoted 10 lines
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +10
-0+ +diff --git a/tests/lib/test_plugin b/tests/lib/test_plugin +index 652c90cc..1f817c50 100755 +--- a/tests/lib/test_plugin ++++ b/tests/lib/test_plugin +@@ -26,4 +26,4 @@ fi + # shellcheck source=../utils/utils.sh + source "$UTILSSH" + +-"${BT_TESTS_BUILDDIR}/lib/plugin""${BT_TESTS_BUILDDIR}/lib/test-plugin-plugins/.libs"
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb line 25
Quoted 1 line
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +1
-0++"${BT_TESTS_BUILDDIR}/lib/plugin""${BT_TESTS_BUILDDIR}/lib/test-plugin-plugins"
Review
Quoted 4 lines
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +3
-0+-- +2.25.1 +(quoted diff) +0
-0b/meta/recipes-kernel/lttng/babeltrace2/run-ptest
meta/recipes-kernel/lttng/babeltrace2/run-ptest line 7
Quoted 12 lines
new file mode 100755
index 0000000000..72fe223436meta/recipes-kernel/lttng/babeltrace2/run-ptest new file +7
-0@@ -0,0 +1,9 @@ +#!/bin/sh +# use target=recheck if you want to recheck failing tests +[ "$target" = "" ] && target=check + +# Without --ignore-exit, the tap harness causes any FAILs within a +# test plan to raise ERRORs; this is just noise. +makeargs="LOG_DRIVER_FLAGS=--ignore-exit abs_top_srcdir=$PWDabs_top_builddir=$PWD GREP=grep SED=sed PYTHON=python3"
Review
Quoted 3 lines
meta/recipes-kernel/lttng/babeltrace2/run-ptest new file +2
-0+ +exec make -C tests -k -s $makeargs $target 2>/dev/null(quoted diff) +0
-0b/meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb line 2
Quoted 7 lines
new file mode 100644
index 0000000000..16953d6807meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +2
-0@@ -0,0 +1,92 @@ +SUMMARY = "Babeltrace2 - Trace Format Babel Tower" +DESCRIPTION = "Babeltrace provides trace read and write libraries inhost side, as well as a trace converter, which used to convert LTTng 2.0 traces into human-readable log."
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb
Quoted 8 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +8
-0+HOMEPAGE = "http://babeltrace.org/" +BUGTRACKER = "https://bugs.lttng.org/projects/babeltrace" +LICENSE = "MIT & GPLv2 & LGPLv2.1 & BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a6a458c13f18385b7bc5069a6d7b176e" + +DEPENDS = "glib-2.0 util-linux popt bison-native flex-native" + +SRC_URI = "git://git.linuxfoundation.org/diamon/babeltrace.git;branch=stable-2.0 \
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb line 12
Quoted 2 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +2
-0+ file://run-ptest \ +file://0001-tests-do-not-run-test-applications-from-.libs.patch \
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb
Quoted 12 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +12
-0+ " +SRCREV = "06df58f89ee51b1a2c6a2c187ec3f15691633910" +UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>2(\.\d+)+)$" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig ptest + +EXTRA_OECONF = "--disable-debug-info" + +PACKAGECONFIG ??= "manpages" +PACKAGECONFIG[manpages] = ", --disable-man-pages, asciidoc-nativexmlto-native"
Quoted 19 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +19
-0+ +FILES_${PN}-staticdev += "${libdir}/babeltrace2/plugins/*.a" +FILES_${PN} += "${libdir}/babeltrace2/plugins/*.so" + +ASNEEDED = "" + +RDEPENDS_${PN}-ptest += "bash gawk python3" + +do_compile_ptest () { + make -C tests all +} + +do_install_ptest () { + install -d "${D}${PTEST_PATH}/tests" + + # Copy required files from source directory + for d in $(find "${S}/tests" -type d -printf '%P ') ; do + install -d "${D}${PTEST_PATH}/tests/$d" + find "${S}/tests/$d" -maxdepth 1 -executable -type f \meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb
Quoted 10 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +10
-0+ -exec install -t "${D}${PTEST_PATH}/tests/$d" {} + + find "${S}/tests/$d" -maxdepth 1 -name *.sh \ + -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \; + find "${S}/tests/$d" -maxdepth 1 -name *.py \ + -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \; + find "${S}/tests/$d" -maxdepth 1 -name *.expect \ + -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \; + done + install -d "${D}${PTEST_PATH}/tests/data/ctf-traces/" + cp -a ${S}/tests/data/ctf-traces/*${D}${PTEST_PATH}/tests/data/ctf-traces/
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb
Quoted 5 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +5
-0+ + # Copy the tests directory tree and the executables and + # Makefiles found within. + install -D "${B}/tests/Makefile" "${D}${PTEST_PATH}/tests/" + for d in $(find "${B}/tests" -type d -not -name .libs -printf '%P') ; do
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb
Quoted 5 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +5
-0+ install -d "${D}${PTEST_PATH}/tests/$d" + find "${B}/tests/$d" -maxdepth 1 -executable -type f \ + -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"
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb
Quoted 6 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +6
-0+ find "${B}/tests/$d" -maxdepth 1 -name *.sh \ + -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \; + 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
Quoted 12 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +12
-0+ cp ${B}/tests/$d/$f ${D}${PTEST_PATH}/tests/`dirname $d`/$f + done + done + + # Prevent attempts to update Makefiles during test runs, and + # silence "Making check in $SUBDIR" messages. + find "${D}${PTEST_PATH}" -name Makefile -type f -exec \ + sed -i \ + -e '/Makefile:/,/^$/d' \ + -e '/%: %.in/,/^$/d' \ + -e '/echo "Making $$target in $$subdir"; \\/d' \ + -e 's/^srcdir = \(.*\)/srcdir = ./' \meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb
Quoted 10 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +10
-0+ -e 's/^builddir = \(.*\)/builddir = ./' \ + -e 's/^all-am:.*/all-am:/' \ + {} + + + # Substitute links to installed binaries. + install -d "${D}${PTEST_PATH}/src/cli/" + ln -s "${bindir}/babeltrace2" ${D}${PTEST_PATH}/src/cli/ + + # Remove architechture specific testfiles + rm -rf${D}${PTEST_PATH}/tests/data/plugins/flt.lttng-utils.debug-info/*
Quoted 9 lines
meta/recipes-kernel/lttng/babeltrace2_2.0.1.bb new file +1
-1+} --2.25.1
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core