gnu: john-the-ripper-jumbo: Enable tests.
* gnu/packages/password-utils.scm (john-the-ripper-jumbo)[arguments]: Remove '#:tests? #f'. Add 'check' phase after 'install'.
This commit is contained in:
parent
e57c7dd750
commit
4090dcb2b2
1 changed files with 7 additions and 2 deletions
|
@ -775,7 +775,6 @@ between hosts and entries in the password store.")
|
||||||
(string-prefix? "i686" system)) "sse2")
|
(string-prefix? "i686" system)) "sse2")
|
||||||
((string-prefix? "aarch" system) "neon")
|
((string-prefix? "aarch" system) "neon")
|
||||||
(else "no")))))
|
(else "no")))))
|
||||||
#:tests? #f ;tests try to create '.john' in the build user's $HOME
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'configure 'chdir-src
|
(add-before 'configure 'chdir-src
|
||||||
|
@ -821,7 +820,13 @@ between hosts and entries in the password store.")
|
||||||
(find-files "." ".*\\.conf")))
|
(find-files "." ".*\\.conf")))
|
||||||
(copy-recursively "rules" (string-append datadir "/rules")))
|
(copy-recursively "rules" (string-append datadir "/rules")))
|
||||||
(copy-recursively "../doc" docdir)
|
(copy-recursively "../doc" docdir)
|
||||||
#t))))))
|
#t)))
|
||||||
|
(delete 'check) ; Tests need installed .conf files; move after install
|
||||||
|
(add-after 'install 'check
|
||||||
|
(lambda args
|
||||||
|
(setenv "HOME" "/tmp") ; Some tests need to write to ~/.john
|
||||||
|
(setenv "OMP_NUM_THREADS" (number->string (parallel-job-count)))
|
||||||
|
(apply (assoc-ref %standard-phases 'check) args))))))
|
||||||
(home-page "http://www.openwall.com/john/")
|
(home-page "http://www.openwall.com/john/")
|
||||||
(synopsis "Password cracker")
|
(synopsis "Password cracker")
|
||||||
(description "John the Ripper is a fast password cracker. Its primary
|
(description "John the Ripper is a fast password cracker. Its primary
|
||||||
|
|
Reference in a new issue