gnu: p7zip: Honor #:tests? flag.

* gnu/packages/compression.scm (p7zip)[arguments]: Only run test suite
when #:tests? is true.
This commit is contained in:
Efraim Flashner 2021-08-08 10:46:44 +03:00
parent fcd88262df
commit de0954d18c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1347,10 +1347,11 @@ (define-public p7zip
"makefile.linux_any_cpu_gcc_4.X")))
"makefile.machine")))
(replace 'check
(lambda _
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "make" "test")
(invoke "make" "test_7z")
(invoke "make" "test_7zr"))))))
(invoke "make" "test_7zr")))))))
(native-inputs
(let ((system (or (%current-target-system)
(%current-system))))