summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSören Tempel <soeren@soeren-tempel.net>2025-05-29 16:21:40 +0200
committerHilton Chain <hako@ultrarare.space>2025-06-08 01:32:58 +0800
commit8ee1c20f8774dd1b89a832b33c270660a22a3aab (patch)
tree02fbae97aa9bb2ee3a7faa54496700beeeb38521 /gnu
parent9055bb364403d535dbca6c05fce0e8019d097126 (diff)
gnu: python-angr: Refactor test invocation.
* gnu/packages/python-xyz.scm (python-angr)[arguments]<#:phases>: Preserve ‘check’ phase from the build system. Move test flags to... <#:test-flags>: ...here. Change-Id: I5d857592596af5209c584f4491ad6b0a8ff3b848 Signed-off-by: Hilton Chain <hako@ultrarare.space> Modified-by: Hilton Chain <hako@ultrarare.space>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm40
1 files changed, 20 insertions, 20 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 57ac33754d0..ebb3970c3a4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -36051,6 +36051,21 @@ mangled symbols, which can be used for directly extracting type information.")
36051 (build-system pyproject-build-system) 36051 (build-system pyproject-build-system)
36052 (arguments 36052 (arguments
36053 (list 36053 (list
36054 #:test-flags
36055 #~(list "-x"
36056 "--dist" "load"
36057 "-n" (number->string (parallel-job-count))
36058 "-k"
36059 ;; test_mips32_missing_offset_in_instructions fails
36060 ;; with capstone 5 and passes with capstone 4. Might
36061 ;; be a capstone regressions, needs investigation.
36062 ;;
36063 ;; test_concrete_memset is a non-deterministic benchmark.
36064 ;; test_similarity_fauxware is flaky.
36065 (string-append
36066 "not test_mips32_missing_offset_in_instructions"
36067 " and not test_concrete_memset"
36068 " and not test_similarity_fauxware"))
36054 #:phases #~(modify-phases %standard-phases 36069 #:phases #~(modify-phases %standard-phases
36055 (add-after 'unpack 'patch-tests 36070 (add-after 'unpack 'patch-tests
36056 (lambda* (#:key inputs #:allow-other-keys) 36071 (lambda* (#:key inputs #:allow-other-keys)
@@ -36070,26 +36085,11 @@ mangled symbols, which can be used for directly extracting type information.")
36070 (substitute* "tests/common.py" 36085 (substitute* "tests/common.py"
36071 (("\\[\"cc\"\\]") 36086 (("\\[\"cc\"\\]")
36072 "[\"gcc\"]"))))) 36087 "[\"gcc\"]")))))
36073 (replace 'check 36088 (add-before 'check 'check-setup
36074 (lambda* (#:key inputs tests? #:allow-other-keys) 36089 (lambda _
36075 (when tests? 36090 (copy-recursively
36076 (copy-recursively #$(this-package-native-input "binaries") 36091 #$(this-package-native-input "binaries")
36077 "../binaries") 36092 "../binaries")))
36078 (with-directory-excursion "tests"
36079 ;; test_mips32_missing_offset_in_instructions fails
36080 ;; with capstone 5 and passes with capstone 4. Might
36081 ;; be a capstone regressions, needs investigation.
36082 ;;
36083 ;; test_concrete_memset is a non-deterministic benchmark.
36084 ;; test_similarity_fauxware is flaky.
36085 (let ((to-skip '("test_mips32_missing_offset_in_instructions"
36086 "test_concrete_memset"
36087 "test_similarity_fauxware")))
36088 (invoke "pytest" "-vv" "-x" "--dist" "loadfile"
36089 "-k" (string-append
36090 "not "
36091 (string-join to-skip " and not "))
36092 "-n" (number->string (parallel-job-count))))))))
36093 (add-before 'build 'set-cc 36093 (add-before 'build 'set-cc
36094 (lambda _ 36094 (lambda _
36095 (setenv "CC" "gcc")))))) 36095 (setenv "CC" "gcc"))))))