summaryrefslogtreecommitdiff
path: root/gnu/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-06-05 23:02:20 +0200
committerLudovic Courtès <ludo@gnu.org>2022-06-05 23:35:30 +0200
commitf697dd94c4e9fe501e686146ee4c250173392565 (patch)
tree69e3348d82c2c103809eb9adcad6bed162375f55 /gnu/tests
parent1fc4d821eb3b34e06b217e94f400e13d8030e7b9 (diff)
tests: childhurd: Make sure "guix build -d" works.
* gnu/tests/virtualization.scm (run-childhurd-test) ["guix-daemon up and running"]: New test.
Diffstat (limited to 'gnu/tests')
-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))