diff options
author | Ever ATILANO <ever.atilano@smile.fr> | 2023-03-24 15:42:21 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-04-05 15:57:09 -0700 |
commit | 74dcb3aa174a60a2343803d6b038a2a10113c926 (patch) | |
tree | f60ccef189c9cce2cfdc904a1445237495ee8484 | |
parent | 7e4947d0b019f33e73cdb18ce0ac5662d7e2184e (diff) | |
download | meta-openembedded-74dcb3aa174a60a2343803d6b038a2a10113c926.tar.gz |
meta-python: python3-lorem: Add ptest
Signed-off-by: Ever ATILANO <ever.atilano@smile.fr>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-python/recipes-devtools/python/python3-lorem/run-ptest | 3 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-lorem_0.1.1.bb | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-lorem/run-ptest b/meta-python/recipes-devtools/python/python3-lorem/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-lorem/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest --automake | ||
diff --git a/meta-python/recipes-devtools/python/python3-lorem_0.1.1.bb b/meta-python/recipes-devtools/python/python3-lorem_0.1.1.bb index 9ce7a6293c..a855c39141 100644 --- a/meta-python/recipes-devtools/python/python3-lorem_0.1.1.bb +++ b/meta-python/recipes-devtools/python/python3-lorem_0.1.1.bb | |||
@@ -5,12 +5,25 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5301c01b2bcdeedba23645f94db2f179" | |||
5 | SRC_URI[md5sum] = "e3f0064a94c13e19780eb724affdb426" | 5 | SRC_URI[md5sum] = "e3f0064a94c13e19780eb724affdb426" |
6 | SRC_URI[sha256sum] = "785f4109a241fc2891e59705e85d065f6e6d3ed6ad91750a8cb54d4f3e59d934" | 6 | SRC_URI[sha256sum] = "785f4109a241fc2891e59705e85d065f6e6d3ed6ad91750a8cb54d4f3e59d934" |
7 | 7 | ||
8 | SRC_URI += "\ | ||
9 | file://run-ptest \ | ||
10 | " | ||
11 | |||
8 | PYPI_PACKAGE = "lorem" | 12 | PYPI_PACKAGE = "lorem" |
9 | 13 | ||
10 | inherit pypi setuptools3 | 14 | inherit pypi setuptools3 ptest |
11 | 15 | ||
12 | CLEANBROKEN = "1" | 16 | CLEANBROKEN = "1" |
13 | 17 | ||
14 | RDEPENDS:${PN} += " \ | 18 | RDEPENDS:${PN} += " \ |
15 | python3 \ | 19 | python3 \ |
16 | " | 20 | " |
21 | RDEPENDS:${PN}-ptest += " \ | ||
22 | ${PYTHON_PN}-pytest \ | ||
23 | ${PYTHON_PN}-unittest-automake-output \ | ||
24 | " | ||
25 | |||
26 | do_install_ptest() { | ||
27 | install -d ${D}${PTEST_PATH}/tests | ||
28 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
29 | } | ||