mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 13:36:22 +02:00
The python bindings ptests weren't functional. This patch: * Adds a patch to allow the tests to be executed on target standalone * Sets a variable to allow the right install path to be passed to setup.py * Sets the right paths in the ptest runner script for the python modules * Installs the missing data needed to run the tests Base patch was written by Michael Jeanson, RP then tweaked wording and formatting and added config to complete the work on all arches. (From OE-Core rev: 459ca12493a69402c1a0eaa367d8122c3e8c6acc) Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
670 B
Executable File
670 B
Executable File
#!/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"
declare -x BT_TESTS_BABELTRACE_PLUGIN_PATH="/usr/lib/babeltrace2/ptest/tests/utils/python" declare -x BT_TESTS_PROVIDER_DIR="/usr/lib/babeltrace2/plugin-providers"
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