summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/conf/include/ptest-packagelists-meta-oe.inc1
-rw-r--r--meta-oe/recipes-devtools/python/python3-pefile/run-ptest3
-rw-r--r--meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb (renamed from meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb)16
3 files changed, 18 insertions, 2 deletions
diff --git a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
index a29408a822..eaa86c411b 100644
--- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
+++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
@@ -36,6 +36,7 @@ PTESTS_FAST_META_OE = "\
36 oprofile \ 36 oprofile \
37 protobuf \ 37 protobuf \
38 pv \ 38 pv \
39 python3-pefile \
39 sdbus-c++ \ 40 sdbus-c++ \
40 uthash \ 41 uthash \
41 xmlsec1 \ 42 xmlsec1 \
diff --git a/meta-oe/recipes-devtools/python/python3-pefile/run-ptest b/meta-oe/recipes-devtools/python/python3-pefile/run-ptest
new file mode 100644
index 0000000000..95ae72306f
--- /dev/null
+++ b/meta-oe/recipes-devtools/python/python3-pefile/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake --ignore=./tests/pefile_test.py
diff --git a/meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb b/meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb
index 50dae7b407..e30b362323 100644
--- a/meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb
+++ b/meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb
@@ -4,13 +4,25 @@ HOMEPAGE = "https://github.com/erocarrera/pefile"
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873"
6 6
7inherit setuptools3 pypi ptest 7inherit setuptools3 ptest
8SRC_URI[sha256sum] = "82e6114004b3d6911c77c3953e3838654b04511b8b66e8583db70c65998017dc" 8SRCREV = "1ab2807c4eec16041e791d7a6acc68cc23fd5266"
9SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \
10 file://run-ptest"
11S = "${WORKDIR}/git"
9 12
10BBCLASSEXTEND = "native nativesdk" 13BBCLASSEXTEND = "native nativesdk"
11 14
15do_install_ptest() {
16 install -d ${D}${PTEST_PATH}/tests
17 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
18}
19
12RDEPENDS:${PN} += " \ 20RDEPENDS:${PN} += " \
13 python3-mmap \ 21 python3-mmap \
14 python3-netclient \ 22 python3-netclient \
15 python3-stringold \ 23 python3-stringold \
16" 24"
25RDEPENDS:${PN}-ptest += "\
26 python3-pytest \
27 python3-unittest-automake-output \
28"