diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-17 18:59:18 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-17 18:59:18 +0000 |
| commit | e1bc9878cdf2ca006889a7f210a51592a5989d4a (patch) | |
| tree | 5febfd0d420e8b573dcd2d0b42cd8b2a7418cf42 /dev-python/filebytes | |
| parent | f767356f836788e2bb2843072155579fe8d8d214 (diff) | |
| download | baldeagleos-repo-e1bc9878cdf2ca006889a7f210a51592a5989d4a.tar.gz baldeagleos-repo-e1bc9878cdf2ca006889a7f210a51592a5989d4a.tar.xz baldeagleos-repo-e1bc9878cdf2ca006889a7f210a51592a5989d4a.zip | |
Adding metadata
Diffstat (limited to 'dev-python/filebytes')
| -rw-r--r-- | dev-python/filebytes/filebytes-0.10.2.ebuild | 16 | ||||
| -rw-r--r-- | dev-python/filebytes/filebytes-9999.ebuild | 16 |
2 files changed, 28 insertions, 4 deletions
diff --git a/dev-python/filebytes/filebytes-0.10.2.ebuild b/dev-python/filebytes/filebytes-0.10.2.ebuild index 36aba72124e8..447e3a643d7e 100644 --- a/dev-python/filebytes/filebytes-0.10.2.ebuild +++ b/dev-python/filebytes/filebytes-0.10.2.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 +} 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 +} |
