mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: onionshare: Run tests conditionally.
* gnu/packages/tor.scm (onionshare)[arguments]: Respect TESTS?.
This commit is contained in:
parent
cab90f0832
commit
7eb9b6ed6c
1 changed files with 13 additions and 12 deletions
|
@ -339,18 +339,19 @@ OnionShare.")
|
||||||
(display line out)
|
(display line out)
|
||||||
(loop))))))))))
|
(loop))))))))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
;; Some tests need a writable homedir:
|
(when tests?
|
||||||
(setenv "HOME" "/tmp")
|
;; Some tests need a writable homedir:
|
||||||
;; Ensure installed modules can be found:
|
(setenv "HOME" "/tmp")
|
||||||
(add-installed-pythonpath inputs outputs)
|
;; Ensure installed modules can be found:
|
||||||
;; Avoid `getprotobyname` issues:
|
(add-installed-pythonpath inputs outputs)
|
||||||
(setenv "EVENTLET_NO_GREENDNS" "yes")
|
;; Avoid `getprotobyname` issues:
|
||||||
;; Make Qt render "offscreen":
|
(setenv "EVENTLET_NO_GREENDNS" "yes")
|
||||||
(setenv "QT_QPA_PLATFORM" "offscreen")
|
;; Make Qt render "offscreen":
|
||||||
;; Must be run from "desktop" dir:
|
(setenv "QT_QPA_PLATFORM" "offscreen")
|
||||||
(chdir "..")
|
;; Must be run from "desktop" dir:
|
||||||
(invoke "./tests/run.sh")))
|
(with-directory-excursion ".."
|
||||||
|
(invoke "./tests/run.sh")))))
|
||||||
(add-after 'install 'install-data
|
(add-after 'install 'install-data
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue