]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
python3: Add ptest support pbarker/python3-ptest
authorPaul Barker <paul@paulbarker.me.uk>
Sat, 1 Mar 2014 13:49:39 +0000 (13:49 +0000)
committerPaul Barker <paul@paulbarker.me.uk>
Mon, 24 Nov 2014 11:50:37 +0000 (11:50 +0000)
commit49194f148c7b74b7d567659a4525a6de3dd43884
tree570785fbfeee0f9471ca362e1c2c58c15662c796
parent323b2d27598df8fe18892559e093ae7281e99918
python3: Add ptest support

A run-ptest script written in python is added which defines a new TestRunner
subclass which prints test results in the required ptest format and then
executes python's built-in testsuite using this new TestRunner subclass.

The built-in testsuite is included in the python standard library and we ensure
we have the complete library by adding ${PN}-modules and ${PN}-misc to the
RDEPENDS for the ptest package. We also require libgcc for pthread support.

Tested on qemux86. Several tests fail and many skip; further investigation
should be done to check that the current status is acceptable. In addition, the
testsuite causes an out-of-memory crash when qemu is configured with 256 MB of
RAM. The testsuite completes without crashing with 1 GB RAM.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
meta/recipes-devtools/python/python3/run-ptest [new file with mode: 0644]
meta/recipes-devtools/python/python3_3.3.3.bb