gnu: exfatprogs: Run tests.

* gnu/packages/file-systems.scm (exfatprogs)[arguments]:
Use G-Expressions.  Customise 'check phase to run the tests.

Change-Id: I645444eb1b70bb71666ce6fe905e0229007f5a54
This commit is contained in:
Tobias Geerinckx-Rice 2024-08-18 02:00:00 +02:00
parent ec48c5b2a8
commit c9a28a87e8
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -752,8 +752,22 @@ (define-public exfatprogs
(base32 "0plj52kjvhy94hdk0bq8bc7ql6yh44x76kryxhn46vwbxayv790j"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags
(list "--disable-static")))
(list
#:configure-flags
#~(list "--disable-static")
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "FSCK1" "../fsck/fsck.exfat")
;; Upstream CI uses a second FSCK provided by its host operating
;; system to verify the results of the newly-built one. That
;; makes no sense in Guix, but we can detect crashes, unexpected
;; inconsistencies, and other badness by testing with only one.
(setenv "FSCK2" (getenv "FSCK1"))
(with-directory-excursion "tests"
(invoke "./test_fsck.sh"))))))))
(native-inputs
(list autoconf automake libtool pkg-config))
(home-page "https://github.com/exfatprogs/exfatprogs")