diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-04-06 19:38:47 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-04-08 20:05:05 +0200 |
commit | 3101fe4b8e666f88caa1c127efc5adcefc26741a (patch) | |
tree | 477266722b4bbb7bdfaa7d7328bdacd3afa5611b | |
parent | 57627eedc883324bbc0f15cdaf453f72f90ebb39 (diff) | |
download | guix-3101fe4b8e666f88caa1c127efc5adcefc26741a.tar guix-3101fe4b8e666f88caa1c127efc5adcefc26741a.tar.gz |
gnu: bctoolbox: Run tests conditionally.
* gnu/packages/linphone.scm (bctoolbox)[arguments]: Respect the TESTS? flag in
the custom 'check phase.
-rw-r--r-- | gnu/packages/linphone.scm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm index 84bc16805c..9b9c5fcd4b 100644 --- a/gnu/packages/linphone.scm +++ b/gnu/packages/linphone.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2020, 2021 Raghav Gururajan <raghavgururajan@disroot.org> ;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr> +;;; Copyright © 2023 Ricardo Wurmus <rekado@elephly.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -176,9 +177,10 @@ writing, administering, and running unit tests in C.") (("if \\(file_exists\\(\"..\"\\)\\)") "if (NULL)")))) (replace 'check - (lambda _ - (with-directory-excursion "tester" - (invoke "./bctoolbox_tester"))))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "tester" + (invoke "./bctoolbox_tester")))))))) (inputs `(("bcunit" ,bcunit) ("decaf" ,libdecaf) |