diff options
| -rw-r--r-- | meta/conf/distro/include/ptest-packagelists.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-libarchive-c/run-ptest | 6 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-libarchive-c_5.1.bb | 20 |
3 files changed, 26 insertions, 1 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index e3ab7e8629..7b8418654a 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc | |||
| @@ -63,6 +63,7 @@ PTESTS_FAST = "\ | |||
| 63 | python3-idna \ | 63 | python3-idna \ |
| 64 | python3-jinja2 \ | 64 | python3-jinja2 \ |
| 65 | python3-jsonpointer \ | 65 | python3-jsonpointer \ |
| 66 | python3-libarchive-c \ | ||
| 66 | python3-license-expression \ | 67 | python3-license-expression \ |
| 67 | python3-mako \ | 68 | python3-mako \ |
| 68 | python3-markupsafe \ | 69 | python3-markupsafe \ |
diff --git a/meta/recipes-devtools/python/python3-libarchive-c/run-ptest b/meta/recipes-devtools/python/python3-libarchive-c/run-ptest new file mode 100644 index 0000000000..ddfbba7f94 --- /dev/null +++ b/meta/recipes-devtools/python/python3-libarchive-c/run-ptest | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # export needed to set the locale to support accentuated and non-latin chars in tests | ||
| 4 | export LC_ALL=en_US.UTF-8 | ||
| 5 | |||
| 6 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb index 4e318e52f4..c8aff3defe 100644 --- a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb +++ b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb | |||
| @@ -5,9 +5,13 @@ HOMEPAGE = "https://github.com/Changaco/python-libarchive-c" | |||
| 5 | LICENSE = "CC0-1.0" | 5 | LICENSE = "CC0-1.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=bcab380227a83bc147350b40a81e6ffc" | 6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=bcab380227a83bc147350b40a81e6ffc" |
| 7 | 7 | ||
| 8 | SRC_URI += " \ | ||
| 9 | file://run-ptest \ | ||
| 10 | " | ||
| 11 | |||
| 8 | PYPI_PACKAGE = "libarchive-c" | 12 | PYPI_PACKAGE = "libarchive-c" |
| 9 | 13 | ||
| 10 | inherit pypi setuptools3 | 14 | inherit pypi setuptools3 ptest |
| 11 | 15 | ||
| 12 | SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" | 16 | SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" |
| 13 | 17 | ||
| @@ -18,4 +22,18 @@ RDEPENDS:${PN} += "\ | |||
| 18 | python3-logging \ | 22 | python3-logging \ |
| 19 | " | 23 | " |
| 20 | 24 | ||
| 25 | RDEPENDS:${PN}-ptest += " \ | ||
| 26 | locale-base-en-us \ | ||
| 27 | python3-pytest \ | ||
| 28 | python3-unittest-automake-output \ | ||
| 29 | " | ||
| 30 | |||
| 21 | BBCLASSEXTEND = "native" | 31 | BBCLASSEXTEND = "native" |
| 32 | |||
| 33 | do_install_ptest() { | ||
| 34 | install -d ${D}${PTEST_PATH}/tests | ||
| 35 | install -d ${D}${PTEST_PATH}/libarchive | ||
| 36 | cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 37 | cp ${S}/libarchive/* ${D}${PTEST_PATH}/libarchive/ | ||
| 38 | cp ${S}/README.rst ${D}${PTEST_PATH}/README.rst | ||
| 39 | } | ||
