gnu: beep: Run tests.

* gnu/packages/terminals.scm (beep)[arguments]: Remove #:tests? #f lie.
Add a new 'patch-tests phase to make them pass.
This commit is contained in:
Tobias Geerinckx-Rice 2022-01-15 02:02:26 +00:00
parent f644a04320
commit 179ffc105e
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -573,13 +573,21 @@ (define-public beep
(base32 "05c2gxfqc12rgp88c65q7f5ha9gzh222vdh0qpdq1zmyhqj43pq1"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; no tests
#:make-flags
`(#:make-flags
(list (string-append "prefix=" (assoc-ref %outputs "out"))
(string-append "pkgdocdir=$(docdir)/" ,name "-" ,version))
#:phases
(modify-phases %standard-phases
(delete 'configure)))) ; no configure script
(delete 'configure) ; no configure script
(add-before 'check 'patch-tests
(lambda _
(substitute* "GNUmakefile"
(("/bin/bash")
(which "bash")))
(substitute* (find-files "tests" "\\.expected")
;; The build environment lacks /dev/{console,tty*}.
((": Permission denied")
": No such file or directory")))))))
(synopsis "Linux command-line utility to control the PC speaker")
(description "beep allows the user to control the PC speaker with precision,
allowing different sounds to indicate different events. While it can be run