gnu: stress-ng: Reduce test coverage.

* gnu/packages/admin.scm (stress-ng)[arguments]: Delete the
'check-a-little-harder phase.

Change-Id: I32dc1a0fcad4a0f4763954f060d0b19cbeef23ca
This commit is contained in:
Tobias Geerinckx-Rice 2024-09-08 02:00:00 +02:00
parent bf6138e9ac
commit a4e57de061
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79

View File

@ -2629,30 +2629,13 @@ system is under heavy load.")
"/share/stress-ng/example-jobs") "/share/stress-ng/example-jobs")
(string-append "BASHDIR=" #$output (string-append "BASHDIR=" #$output
"/share/bash-completion/completions")) "/share/bash-completion/completions"))
;; There is also a fast-test-all that very briefly runs every single
;; stressor, but its utility is questionable compared to its cost.
;; See this package's git history for details & which tests to skip.
#:test-target "lite-test" #:test-target "lite-test"
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(delete 'configure) ; no configure script (delete 'configure)))) ;no configure script
(add-after 'check 'check-a-little-harder
;; XXX Guix supports only one #:test-target. Run more tests.
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
(substitute* "debian/tests/fast-test-all"
(("^EXCLUDE=\"" exclude=)
(string-append
exclude=
(string-join
'("fpunch" ;fails for reasons not investigated
"prio-inv" ;requires elevated privileges
"ptrace") ;fails if host kernel denies ptracing
" ") " "))
;; There's a commented list of tests that can lock up
;; some kernels or are CPU/arch specific. Uncomment it.
(("#(EXCLUDE=)" _ uncomment) uncomment)
;; Make it so that both lists are appended, with spaces.
(("EXCLUDE=\"") "EXCLUDE+=\" "))
(apply (assoc-ref %standard-phases 'check)
`(,@args #:test-target "fast-test-all"))))))))
(inputs (inputs
(list keyutils (list keyutils
kmod kmod