gnu: nmap: Honor tests? flag.

* gnu/packages/admin.scm (nmap)[arguments]: In custom 'check phase honor
the #:tests? flag.
This commit is contained in:
Efraim Flashner 2022-05-29 16:29:36 +03:00
parent 50970a28b7
commit e4fe344a5c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3191,10 +3191,12 @@ (define (python-path dir)
(,(python-path ndiff)))))))
;; These are the tests that do not require network access.
(replace 'check
(lambda _ (invoke "make"
"check-nse"
"check-ndiff"
"check-dns"))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "make"
"check-nse"
"check-ndiff"
"check-dns")))))
;; Nmap can't cope with out-of-source building.
#:out-of-source? #f))
(home-page "https://nmap.org/")