diff options
Diffstat (limited to 'dev-python/filebytes/filebytes-9999.ebuild')
| -rw-r--r-- | dev-python/filebytes/filebytes-9999.ebuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/dev-python/filebytes/filebytes-9999.ebuild b/dev-python/filebytes/filebytes-9999.ebuild index c07b808f30fd..46e22c6869c0 100644 --- a/dev-python/filebytes/filebytes-9999.ebuild +++ b/dev-python/filebytes/filebytes-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 @@ -21,3 +21,15 @@ fi LICENSE="BSD" SLOT="0" + +python_test() { + "${EPYTHON}" - <<-EOF || die "Tests failed with ${EPYTHON}" + from filebytes.elf import * + elf_file = ELF('test-binaries/ls-x86') + print("elf", elf_file.elfHeader, elf_file.sections, elf_file.segments) + + from filebytes.pe import * + pe_file = PE('test-binaries/cmd-x86.exe') + print("pe", pe_file.imageDosHeader, pe_file.sections) + EOF +} |
