guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/04: gnu: qrencode: Enable tests.


From: guix-commits
Subject: 04/04: gnu: qrencode: Enable tests.
Date: Sun, 28 Mar 2021 18:36:41 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 414fc58cef4eb9c2cc18a381629d17c5adf76210
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 29 00:42:19 2021 +0300

    gnu: qrencode: Enable tests.
    
    * gnu/packages/aidc.scm (qrencode)[arguments]: Add configure-flag to
    build tests. Use custom 'check phase to run tests.
---
 gnu/packages/aidc.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index 8bbdaca..d1b63de 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]