]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
lttng-tools: skip kernel tests if no kernel modules present
authorXiangyu Chen <xiangyu.chen@windriver.com>
Fri, 8 Mar 2024 04:32:21 +0000 (20:32 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Mar 2024 12:20:59 +0000 (12:20 +0000)
commite0d8494b569bc5fb45d9a4bafa25527a0ee3d970
treef926550d60a2f4cdbc2b005151faabe22c99193c
parent772cb94c9ab0645714e182f0141dc6c8b26b05ef
lttng-tools: skip kernel tests if no kernel modules present

The current tests will run both userspace and kernel testing. Some of use cases
only use lttng for one kind of tracing (e.g. userspace). If the lttng
modules(.ko files) is not present during the test,it would end up with lots of
failing.

Add a check in ptest script, if current system doesn't contain lttng kernel
modules, passing LTTNG_TOOLS_DISABLE_KERNEL_TESTS=1 to make to skip all lttng
kernel related testing.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/lttng/lttng-tools/0001-tests-add-check_skip_kernel_test-to-check-root-user-.patch [new file with mode: 0644]
meta/recipes-kernel/lttng/lttng-tools/run-ptest
meta/recipes-kernel/lttng/lttng-tools_2.13.11.bb