path: root/meta/recipes-devtools/python/python3_3.3.3.bb
diff options
authorPaul Barker <paul@paulbarker.me.uk>2014-03-01 13:49:39 +0000
committerPaul Barker <paul@paulbarker.me.uk>2014-11-24 11:50:37 +0000
commit49194f148c7b74b7d567659a4525a6de3dd43884 (patch)
tree570785fbfeee0f9471ca362e1c2c58c15662c796 /meta/recipes-devtools/python/python3_3.3.3.bb
parent323b2d27598df8fe18892559e093ae7281e99918 (diff)
python3: Add ptest supportpbarker/python3-ptest
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>
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.3.3.bb')
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3_3.3.3.bb b/meta/recipes-devtools/python/python3_3.3.3.bb
index 4497e02586..565f2ccbd0 100644
--- a/meta/recipes-devtools/python/python3_3.3.3.bb
+++ b/meta/recipes-devtools/python/python3_3.3.3.bb
@@ -37,6 +37,7 @@ SRC_URI += "\
file://sysroot-include-headers.patch \
file://unixccompiler.patch \
file://avoid-ncursesw-include-path.patch \
+ file://run-ptest \
SRC_URI[md5sum] = "f3ebe34d4d8695bf889279b54673e10c"
SRC_URI[sha256sum] = "e526e9b612f623888364d30cc9f3dfc34dcef39065c713bdbcddf47df84d8dcb"
@@ -211,6 +212,16 @@ FILES_${PN}-dbg += "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/.debug"
PACKAGES += "${PN}-misc"
FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}"
+#inherit ptest after "require python-${PYTHON_MAJMIN}-manifest.inc" so PACKAGES doesn't get overwritten
+inherit ptest
+# This must come after inherit ptest for the override to take effect
+do_install_ptest() {
+ install -m 0755 -D ${S}/../run-ptest ${D}${PTEST_PATH}/run-ptest
+RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-misc libgcc"
# catch manpage
PACKAGES += "${PN}-man"
FILES_${PN}-man = "${datadir}/man"