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>
This commit is contained in:
parent
23a96055fb
commit
c2a8674614
@ -485,15 +485,15 @@ including both ARM and x86.")
|
|||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "git://git.linphone.org/belle-sip")
|
(url "https://gitlab.linphone.org/BC/public/belle-sip.git")
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1kknnlczq7dpqaj1dwxvy092dzrqjy11ndkv90rqwmdryigkjk6z"))))
|
(base32 "1kknnlczq7dpqaj1dwxvy092dzrqjy11ndkv90rqwmdryigkjk6z"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
|
(outputs '("out" "tester"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; Requires network access
|
`(#:configure-flags
|
||||||
#:configure-flags
|
|
||||||
(list "-DENABLE_STATIC=NO") ; Not required
|
(list "-DENABLE_STATIC=NO") ; Not required
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
@ -502,13 +502,43 @@ including both ARM and x86.")
|
|||||||
(substitute* "src/CMakeLists.txt"
|
(substitute* "src/CMakeLists.txt"
|
||||||
;; ANTLR would use multithreaded DFA generation otherwise,
|
;; ANTLR would use multithreaded DFA generation otherwise,
|
||||||
;; which would not be reproducible.
|
;; which would not be reproducible.
|
||||||
(("-Xmultithreaded ") ""))
|
(("-Xmultithreaded ") ""))))
|
||||||
#t)))))
|
(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
|
(inputs
|
||||||
`(("antlr3" ,antlr3-3.3)
|
`(("bctoolbox" ,bctoolbox)
|
||||||
("antlr3c" ,libantlr3c)
|
|
||||||
("bctoolbox" ,bctoolbox)
|
|
||||||
("java" ,icedtea)
|
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(synopsis "Belledonne Communications SIP Library")
|
(synopsis "Belledonne Communications SIP Library")
|
||||||
(description "Belle-sip is a modern library implementing SIP transport,
|
(description "Belle-sip is a modern library implementing SIP transport,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user