mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
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>
This commit is contained in:
@@ -6,4 +6,14 @@
|
||||
# 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
|
||||
exec 2> error.log
|
||||
make -C tests -k -s $makeargs $target
|
||||
exitcode=$?
|
||||
if [ -e error.log ]; then
|
||||
cat error.log
|
||||
fi
|
||||
if [ -e tests/test-suite.log ]; then
|
||||
cat tests/test-suite.log
|
||||
fi
|
||||
|
||||
exit $exitcode
|
||||
@@ -29,7 +29,8 @@ FILES:${PN} += "${libdir}/babeltrace2/plugins/*.so"
|
||||
|
||||
ASNEEDED = ""
|
||||
|
||||
RDEPENDS:${PN}-ptest += "bash gawk python3"
|
||||
# coreutils since we need full mktemp
|
||||
RDEPENDS:${PN}-ptest += "bash gawk python3 make grep coreutils findutils"
|
||||
|
||||
do_compile_ptest () {
|
||||
make -C tests all
|
||||
|
||||
Reference in New Issue
Block a user