me
/
guix
Archived
1
0
Fork 0

gnu: bctoolbox: Run tests conditionally.

* gnu/packages/linphone.scm (bctoolbox)[arguments]: Respect the TESTS? flag in
the custom 'check phase.
master
Ricardo Wurmus 2023-04-06 19:38:47 +02:00
parent 57627eedc8
commit 3101fe4b8e
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 5 additions and 3 deletions

View File

@ -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)