]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python3-uritools: enable ptest
authorRoss Burton <ross.burton@arm.com>
Tue, 23 Jul 2024 14:51:37 +0000 (15:51 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Jul 2024 21:49:18 +0000 (22:49 +0100)
Install the test suite and run it in core-image-ptest-fast.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/ptest-packagelists.inc
meta/recipes-devtools/python/python3-uritools/run-ptest [new file with mode: 0644]
meta/recipes-devtools/python/python3-uritools_4.0.2.bb

index 16d7b9e6b2c65f357431605f6d819234741e0962..5e90096b1e82e72c144b5fe2f779b7c98841b0c8 100644 (file)
@@ -71,6 +71,7 @@ PTESTS_FAST = "\
     python3-pyyaml \
     python3-rpds-py \
     python3-trove-classifiers \
+    python3-uritools \
     python3-wcwidth \
     python3-webcolors \
     qemu \
diff --git a/meta/recipes-devtools/python/python3-uritools/run-ptest b/meta/recipes-devtools/python/python3-uritools/run-ptest
new file mode 100644 (file)
index 0000000..8d2017d
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
index 08ebd07705fa0f796e2aea465d48fa485b9084f7..693d1974be2079a77c7398ffb555f4801785f64b 100644 (file)
@@ -6,6 +6,17 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1ec55353c80c662e4255f8889a0ca558"
 
 SRC_URI[sha256sum] = "04df2b787d0eb76200e8319382a03562fbfe4741fd66c15506b08d3b8211d573"
 
-inherit pypi python_setuptools_build_meta
+SRC_URI += "file://run-ptest"
+
+inherit pypi python_setuptools_build_meta ptest
+
+do_install_ptest() {
+       cp -rf ${S}/tests/* ${D}${PTEST_PATH}/
+}
+
+RDEPENDS:${PN}-ptest += " \
+       python3-pytest \
+       python3-unittest-automake-output \
+"
 
 BBCLASSEXTEND = "native nativesdk"