mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 05:02:21 +02:00
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:
committed by
Richard Purdie
parent
095beae008
commit
cf6b12e5c9
@@ -13,7 +13,7 @@ SRC_URI += " \
|
||||
|
||||
PYPI_PACKAGE = "libarchive-c"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
inherit pypi setuptools3 ptest-python-pytest
|
||||
|
||||
SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721"
|
||||
|
||||
@@ -34,16 +34,12 @@ RDEPENDS:${PN} += "\
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
locale-base-en-us \
|
||||
python3-pytest \
|
||||
python3-unittest-automake-output \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
do_install_ptest:append() {
|
||||
install -d ${D}${PTEST_PATH}/libarchive
|
||||
cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
cp ${S}/libarchive/* ${D}${PTEST_PATH}/libarchive/
|
||||
cp ${S}/README.rst ${D}${PTEST_PATH}/README.rst
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user