summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-06-21 15:25:41 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-06-21 18:21:52 +0100
commit138ac803e3b3e60c2198ed5cb39c890e48493af3 (patch)
treeafb516fcc3cb100643a8f75301b6eaab0b148c18 /gnu/packages/python-xyz.scm
parentc4c39de36901a1a509e2ae8173796a619d1949d3 (diff)
gnu: python-pyelftools: Skip readelf tests.
Fixing #729. * gnu/packages/python-xyz.scm (python-pyelftools) [source] <snippet>: Delete llvm-dwarfdump binary file. [phases] {check}: Do not run readelf tests, seen in Debian package patch <https://salsa.debian.org/debian/python-pyelftools>. Change-Id: Ic1accbb4daf5014f13616181ca21a904429d35a3
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm18
1 files changed, 13 insertions, 5 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a60f4b0249..54b3ee6828 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24869,18 +24869,26 @@ OpenSSH Server for example.")
(sha256
(base32 "0gk47mq5cqv6qz35aydn67wma5m70gv5f9f6pg38zny6vsfavmq3"))
(snippet
- ;; Delete bundled readelf executable.
- '(delete-file "test/external_tools/readelf"))))
+ #~(begin
+ ;; Delete bundled readelf and llvm-dwardump executables. Project
+ ;; also ships quite a lot binary files mainly for tests, check
+ ;; with:
+ ;;
+ ;; find . -type f ! -size 0 -exec grep -IL . "{}" \;
+ ;;
+ (delete-file "test/external_tools/readelf")
+ (delete-file "test/external_tools/llvm-dwarfdump")))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- ;; Taken from tox.ini.
+ ;; Run just basic unit and example tests, dwarfdump and
+ ;; readelf tests are not selected as they they are fragile and
+ ;; arch-specific.
(invoke "python" "test/run_all_unittests.py")
- (invoke "python" "test/run_examples_test.py")
- (invoke "python" "test/run_readelf_tests.py")))))))
+ (invoke "python" "test/run_examples_test.py")))))))
(synopsis
"Analyze binary and library file information")
(description "This Python library provides interfaces for parsing and