python3-flask: add ptest

* test added to the fast list

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jan Vermaete 2024-05-30 21:37:39 +02:00 committed by Khem Raj
parent 1d5c3e17f5
commit c67c3f4232
No known key found for this signature in database
GPG Key ID: BB053355919D3314
3 changed files with 14 additions and 1 deletions

View File

@ -19,6 +19,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-click \ python3-click \
python3-dominate \ python3-dominate \
python3-execnet \ python3-execnet \
python3-flask \
python3-flexcache \ python3-flexcache \
python3-flexparser \ python3-flexparser \
python3-freezegun \ python3-freezegun \

View File

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

View File

@ -8,10 +8,14 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=ffeffa59c90c9c4a033c7574f8f3fb75"
SRC_URI[sha256sum] = "822c03f4b799204250a7ee84b1eddc40665395333973dfb9deebfe425fefcb7d" SRC_URI[sha256sum] = "822c03f4b799204250a7ee84b1eddc40665395333973dfb9deebfe425fefcb7d"
SRC_URI += " \
file://run-ptest \
"
UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/Flask" UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/Flask"
UPSTREAM_CHECK_REGEX = "/Flask/(?P<pver>(\d+[\.\-_]*)+)" UPSTREAM_CHECK_REGEX = "/Flask/(?P<pver>(\d+[\.\-_]*)+)"
inherit pypi python_setuptools_build_meta inherit pypi python_setuptools_build_meta ptest
CLEANBROKEN = "1" CLEANBROKEN = "1"
@ -23,3 +27,8 @@ RDEPENDS:${PN} = " \
python3-profile \ python3-profile \
python3-werkzeug \ python3-werkzeug \
" "
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}