python3-*: Update recipes with pytest ptests to use the new ptest-python-pytest class

The newly added ptest-python-pytest removes duplication for:
  1. Copying pytest files to the ptest directory
  2. Adding standard pytest dependencies
  3. Adding a common run-ptest script using pytest

(From OE-Core rev: 8d84d9e19b9292b1863921611924714d77c41d21)

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Derek Straka
2024-12-18 18:05:48 +00:00
committed by Richard Purdie
parent 095beae008
commit cf6b12e5c9
44 changed files with 34 additions and 316 deletions

View File

@@ -7,20 +7,8 @@ SRC_URI[sha256sum] = "2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f
DEPENDS += "python3-setuptools-scm-native"
inherit pypi ptest python_setuptools_build_meta
inherit pypi ptest-python-pytest python_setuptools_build_meta
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/testing
cp -rf ${S}/testing/* ${D}${PTEST_PATH}/testing/
}
PTEST_PYTEST_DIR = "testing"
BBCLASSEXTEND = "native nativesdk"