]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
python3: parallelize ptests, add test_cppext dependencies
authorTrevor Gamblin <tgamblin@baylibre.com>
Tue, 11 Jul 2023 17:25:45 +0000 (13:25 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Jul 2023 16:01:18 +0000 (17:01 +0100)
commit50a719d3002a4119e8b2be43aec8fe01aa0c2a40
treef11464823ae64add2243494658e9a7a74b2fee61
parentbb5c368e48e2222312b1fc4ba4ad609b2530d6bc
python3: parallelize ptests, add test_cppext dependencies

This is based on a previous patch from Alex Kanavin (thanks Alex),
but it retains our use of sed to parse the test output into a usable
form. The intent was to use the test module's --junit-xml feature and
parse the resulting log instead of using sed, but various errors were
encountered when testing this method, so that will need further
investigation before we can consider adopting it. Two missing ptest
dependencies on python3-cgitb and python3-zipapp were already merged
in a previous patch, so only gcc, g++, and binutils were left to add
as ptest RDEPENDS.

ptest output and runtime with this change:

== Tests result: SUCCESS ==

405 tests OK.

29 tests skipped:
    test_asdl_parser test_check_c_globals test_clinic test_curses
    test_devpoll test_gdb test_idle test_ioctl test_kqueue
    test_launcher test_msilib test_ossaudiodev test_readline
    test_smtpnet test_socketserver test_startfile test_tcl test_tix
    test_tk test_ttk_guionly test_ttk_textonly test_turtle
    test_urllib2net test_urllibnet test_winconsoleio test_winreg
    test_winsound test_xmlrpc_net test_zipfile64

Total duration: 5 min 3 sec

[YOCTO #13298]

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/images/core-image-ptest.bb
meta/recipes-devtools/python/python3/run-ptest
meta/recipes-devtools/python/python3_3.11.4.bb