gnu: dino: Run tests.
* gnu/packages/messaging.scm (dino)[arguments]<#:tests?>: Drop. <#:configure-flags>: Add “-DBUILD_TESTS=true”. <#:phases>: Replace ‘check’ with manual invocations of the test binaries.master
parent
fe111f404d
commit
aaf4694b9f
|
@ -1380,7 +1380,7 @@ Encryption to Gajim.")
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(outputs '("out" "debug"))
|
(outputs '("out" "debug"))
|
||||||
(arguments
|
(arguments
|
||||||
(list #:tests? #f
|
(list #:configure-flags #~(list "-DBUILD_TESTS=true")
|
||||||
#:parallel-build? #f ; not supported
|
#:parallel-build? #f ; not supported
|
||||||
#:modules '((guix build cmake-build-system)
|
#:modules '((guix build cmake-build-system)
|
||||||
((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
|
((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
|
||||||
|
@ -1399,7 +1399,13 @@ Encryption to Gajim.")
|
||||||
(wrap-program dino
|
(wrap-program dino
|
||||||
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))))
|
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))))
|
||||||
(add-after 'install 'glib-or-gtk-wrap
|
(add-after 'install 'glib-or-gtk-wrap
|
||||||
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
|
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "./libdino-test")
|
||||||
|
(invoke "./signal-protocol-vala-test")
|
||||||
|
(invoke "./xmpp-vala-test")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list gettext-minimal
|
(list gettext-minimal
|
||||||
`(,glib "bin")
|
`(,glib "bin")
|
||||||
|
|
Reference in New Issue