python3-pydantic-core: enable ptest

* Add to ptest-packagelists-meta-python.inc "FAST" under 30 seconds

Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Tim Orling
2023-12-07 15:23:55 -08:00
committed by Khem Raj
parent e592a8ce9a
commit 446124784b
3 changed files with 19 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-polyline \
python3-precise-runner \
python3-prettytable \
python3-pydantic-core \
python3-pylint \
python3-ptyprocess \
python3-py-cpuinfo \

View File

@@ -0,0 +1,3 @@
#!/bin/sh
pytest --automake

View File

@@ -23,3 +23,18 @@ PYPI_ARCHIVE_NAME = "pydantic_core-${PV}.${PYPI_PACKAGE_EXT}"
RDEPENDS:${PN} += "python3-typing-extensions"
INSANE_SKIP:${PN} = "already-stripped"
inherit ptest
SRC_URI += "file://run-ptest"
RDEPENDS:${PN}-ptest += "\
python3-dirty-equals \
python3-hypothesis \
python3-pytest \
python3-pytest-mock \
python3-unittest-automake-output \
"
do_install_ptest() {
cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
rm -rf ${D}${PTEST_PATH}/tests/benchmarks
}