gnu: qrencode: Enable tests.

* gnu/packages/aidc.scm (qrencode)[arguments]: Add configure-flag to
build tests. Use custom 'check phase to run tests.
This commit is contained in:
Efraim Flashner 2021-03-29 00:42:19 +03:00
parent bdc72870af
commit 414fc58cef
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -117,6 +117,16 @@ formats.")
(base32
"08v9d8jn26bva2a8x4hghq3mgl8zcid393iqkidwyhc05xrxjmg4"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags '("--with-tests")
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion "tests"
(invoke "./test_basic.sh")))
#t)))))
(inputs `(("libpng" ,libpng)))
(native-inputs `(("pkg-config" ,pkg-config)))
(synopsis "Encode data into a QR Code symbol")