python3-oletools: Enable tests

Inherit ptest and include tests for oletools.

This work was sponsored by GOVCERT.LU.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Leon Anavi
2026-07-16 21:14:53 -07:00
committed by Khem Raj
parent 74b76f0b8a
commit 3d2279ddba
4 changed files with 255 additions and 1 deletions
@@ -3,9 +3,30 @@ HOMEPAGE = "https://github.com/decalage2/olefile"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=062477247e75fcb78ae3e1280be9e4e1"
SRC_URI += " \
file://run-ptest \
file://0001-tests-test_utils-utils.py-Adjust-source-code-dir.patch \
file://0001-oletools-olevba.py-Fix-deprecation-warnings.patch \
"
SRC_URI[sha256sum] = "ad452099f4695ffd8855113f453348200d195ee9fa341a09e197d66ee7e0b2c3"
inherit pypi setuptools3
inherit pypi setuptools3 ptest
PYPI_PACKAGE = "oletools"
PYPI_PACKAGE_EXT = "zip"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-core \
python3-olefile \
python3-colorclass \
python3-pyparsing \
python3-unittest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}