[OE-core] [PATCH] python3: Add ptest support

Paul Barker paul at paulbarker.me.uk
Tue Mar 11 19:23:50 UTC 2014


On 10 March 2014 18:15, Saul Wold <sgw at linux.intel.com> wrote:
> On 03/06/2014 04:54 PM, Paul Barker wrote:
>>
>> 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 at paulbarker.me.uk>
>> ---
>> <snip>
>
> Seems like there is an issue with the multi-lib build.
>
> ERROR: QA Issue: lib32-python3: Files/directories were installed but not
> shipped
>   /usr/lib/python3
>   /usr/lib/python3/ptest
> NOTE: recipe lib32-pulseaudio-4.0-r0: task do_package_write_rpm: Started
>
> Sau!
>
>
>
>> +# This must come after inherit ptest for the override to take effect
>> +do_install_ptest() {
>> +    install -m 0755 -d ${D}/${libdir}/python3/ptest
>> +    install -m 0755 ${S}/../run-ptest ${D}/${libdir}/${PN}/ptest
>> +}

Should I be using something other than ${libdir} here? I can see
${PTEST_PATH} used in the do_install_ptest function for python2,
should I be using that instead?

As I think I noted elsewhere, this is the first ptest related patch
I've done so I don't really know much beyond what's documented at
https://wiki.yoctoproject.org/wiki/Ptest.

Cheers,

-- 
Paul Barker

Email: paul at paulbarker.me.uk
http://www.paulbarker.me.uk



More information about the Openembedded-core mailing list