[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/19: gnu: belle-sip: Enable tests.
From: |
guix-commits |
Subject: |
10/19: gnu: belle-sip: Enable tests. |
Date: |
Mon, 29 Mar 2021 01:44:05 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit c2a86746142fd51f53f3006dce5420d23ea36fef
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Tue Mar 16 13:25:14 2021 -0400
gnu: belle-sip: Enable tests.
* gnu/packages/linphone.scm (belle-sip)[outputs]: New "tester" output.
[tests?]: Remove argument, enabling tests.
[phases]{check}: Override phase.
{separate-outputs}: New phase.
[inputs]: Remove antlr3, anttlr3c and java.
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/linphone.scm | 48 ++++++++++++++++++++++++++++++++++++++---------
1 file changed, 39 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm
index 6f7634e..ec35ad4 100644
--- a/gnu/packages/linphone.scm
+++ b/gnu/packages/linphone.scm
@@ -485,15 +485,15 @@ including both ARM and x86.")
(origin
(method git-fetch)
(uri (git-reference
- (url "git://git.linphone.org/belle-sip")
+ (url "https://gitlab.linphone.org/BC/public/belle-sip.git")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1kknnlczq7dpqaj1dwxvy092dzrqjy11ndkv90rqwmdryigkjk6z"))))
(build-system cmake-build-system)
+ (outputs '("out" "tester"))
(arguments
- `(#:tests? #f ; Requires network access
- #:configure-flags
+ `(#:configure-flags
(list "-DENABLE_STATIC=NO") ; Not required
#:phases
(modify-phases %standard-phases
@@ -502,13 +502,43 @@ including both ARM and x86.")
(substitute* "src/CMakeLists.txt"
;; ANTLR would use multithreaded DFA generation otherwise,
;; which would not be reproducible.
- (("-Xmultithreaded ") ""))
- #t)))))
+ (("-Xmultithreaded ") ""))))
+ (delete 'check) ;move after install
+ (add-after 'install 'separate-outputs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (tester (assoc-ref outputs "tester"))
+ (tester-name "belle_sip_tester"))
+ (for-each mkdir-p (list (string-append tester "/bin")
+ (string-append tester "/share")))
+ (rename-file (string-append out "/bin")
+ (string-append tester "/bin"))
+ (rename-file (string-append out "/share/" tester-name)
+ (string-append tester "/share/" tester-name)))))
+ (add-after 'separate-outputs 'check
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((tester (string-append (assoc-ref outputs "tester")
+ "/bin/belle_sip_tester")))
+ (for-each (lambda (suite-name)
+ (invoke tester "--suite" suite-name))
+ (list "Object inheritance"
+ "SIP URI"
+ "FAST SIP URI"
+ "FAST SIP URI 2"
+ "Generic uri"
+ "Headers"
+ "Core"
+ "SDP"
+ ;;"Resolver"
+ "Message"
+ "Authentication helper"
+ ;;"Register"
+ ;;"Dialog"
+ "Refresher"
+ ;;"HTTP stack"
+ "Object"))))))))
(inputs
- `(("antlr3" ,antlr3-3.3)
- ("antlr3c" ,libantlr3c)
- ("bctoolbox" ,bctoolbox)
- ("java" ,icedtea)
+ `(("bctoolbox" ,bctoolbox)
("zlib" ,zlib)))
(synopsis "Belledonne Communications SIP Library")
(description "Belle-sip is a modern library implementing SIP transport,
- 11/19: gnu: belle-sip: Enable mDNS support., (continued)
- 11/19: gnu: belle-sip: Enable mDNS support., guix-commits, 2021/03/29
- 16/19: gnu: msopenh264: Update to 1.2.1-21., guix-commits, 2021/03/29
- 04/19: gnu: bzrtp: Update to 4.4.34 and enable tests., guix-commits, 2021/03/29
- 07/19: gnu: mediastreamer2: Enable tests., guix-commits, 2021/03/29
- 18/19: gnu: mswebrtc: Update to 1.1.1-23., guix-commits, 2021/03/29
- 13/19: gnu: liblinphone: Update to 4.4.34., guix-commits, 2021/03/29
- 03/19: gnu: belcard: Update to 4.4.34 and enable tests., guix-commits, 2021/03/29
- 12/19: gnu: Add lime., guix-commits, 2021/03/29
- 02/19: gnu: belr: Update to 4.4.34 and enable tests., guix-commits, 2021/03/29
- 14/19: gnu: liblinphone: Enable LDAP support., guix-commits, 2021/03/29
- 10/19: gnu: belle-sip: Enable tests.,
guix-commits <=
- 15/19: gnu: linphoneqt: Update to 4.2.5 and rename to linphone-desktop., guix-commits, 2021/03/29
- 08/19: gnu: mediastreamer2: Enable PCAP, port-audio and G729B support., guix-commits, 2021/03/29
- 09/19: gnu: belle-sip: Update to 4.4.34., guix-commits, 2021/03/29
- 05/19: gnu: ortp: Update to 4.4.34., guix-commits, 2021/03/29
- 17/19: gnu: mssilk: Update to 1.1.1-8., guix-commits, 2021/03/29