summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2024-02-08 18:18:59 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-10 14:13:24 +0000
commit38657590e74bf12cd63242dd389a549aebd0fd04 (patch)
tree890850ccb17a02774684df637d25d2e2873606ad
parent21be9d1a4b1506d80c7d96b3801a91387c7ac617 (diff)
downloadpoky-38657590e74bf12cd63242dd389a549aebd0fd04.tar.gz
python3-pyyaml: enable ptest
Upstream is in the process of migrating testing to pytest, backport test_dump_load.py (the legacy_tests were throwing Errors and Failures). We don't really need to run upstream's test suite, but we do need to verify that our runtime is functional. https://github.com/yaml/pyyaml/commit/a98fd6088e81d7aca571220c966bbfe2ac43c335 (From OE-Core rev: b0fdf0688109ba6b87840a0837bebee3d9a27089) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/distro/include/ptest-packagelists.inc1
-rw-r--r--meta/recipes-devtools/python/python3-pyyaml/run-ptest3
-rw-r--r--meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb17
3 files changed, 21 insertions, 0 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index b590640edc..0192146dbd 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -69,6 +69,7 @@ PTESTS_FAST = "\
69 python3-pluggy \ 69 python3-pluggy \
70 python3-pyasn1 \ 70 python3-pyasn1 \
71 python3-pytz \ 71 python3-pytz \
72 python3-pyyaml \
72 python3-trove-classifiers \ 73 python3-trove-classifiers \
73 python3-wcwidth \ 74 python3-wcwidth \
74 python3-webcolors \ 75 python3-webcolors \
diff --git a/meta/recipes-devtools/python/python3-pyyaml/run-ptest b/meta/recipes-devtools/python/python3-pyyaml/run-ptest
new file mode 100644
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pyyaml/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb b/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb
index 102e2f2498..62be059df5 100644
--- a/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb
+++ b/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb
@@ -20,4 +20,21 @@ RDEPENDS:${PN} += "\
20 ${PYTHON_PN}-netclient \ 20 ${PYTHON_PN}-netclient \
21" 21"
22 22
23inherit ptest
24SRC_URI += "\
25 https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \
26 file://run-ptest \
27"
28SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a"
29
30RDEPENDS:${PN}-ptest += " \
31 ${PYTHON_PN}-pytest \
32 ${PYTHON_PN}-unittest-automake-output \
33"
34
35do_install_ptest() {
36 install -d ${D}${PTEST_PATH}/tests
37 cp -rf ${WORKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/
38}
39
23BBCLASSEXTEND = "native nativesdk" 40BBCLASSEXTEND = "native nativesdk"