summaryrefslogtreecommitdiff
path: root/gnu/tests/virtualization.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/tests/virtualization.scm')
-rw-r--r--gnu/tests/virtualization.scm20
1 files changed, 19 insertions, 1 deletions
diff --git a/gnu/tests/virtualization.scm b/gnu/tests/virtualization.scm
index 0453f38e5e0..299acc49453 100644
--- a/gnu/tests/virtualization.scm
+++ b/gnu/tests/virtualization.scm
@@ -31,8 +31,8 @@
31 #:use-module (gnu services dbus) 31 #:use-module (gnu services dbus)
32 #:use-module (gnu services networking) 32 #:use-module (gnu services networking)
33 #:use-module (gnu services virtualization) 33 #:use-module (gnu services virtualization)
34 #:use-module (gnu packages virtualization)
35 #:use-module (gnu packages ssh) 34 #:use-module (gnu packages ssh)
35 #:use-module (gnu packages virtualization)
36 #:use-module (guix gexp) 36 #:use-module (guix gexp)
37 #:use-module (guix records) 37 #:use-module (guix records)
38 #:use-module (guix store) 38 #:use-module (guix store)
@@ -245,6 +245,24 @@
245 (open-input-pipe #$(run-command-over-ssh "uname" "-on")))) 245 (open-input-pipe #$(run-command-over-ssh "uname" "-on"))))
246 marionette)) 246 marionette))
247 247
248 (test-assert "guix-daemon up and running"
249 (let ((drv (marionette-eval
250 '(begin
251 (use-modules (ice-9 popen))
252
253 (get-string-all
254 (open-input-pipe
255 #$(run-command-over-ssh "guix" "build" "coreutils"
256 "--no-grafts" "-d"))))
257 marionette)))
258 ;; We cannot compare the .drv with (raw-derivation-file
259 ;; coreutils) on the host: they may differ due to fixed-output
260 ;; derivations and changes introduced compared to the 'guix'
261 ;; package snapshot.
262 (and (string-suffix? ".drv"
263 (pk 'drv (string-trim-right drv)))
264 drv)))
265
248 (test-end)))) 266 (test-end))))
249 267
250 (gexp->derivation "childhurd-test" test)) 268 (gexp->derivation "childhurd-test" test))