mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-cython: Fix tests on i686-linux.
* gnu/packages/python-xyz.scm (python-cython): [arguments] <test-backend>: Use 'custom. <test-flags>: Skip one test on i686-linux. <phases>: Use default 'check; add 'pre-check. Change-Id: Ia2aa75cf341f9db043c2c2bc99ed56ef6816ca21
This commit is contained in:
parent
63880960ea
commit
8034a707fd
1 changed files with 12 additions and 9 deletions
|
@ -10125,8 +10125,10 @@ For some datatypes the overhead can be reduced by using khash by factor 4-8.")
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:test-backend #~'custom
|
||||||
#:test-flags
|
#:test-flags
|
||||||
#~(list "-vv"
|
#~(list "runtests.py"
|
||||||
|
"-vv"
|
||||||
"-j" (number->string (parallel-job-count))
|
"-j" (number->string (parallel-job-count))
|
||||||
"-x" (string-join
|
"-x" (string-join
|
||||||
(list "annotate_html"
|
(list "annotate_html"
|
||||||
|
@ -10138,11 +10140,14 @@ For some datatypes the overhead can be reduced by using khash by factor 4-8.")
|
||||||
"complex_numbers_cpp"
|
"complex_numbers_cpp"
|
||||||
;; This test fails when running on 24 cores.
|
;; This test fails when running on 24 cores.
|
||||||
"cpp_stl_conversion"
|
"cpp_stl_conversion"
|
||||||
;; XXX: On 32-bit architectures, running the
|
|
||||||
;; parallel tests fails on many-core systems, see
|
|
||||||
;; <https://github.com/cython/cython/issues/2807>.
|
|
||||||
#$@(if (not (target-64bit?))
|
#$@(if (not (target-64bit?))
|
||||||
'("run.parallel")
|
;; XXX: On 32-bit architectures, running the
|
||||||
|
;; parallel tests fails on many-core systems.
|
||||||
|
;; See: <https://github.com/cython/cython/issues/2807>.
|
||||||
|
'("run.parallel"
|
||||||
|
;; Test cpp_stl_any.cast_test fails.
|
||||||
|
;; See: <https://github.com/cython/cython/issues/5928>.
|
||||||
|
"cpp_stl_any")
|
||||||
'())
|
'())
|
||||||
#$@(if (system-hurd?)
|
#$@(if (system-hurd?)
|
||||||
'("test_class_ref"
|
'("test_class_ref"
|
||||||
|
@ -10152,15 +10157,13 @@ For some datatypes the overhead can be reduced by using khash by factor 4-8.")
|
||||||
"|"))
|
"|"))
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'check
|
(add-before 'check 'pre-check
|
||||||
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
;; Disable compiler optimizations to greatly reduce the running
|
;; Disable compiler optimizations to greatly reduce the running
|
||||||
;; time of the test suite.
|
;; time of the test suite.
|
||||||
(setenv "CFLAGS" "-O0")
|
(setenv "CFLAGS" "-O0")
|
||||||
;; Some tests require access to "$HOME/.cython".
|
;; Some tests require access to "$HOME/.cython".
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp"))))))
|
||||||
(when tests?
|
|
||||||
(apply invoke "python" "runtests.py" test-flags)))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list libxcrypt
|
(list libxcrypt
|
||||||
python-setuptools
|
python-setuptools
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue