summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorAleksandr Vityazev <avityazev@posteo.org>2021-12-17 08:30:24 +0000
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-12-17 09:35:43 +0100
commitd29cf19bfb16bfb4092cdd0231436e360fe2aa87 (patch)
tree838c487bd35f19dfff578202a12cdb3e8ad9ea73 /gnu/packages
parentabd2a5a807454c726dcfb44b87207a549fced660 (diff)
downloadguix-d29cf19bfb16bfb4092cdd0231436e360fe2aa87.tar.gz
gnu: ableton-link: Run tests conditionally.
* gnu/packages/audio.scm (ableton-link)[arguments]: Respect TESTS? option.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/audio.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index c98490505c..05c6354e45 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -5241,11 +5241,12 @@ Rate} 3600x2250 bit/s vocoder used in various radio systems.")
        #:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda* (#:key inputs #:allow-other-keys)
-             (let* ((python (search-input-file inputs "/bin/python3"))
-                    (run-tests "../source/ci/run-tests.py"))
-               (invoke python run-tests "--target" "LinkCoreTest")
-               (invoke python run-tests "--target" "LinkDiscoveryTest"))))
+           (lambda* (#:key inputs tests? #:allow-other-keys)
+             (when tests?
+               (let* ((python (search-input-file inputs "/bin/python3"))
+                      (run-tests "../source/ci/run-tests.py"))
+                 (invoke python run-tests "--target" "LinkCoreTest")
+                 (invoke python run-tests "--target" "LinkDiscoveryTest")))))
          (add-before 'install 'patch-cmake
            (lambda* (#:key inputs #:allow-other-keys)
              (let* ((source "../source/"))