From de52f892dbbd330db2c05a9da691ca679a260070 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 19 Jul 2013 17:10:59 +0200 Subject: python: Add ptest Install python test suite and run it as ptest (From OE-Core rev: a768047cb8fc00ecf13f4db08117c348a9312c47) Signed-off-by: Tudor Florea Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-devtools/python/python_2.7.3.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'meta/recipes-devtools/python/python_2.7.3.bb') diff --git a/meta/recipes-devtools/python/python_2.7.3.bb b/meta/recipes-devtools/python/python_2.7.3.bb index 59d189d862..2e35da60c4 100644 --- a/meta/recipes-devtools/python/python_2.7.3.bb +++ b/meta/recipes-devtools/python/python_2.7.3.bb @@ -28,6 +28,8 @@ SRC_URI += "\ file://builddir.patch \ file://python-2.7.3-CVE-2012-2135.patch \ file://gcc-4.8-fix-configure-Wformat.patch \ + file://fix-makefile-for-ptest.patch \ + file://run-ptest \ " S = "${WORKDIR}/Python-${PV}" @@ -119,6 +121,11 @@ do_install_append_class-nativesdk () { create_wrapper ${D}${bindir}/python2.7 TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' } +do_install_ptest() { + cp ${B}/Makefile ${D}${PTEST_PATH} + sed -i s:LIBDIR:${libdir}:g ${D}${PTEST_PATH}/run-ptest +} + SSTATE_SCAN_FILES += "Makefile" PACKAGE_PREPROCESS_FUNCS += "py_package_preprocess" @@ -148,6 +155,9 @@ FILES_${PN}-dbg += "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/.debug" # catch all the rest (unsorted) PACKAGES += "${PN}-misc" FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}" +RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-misc" +#inherit ptest after "require python-${PYTHON_MAJMIN}-manifest.inc" so PACKAGES doesn't get overwritten +inherit ptest # catch manpage PACKAGES += "${PN}-man" -- cgit v1.2.3-54-g00ecf