]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
babeltrace2: Fix ptest execution in minimal images and add debug info
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Mar 2023 18:14:17 +0000 (18:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 12 Mar 2023 23:36:44 +0000 (23:36 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/lttng/babeltrace2/run-ptest
meta/recipes-kernel/lttng/babeltrace2_2.0.4.bb

index 72fe223436252051c31930409a3c3bfa80e4ae36..71a9c81bfbe4345ba5758960501cb5d1c83e0d41 100755 (executable)
@@ -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
\ No newline at end of file
index b48f07ea0dfaa46ed8ba937a112f05b3a2756d21..04c2a27904125c1b07b5965885db5f5ba9a98926 100644 (file)
@@ -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