diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-10 18:14:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-12 23:39:13 +0000 |
commit | ee2d13c973cfe98af5fbeffdaadfb3cce4d6b275 (patch) | |
tree | 6a07f69c209ffe8f8f070907c3fe7f52191eb628 /meta/recipes-kernel/lttng/babeltrace2 | |
parent | ef783c15aaf0d6f74087287215685cf86b163298 (diff) | |
download | poky-ee2d13c973cfe98af5fbeffdaadfb3cce4d6b275.tar.gz |
babeltrace2: Fix ptest execution in minimal images and add debug info
Tweak the ptest dependencies so they work correctly in minimal images. There
appears to be some usage of find or xargs that doesn't work with busybox.
Also improve the test runner so the test-suite.log is dumped upon error
which makes debugging much easier.
(From OE-Core rev: 6f52a0a9f0f26ac0039af3edd3df22e21bd8a4a7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/babeltrace2')
-rwxr-xr-x | meta/recipes-kernel/lttng/babeltrace2/run-ptest | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-kernel/lttng/babeltrace2/run-ptest b/meta/recipes-kernel/lttng/babeltrace2/run-ptest index 72fe223436..71a9c81bfb 100755 --- a/meta/recipes-kernel/lttng/babeltrace2/run-ptest +++ b/meta/recipes-kernel/lttng/babeltrace2/run-ptest | |||
@@ -6,4 +6,14 @@ | |||
6 | # test plan to raise ERRORs; this is just noise. | 6 | # test plan to raise ERRORs; this is just noise. |
7 | makeargs="LOG_DRIVER_FLAGS=--ignore-exit abs_top_srcdir=$PWD abs_top_builddir=$PWD GREP=grep SED=sed PYTHON=python3" | 7 | makeargs="LOG_DRIVER_FLAGS=--ignore-exit abs_top_srcdir=$PWD abs_top_builddir=$PWD GREP=grep SED=sed PYTHON=python3" |
8 | 8 | ||
9 | exec make -C tests -k -s $makeargs $target 2>/dev/null | 9 | exec 2> error.log |
10 | make -C tests -k -s $makeargs $target | ||
11 | exitcode=$? | ||
12 | if [ -e error.log ]; then | ||
13 | cat error.log | ||
14 | fi | ||
15 | if [ -e tests/test-suite.log ]; then | ||
16 | cat tests/test-suite.log | ||
17 | fi | ||
18 | |||
19 | exit $exitcode \ No newline at end of file | ||