gnu: qrencode: Enable tests.
authorEfraim Flashner <efraim@flashner.co.il>
Sun, 28 Mar 2021 21:42:19 +0000 (00:42 +0300)
committerEfraim Flashner <efraim@flashner.co.il>
Sun, 28 Mar 2021 22:35:36 +0000 (01:35 +0300)
* gnu/packages/aidc.scm (qrencode)[arguments]: Add configure-flag to
build tests. Use custom 'check phase to run tests.

gnu/packages/aidc.scm

index 8bbdaca..d1b63de 100644 (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")