path: root/tests/import-utils.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-04-23 17:48:13 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-05-07 19:29:35 +0300
commit22e2016bd17ae2372fe35801e8656ee6289d7b7c (patch)
treed3295dc22e0f9bd65bec1943761d00df5fc5917e /tests/import-utils.scm
parent016dcbe6b9a215fb72aa70ed02dbbf537131d83d (diff)
downloadguix-22e2016bd17ae2372fe35801e8656ee6289d7b7c.tar.gz
guix-22e2016bd17ae2372fe35801e8656ee6289d7b7c.zip
gnu: Add rust-calloop-0.10.
* gnu/packages/crates-io.scm (rust-calloop-0.10): New variable. (rust-calloop-0.9): Inherit from rust-calloop-0.10.
Diffstat (limited to 'tests/import-utils.scm')
0 files changed, 0 insertions, 0 deletions
ervices audio) #:use-module (gnu packages mpd) #:use-module (guix gexp) #:export (%test-mpd)) (define %mpd-os (simple-operating-system (service mpd-service-type (mpd-configuration (user "root"))))) (define (run-mpd-test) "Run tests in %mpd-os, which has mpd running." (define os (marionette-operating-system %mpd-os #:imported-modules '((gnu services herd)))) (define vm (virtual-machine os)) (define test (with-imported-modules '((gnu build marionette)) #~(begin (use-modules (srfi srfi-64) (gnu build marionette)) (define marionette (make-marionette (list #$vm))) (mkdir #$output) (chdir #$output) (test-begin "mpd") (test-assert "service is running" (marionette-eval '(begin (use-modules (gnu services herd)) (start-service 'mpd)) marionette)) (test-assert "mpc connect" (marionette-eval '(zero? (system #$(file-append mpd-mpc "/bin/mpc"))) marionette)) (test-end) (exit (= (test-runner-fail-count (test-runner-current)) 0))))) (gexp->derivation "mpd-test" test)) (define %test-mpd (system-test (name "mpd") (description "Test that the mpd can run and be connected to.") (value (run-mpd-test))))