mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
tests: Adjust to SRFI-64 as found in Guile 3.0.7.
In Guile 3.0.7, 'test-runner-current' is set to #f upon 'test-end'. Consequently, the previous strategy, where we'd call 'test-runner-current' after 'test-end', no longer works. Instead, set the test runner in each test right before 'test-begin'. * gnu/build/marionette.scm (system-test-runner): New procedure. * gnu/tests/audio.scm (run-mpd-test): Replace (exit (= ...)) idiom by (test-runner-current (system-test-runner)). * gnu/tests/base.scm (run-basic-test) (run-cleanup-test, run-mcron-test, run-nss-mdns-test): Likewise. * gnu/tests/ci.scm (run-laminar-test): Likewise. * gnu/tests/cups.scm (run-cups-test): Likewise. * gnu/tests/databases.scm (run-memcached-test) (run-postgresql-test, run-mysql-test): Likewise. * gnu/tests/desktop.scm (run-elogind-test): Likewise. * gnu/tests/dict.scm (run-dicod-test): Likewise. * gnu/tests/docker.scm (run-docker-test): Likewise. (run-docker-system-test): Likewise. * gnu/tests/file-sharing.scm (run-transmission-daemon-test): Likewise. * gnu/tests/ganeti.scm (run-ganeti-test): Likewise. * gnu/tests/guix.scm (run-guix-build-coordinator-test): Likewise. (run-guix-data-service-test): Likewise. * gnu/tests/ldap.scm (run-ldap-test): Likewise. * gnu/tests/linux-modules.scm (run-loadable-kernel-modules-test-base): Likewise. * gnu/tests/mail.scm (run-opensmtpd-test) (run-exim-test, run-dovecot-test, run-getmail-test): Likewise. * gnu/tests/messaging.scm (run-xmpp-test) (run-bitlbee-test, run-quassel-test): Likewise. * gnu/tests/monitoring.scm (run-prometheus-node-exporter-server-test) (run-zabbix-server-test): Likewise. * gnu/tests/networking.scm (run-inetd-test, run-openvswitch-test) (run-dhcpd-test, run-tor-test, run-iptables-test, run-ipfs-test): Likewise. * gnu/tests/nfs.scm (run-nfs-test) (run-nfs-server-test, run-nfs-root-fs-test): Likewise. * gnu/tests/package-management.scm (run-nix-test): Likewise. * gnu/tests/reconfigure.scm (run-switch-to-system-test) (run-upgrade-services-test, run-install-bootloader-test): Likewise. * gnu/tests/rsync.scm (run-rsync-test): Likewise. * gnu/tests/security-token.scm (run-pcscd-test): Likewise. * gnu/tests/singularity.scm (run-singularity-test): Likewise. * gnu/tests/ssh.scm (run-ssh-test): Likewise. * gnu/tests/telephony.scm (run-jami-test): Likewise. * gnu/tests/version-control.scm (run-cgit-test): Likewise. (run-git-http-test, run-gitolite-test, run-gitile-test): Likewise. * gnu/tests/virtualization.scm (run-libvirt-test, run-childhurd-test): Likewise. * gnu/tests/web.scm (run-webserver-test, run-php-fpm-test) (run-hpcguix-web-server-test, run-tailon-test, run-patchwork-test): Likewise.
This commit is contained in:
parent
df46bef48e
commit
1fb75128a5
29 changed files with 155 additions and 132 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2018 Chris Marusich <cmmarusich@gmail.com>
|
;;; Copyright © 2018 Chris Marusich <cmmarusich@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -20,6 +20,7 @@
|
||||||
(define-module (gnu build marionette)
|
(define-module (gnu build marionette)
|
||||||
#:use-module (srfi srfi-9)
|
#:use-module (srfi srfi-9)
|
||||||
#:use-module (srfi srfi-26)
|
#:use-module (srfi srfi-26)
|
||||||
|
#:use-module (srfi srfi-64)
|
||||||
#:use-module (rnrs io ports)
|
#:use-module (rnrs io ports)
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module (ice-9 popen)
|
#:use-module (ice-9 popen)
|
||||||
|
@ -33,7 +34,9 @@
|
||||||
marionette-screen-text
|
marionette-screen-text
|
||||||
wait-for-screen-text
|
wait-for-screen-text
|
||||||
%qwerty-us-keystrokes
|
%qwerty-us-keystrokes
|
||||||
marionette-type))
|
marionette-type
|
||||||
|
|
||||||
|
system-test-runner))
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;;
|
;;;
|
||||||
|
@ -358,4 +361,21 @@ to actual keystrokes."
|
||||||
(for-each (cut marionette-control <> marionette)
|
(for-each (cut marionette-control <> marionette)
|
||||||
(string->keystroke-commands str keystrokes)))
|
(string->keystroke-commands str keystrokes)))
|
||||||
|
|
||||||
|
|
||||||
|
;;;
|
||||||
|
;;; Test helper.
|
||||||
|
;;;
|
||||||
|
|
||||||
|
(define (system-test-runner)
|
||||||
|
"Return a SRFI-64 test runner that calls 'exit' upon 'test-end'."
|
||||||
|
(let ((runner (test-runner-simple)))
|
||||||
|
;; On 'test-end', display test results and exit with zero if and only if
|
||||||
|
;; there were no test failures.
|
||||||
|
(test-runner-on-final! runner
|
||||||
|
(lambda (runner)
|
||||||
|
(let ((success? (= (test-runner-fail-count runner) 0)))
|
||||||
|
(test-on-final-simple runner)
|
||||||
|
(exit success?))))
|
||||||
|
runner))
|
||||||
|
|
||||||
;;; marionette.scm ends here
|
;;; marionette.scm ends here
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "mpd")
|
(test-begin "mpd")
|
||||||
|
|
||||||
(test-assert "service is running"
|
(test-assert "service is running"
|
||||||
|
@ -70,8 +71,7 @@
|
||||||
'(system* #$(file-append mpd-mpc "/bin/mpc"))
|
'(system* #$(file-append mpd-mpc "/bin/mpc"))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
(gexp->derivation "mpd-test" test))
|
(gexp->derivation "mpd-test" test))
|
||||||
|
|
||||||
(define %test-mpd
|
(define %test-mpd
|
||||||
|
|
|
@ -97,6 +97,7 @@ Otherwise assume that there is no password for root."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "basic")
|
(test-begin "basic")
|
||||||
|
|
||||||
#$(and initialization
|
#$(and initialization
|
||||||
|
@ -505,8 +506,7 @@ info --version")
|
||||||
"root@"
|
"root@"
|
||||||
#$(operating-system-host-name os))))))
|
#$(operating-system-host-name os))))))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation name test))
|
(gexp->derivation name test))
|
||||||
|
|
||||||
|
@ -645,6 +645,7 @@ in a loop. See <http://bugs.gnu.org/26931>.")
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "cleanup")
|
(test-begin "cleanup")
|
||||||
|
|
||||||
(test-assert "dirty service worked"
|
(test-assert "dirty service worked"
|
||||||
|
@ -657,8 +658,7 @@ in a loop. See <http://bugs.gnu.org/26931>.")
|
||||||
(scandir "/tmp"))
|
(scandir "/tmp"))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "cleanup" test))
|
(gexp->derivation "cleanup" test))
|
||||||
|
|
||||||
|
@ -716,6 +716,7 @@ non-ASCII names from /tmp.")
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "mcron")
|
(test-begin "mcron")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -752,8 +753,7 @@ non-ASCII names from /tmp.")
|
||||||
result)
|
result)
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation name test))
|
(gexp->derivation name test))
|
||||||
|
|
||||||
|
@ -824,6 +824,7 @@ non-ASCII names from /tmp.")
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "avahi")
|
(test-begin "avahi")
|
||||||
|
|
||||||
(test-assert "nscd PID file is created"
|
(test-assert "nscd PID file is created"
|
||||||
|
@ -902,8 +903,7 @@ non-ASCII names from /tmp.")
|
||||||
(= (hostent:addrtype result) AF_INET)))))
|
(= (hostent:addrtype result) AF_INET)))))
|
||||||
|
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "nss-mdns" test))
|
(gexp->derivation "nss-mdns" test))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2017, 2018, 2019, 2020, 2021 Christopher Baines <mail@cbaines.net>
|
;;; Copyright © 2017, 2018, 2019, 2020, 2021 Christopher Baines <mail@cbaines.net>
|
||||||
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
|
;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
|
||||||
|
@ -73,6 +73,7 @@ HTTP-PORT."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "laminar")
|
(test-begin "laminar")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -116,8 +117,7 @@ HTTP-PORT."
|
||||||
#:times 10
|
#:times 10
|
||||||
#:delay 5))
|
#:delay 5))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "laminar-test" test))
|
(gexp->derivation "laminar-test" test))
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "cups")
|
(test-begin "cups")
|
||||||
|
|
||||||
;; Wait for the web interface to become ready.
|
;; Wait for the web interface to become ready.
|
||||||
|
@ -80,8 +81,7 @@
|
||||||
#:decode-body? #t)))
|
#:decode-body? #t)))
|
||||||
(response-code response)))
|
(response-code response)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "cups-test" test))
|
(gexp->derivation "cups-test" test))
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "memcached")
|
(test-begin "memcached")
|
||||||
|
|
||||||
;; Wait for memcached to be up and running.
|
;; Wait for memcached to be up and running.
|
||||||
|
@ -115,8 +116,7 @@
|
||||||
'(file-exists? "/var/log/memcached")
|
'(file-exists? "/var/log/memcached")
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "memcached-test" test))
|
(gexp->derivation "memcached-test" test))
|
||||||
|
|
||||||
|
@ -182,6 +182,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "postgresql")
|
(test-begin "postgresql")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -241,8 +242,7 @@
|
||||||
(string-contains output "1")))
|
(string-contains output "1")))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "postgresql-test" test))
|
(gexp->derivation "postgresql-test" test))
|
||||||
|
|
||||||
|
@ -286,6 +286,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "mysql")
|
(test-begin "mysql")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -341,8 +342,7 @@
|
||||||
output))
|
output))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "mysql-test" test))
|
(gexp->derivation "mysql-test" test))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -46,6 +46,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "elogind")
|
(test-begin "elogind")
|
||||||
|
|
||||||
;; Log in as root on tty1, and check what 'loginctl' returns.
|
;; Log in as root on tty1, and check what 'loginctl' returns.
|
||||||
|
@ -83,8 +84,7 @@
|
||||||
(guest-file "/root/seats")
|
(guest-file "/root/seats")
|
||||||
(guest-file "/root/users")))))
|
(guest-file "/root/users")))))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "elogind" test))
|
(gexp->derivation "elogind" test))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017, 2018, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -82,6 +82,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "dicod")
|
(test-begin "dicod")
|
||||||
|
|
||||||
;; Wait for the service to be started.
|
;; Wait for the service to be started.
|
||||||
|
@ -117,8 +118,7 @@
|
||||||
(string-contains result "hello")
|
(string-contains result "hello")
|
||||||
result))))
|
result))))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "dicod" test))
|
(gexp->derivation "dicod" test))
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,7 @@ inside %DOCKER-OS."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "docker")
|
(test-begin "docker")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -143,8 +144,7 @@ inside %DOCKER-OS."
|
||||||
(string->number response4))))
|
(string->number response4))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "docker-test" test))
|
(gexp->derivation "docker-test" test))
|
||||||
|
|
||||||
|
@ -224,6 +224,7 @@ inside %DOCKER-OS."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "docker")
|
(test-begin "docker")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -288,8 +289,7 @@ inside %DOCKER-OS."
|
||||||
"status" "guix-daemon")))
|
"status" "guix-daemon")))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "docker-system-test" test))
|
(gexp->derivation "docker-system-test" test))
|
||||||
|
|
||||||
|
|
|
@ -94,6 +94,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "transmission-daemon")
|
(test-begin "transmission-daemon")
|
||||||
|
|
||||||
;; Make sure the "transmission" user and group have been created.
|
;; Make sure the "transmission" user and group have been created.
|
||||||
|
@ -259,8 +260,7 @@
|
||||||
"--auth" auth-string
|
"--auth" auth-string
|
||||||
"--session-info"))))))
|
"--session-info"))))))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "transmission-daemon-test" test))
|
(gexp->derivation "transmission-daemon-test" test))
|
||||||
|
|
||||||
|
|
|
@ -120,6 +120,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "ganeti")
|
(test-begin "ganeti")
|
||||||
|
|
||||||
;; Ganeti uses the Shepherd to start/stop daemons, so make sure
|
;; Ganeti uses the Shepherd to start/stop daemons, so make sure
|
||||||
|
@ -248,8 +249,7 @@
|
||||||
"destroy" "--yes-do-it"))
|
"destroy" "--yes-do-it"))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 1)))))
|
|
||||||
|
|
||||||
(gexp->derivation (string-append "ganeti-" hypervisor "-test") test))
|
(gexp->derivation (string-append "ganeti-" hypervisor "-test") test))
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "guix-build-coordinator")
|
(test-begin "guix-build-coordinator")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -99,8 +100,7 @@
|
||||||
#:decode-body? #t)))
|
#:decode-body? #t)))
|
||||||
(response-code response)))
|
(response-code response)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "guix-build-coordinator-test" test))
|
(gexp->derivation "guix-build-coordinator-test" test))
|
||||||
|
|
||||||
|
@ -202,6 +202,7 @@ host all all ::1/128 trust"))))))
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "guix-data-service")
|
(test-begin "guix-data-service")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -235,8 +236,7 @@ host all all ::1/128 trust"))))))
|
||||||
#:decode-body? #t)))
|
#:decode-body? #t)))
|
||||||
(response-code response)))
|
(response-code response)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "guix-data-service-test" test))
|
(gexp->derivation "guix-data-service-test" test))
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "ldap")
|
(test-begin "ldap")
|
||||||
|
|
||||||
;; Set up LDAP directory server
|
;; Set up LDAP directory server
|
||||||
|
@ -148,8 +149,7 @@ suffix = dc=example,dc=com")))
|
||||||
#$(file-append coreutils "/bin/true")))
|
#$(file-append coreutils "/bin/true")))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "ldap-test" test))
|
(gexp->derivation "ldap-test" test))
|
||||||
|
|
||||||
|
|
|
@ -76,23 +76,29 @@ that MODULES are actually loaded."
|
||||||
(marionette-operating-system
|
(marionette-operating-system
|
||||||
base-os
|
base-os
|
||||||
#:imported-modules '((guix combinators))))
|
#:imported-modules '((guix combinators))))
|
||||||
|
|
||||||
(define vm (virtual-machine os))
|
(define vm (virtual-machine os))
|
||||||
|
|
||||||
(define (test script)
|
(define (test script)
|
||||||
(with-imported-modules '((gnu build marionette))
|
(with-imported-modules '((gnu build marionette))
|
||||||
#~(begin
|
#~(begin
|
||||||
(use-modules (gnu build marionette)
|
(use-modules (gnu build marionette)
|
||||||
(srfi srfi-64))
|
(srfi srfi-64))
|
||||||
|
|
||||||
(define marionette
|
(define marionette
|
||||||
(make-marionette (list #$vm)))
|
(make-marionette (list #$vm)))
|
||||||
|
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "loadable-kernel-modules")
|
(test-begin "loadable-kernel-modules")
|
||||||
(test-assert "script successfully evaluated"
|
(test-assert "script successfully evaluated"
|
||||||
(marionette-eval
|
(marionette-eval
|
||||||
'(primitive-load #$script)
|
'(primitive-load #$script)
|
||||||
marionette))
|
marionette))
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
(gexp->derivation "loadable-kernel-modules"
|
(gexp->derivation "loadable-kernel-modules"
|
||||||
(test (modules-loaded?-program os module-names))))
|
(test (modules-loaded?-program os module-names))))
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2016 Sou Bunnbu <iyzsong@member.fsf.org>
|
;;; Copyright © 2016 Sou Bunnbu <iyzsong@member.fsf.org>
|
||||||
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
|
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
|
||||||
;;; Copyright © 2017, 2020 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
|
;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
|
||||||
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;; Copyright © 2019 Christopher Baines <mail@cbaines.net>
|
;;; Copyright © 2019 Christopher Baines <mail@cbaines.net>
|
||||||
|
@ -88,6 +88,7 @@ match from any for local action inbound
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "opensmptd")
|
(test-begin "opensmptd")
|
||||||
|
|
||||||
(test-assert "service is running"
|
(test-assert "service is running"
|
||||||
|
@ -157,8 +158,7 @@ match from any for local action inbound
|
||||||
(sleep 1) (wait (- n 1))))))
|
(sleep 1) (wait (- n 1))))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "opensmtpd-test" test))
|
(gexp->derivation "opensmtpd-test" test))
|
||||||
|
|
||||||
|
@ -233,6 +233,7 @@ acl_check_data:
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "exim")
|
(test-begin "exim")
|
||||||
|
|
||||||
(test-assert "service is running"
|
(test-assert "service is running"
|
||||||
|
@ -285,8 +286,7 @@ acl_check_data:
|
||||||
(lambda (x) (not (string-prefix? "." x))))))
|
(lambda (x) (not (string-prefix? "." x))))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "exim-test" test))
|
(gexp->derivation "exim-test" test))
|
||||||
|
|
||||||
|
@ -341,6 +341,7 @@ Subject: Hello Nice to meet you!")
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "dovecot")
|
(test-begin "dovecot")
|
||||||
|
|
||||||
;; Wait for dovecot to be up and running.
|
;; Wait for dovecot to be up and running.
|
||||||
|
@ -399,8 +400,7 @@ Subject: Hello Nice to meet you!")
|
||||||
get-string-all)))))
|
get-string-all)))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "dovecot-test" test))
|
(gexp->derivation "dovecot-test" test))
|
||||||
|
|
||||||
|
@ -492,6 +492,7 @@ Subject: Hello Nice to meet you!")
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "getmail")
|
(test-begin "getmail")
|
||||||
|
|
||||||
;; Wait for dovecot to be up and running.
|
;; Wait for dovecot to be up and running.
|
||||||
|
@ -577,8 +578,7 @@ Subject: Hello Nice to meet you!")
|
||||||
marionette)
|
marionette)
|
||||||
message))
|
message))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "getmail-test" test))
|
(gexp->derivation "getmail-test" test))
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;; Copyright © 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017, 2018, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -101,6 +101,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "xmpp")
|
(test-begin "xmpp")
|
||||||
|
|
||||||
;; Wait for XMPP service to be up and running.
|
;; Wait for XMPP service to be up and running.
|
||||||
|
@ -128,8 +129,7 @@
|
||||||
(system* freetalk-bin "-s" #$script.ft)
|
(system* freetalk-bin "-s" #$script.ft)
|
||||||
(host-wait-for-file #$witness)))
|
(host-wait-for-file #$witness)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation name test))
|
(gexp->derivation name test))
|
||||||
|
|
||||||
|
@ -194,6 +194,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "bitlbee")
|
(test-begin "bitlbee")
|
||||||
|
|
||||||
(test-assert "service started"
|
(test-assert "service started"
|
||||||
|
@ -231,8 +232,7 @@
|
||||||
(->bool (string-contains (pk 'message (read-line sock))
|
(->bool (string-contains (pk 'message (read-line sock))
|
||||||
"BitlBee"))))
|
"BitlBee"))))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "bitlbee-test" test))
|
(gexp->derivation "bitlbee-test" test))
|
||||||
|
|
||||||
|
@ -267,6 +267,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "quassel")
|
(test-begin "quassel")
|
||||||
|
|
||||||
(test-assert "service started"
|
(test-assert "service started"
|
||||||
|
@ -281,8 +282,7 @@
|
||||||
'(file-exists? "/var/lib/quassel/quasselCert.pem")
|
'(file-exists? "/var/lib/quassel/quasselCert.pem")
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "quassel-test" test))
|
(gexp->derivation "quassel-test" test))
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin #$name)
|
(test-begin #$name)
|
||||||
|
|
||||||
(test-assert "prometheus-node-exporter running"
|
(test-assert "prometheus-node-exporter running"
|
||||||
|
@ -87,8 +88,7 @@
|
||||||
(http-get "http://localhost:8080")))
|
(http-get "http://localhost:8080")))
|
||||||
(response-code response))))
|
(response-code response))))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation (string-append name "-test") test))
|
(gexp->derivation (string-append name "-test") test))
|
||||||
|
|
||||||
|
@ -168,6 +168,7 @@ cat ~a | sudo -u zabbix psql zabbix;
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin #$name)
|
(test-begin #$name)
|
||||||
|
|
||||||
;; XXX: Shepherd reads the config file *before* binding its control
|
;; XXX: Shepherd reads the config file *before* binding its control
|
||||||
|
@ -296,9 +297,7 @@ zabbix||{}
|
||||||
(test-url "/")
|
(test-url "/")
|
||||||
(test-url "/does-not-exist" 404))
|
(test-url "/does-not-exist" 404))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
|
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation (string-append name "-test") test))
|
(gexp->derivation (string-append name "-test") test))
|
||||||
|
|
||||||
|
|
|
@ -107,6 +107,7 @@ port 7, and a dict service on port 2628."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "inetd")
|
(test-begin "inetd")
|
||||||
|
|
||||||
;; Make sure the PID file is created.
|
;; Make sure the PID file is created.
|
||||||
|
@ -137,8 +138,7 @@ port 7, and a dict service on port 2628."
|
||||||
(close dict)
|
(close dict)
|
||||||
response)))
|
response)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "inetd-test" test))
|
(gexp->derivation "inetd-test" test))
|
||||||
|
|
||||||
|
@ -207,6 +207,7 @@ port 7, and a dict service on port 2628."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "openvswitch")
|
(test-begin "openvswitch")
|
||||||
|
|
||||||
;; Make sure the bridge is created.
|
;; Make sure the bridge is created.
|
||||||
|
@ -244,8 +245,7 @@ port 7, and a dict service on port 2628."
|
||||||
(current-services))))
|
(current-services))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "openvswitch-test" test))
|
(gexp->derivation "openvswitch-test" test))
|
||||||
|
|
||||||
|
@ -307,6 +307,7 @@ subnet 192.168.1.0 netmask 255.255.255.0 {
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "dhcpd")
|
(test-begin "dhcpd")
|
||||||
|
|
||||||
(test-assert "pid file exists"
|
(test-assert "pid file exists"
|
||||||
|
@ -339,8 +340,7 @@ subnet 192.168.1.0 netmask 255.255.255.0 {
|
||||||
(current-services))))
|
(current-services))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "dhcpd-test" test))
|
(gexp->derivation "dhcpd-test" test))
|
||||||
|
|
||||||
|
@ -402,6 +402,7 @@ subnet 192.168.1.0 netmask 255.255.255.0 {
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "tor")
|
(test-begin "tor")
|
||||||
|
|
||||||
;; Test the usual Tor service.
|
;; Test the usual Tor service.
|
||||||
|
@ -433,8 +434,7 @@ subnet 192.168.1.0 netmask 255.255.255.0 {
|
||||||
(wait-for-unix-socket "/var/run/tor/socks-sock"
|
(wait-for-unix-socket "/var/run/tor/socks-sock"
|
||||||
marionette/unix-socks-socket)))
|
marionette/unix-socks-socket)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "tor-test" test))
|
(gexp->derivation "tor-test" test))
|
||||||
|
|
||||||
|
@ -529,6 +529,7 @@ COMMIT
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "iptables")
|
(test-begin "iptables")
|
||||||
|
|
||||||
(test-equal "iptables-save dumps the same rules that were loaded"
|
(test-equal "iptables-save dumps the same rules that were loaded"
|
||||||
|
@ -557,8 +558,7 @@ COMMIT
|
||||||
;; marionette)
|
;; marionette)
|
||||||
;; (wait-for-tcp-port inetd-echo-port marionette #:timeout 5)))
|
;; (wait-for-tcp-port inetd-echo-port marionette #:timeout 5)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "iptables" test))
|
(gexp->derivation "iptables" test))
|
||||||
|
|
||||||
|
@ -625,6 +625,7 @@ COMMIT
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "ipfs")
|
(test-begin "ipfs")
|
||||||
|
|
||||||
;; Test the IPFS service.
|
;; Test the IPFS service.
|
||||||
|
@ -644,8 +645,7 @@ COMMIT
|
||||||
test-bv
|
test-bv
|
||||||
(read-contents (add-data test-bv)))
|
(read-contents (add-data test-bv)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
(gexp->derivation "ipfs-test" test))
|
(gexp->derivation "ipfs-test" test))
|
||||||
|
|
||||||
(define %test-ipfs
|
(define %test-ipfs
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2016, 2017, 2020 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2016, 2017, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
|
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
|
||||||
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
|
@ -95,6 +95,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "rpc-daemon")
|
(test-begin "rpc-daemon")
|
||||||
|
|
||||||
;; Wait for the rpcbind daemon to be up and running.
|
;; Wait for the rpcbind daemon to be up and running.
|
||||||
|
@ -130,8 +131,7 @@
|
||||||
'(zero? (system* "rpcinfo" "-p"))
|
'(zero? (system* "rpcinfo" "-p"))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation name test))
|
(gexp->derivation name test))
|
||||||
|
|
||||||
|
@ -201,6 +201,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "nfs-daemon")
|
(test-begin "nfs-daemon")
|
||||||
(marionette-eval
|
(marionette-eval
|
||||||
'(begin
|
'(begin
|
||||||
|
@ -252,8 +253,7 @@
|
||||||
"nfs-server:/" "/remote" "-v"))
|
"nfs-server:/" "/remote" "-v"))
|
||||||
(file-exists? "/remote/hello")))
|
(file-exists? "/remote/hello")))
|
||||||
marionette))
|
marionette))
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "nfs-server-test" test))
|
(gexp->derivation "nfs-server-test" test))
|
||||||
|
|
||||||
|
@ -313,6 +313,7 @@ directories can be mounted.")
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "start-nfs-boot-test")
|
(test-begin "start-nfs-boot-test")
|
||||||
|
|
||||||
;;; Start up NFS server host.
|
;;; Start up NFS server host.
|
||||||
|
@ -401,8 +402,7 @@ directories can be mounted.")
|
||||||
(call-with-input-file "/export/mounts" display))
|
(call-with-input-file "/export/mounts" display))
|
||||||
server-marionette)
|
server-marionette)
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "nfs-root-fs-test" test))
|
(gexp->derivation "nfs-root-fs-test" test))
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin #$name)
|
(test-begin #$name)
|
||||||
|
|
||||||
;; XXX: Shepherd reads the config file *before* binding its control
|
;; XXX: Shepherd reads the config file *before* binding its control
|
||||||
|
@ -105,9 +106,7 @@ derivation {
|
||||||
"guix-test.nix")))
|
"guix-test.nix")))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
|
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation (string-append name "-test") test))
|
(gexp->derivation (string-append name "-test") test))
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,7 @@ generation of the system profile."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "switch-to-system")
|
(test-begin "switch-to-system")
|
||||||
|
|
||||||
(let ((generations-prior (system-generations marionette)))
|
(let ((generations-prior (system-generations marionette)))
|
||||||
|
@ -112,8 +113,7 @@ generation of the system profile."
|
||||||
"jakob")
|
"jakob")
|
||||||
marionette)))
|
marionette)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "switch-to-system" (test (switch-system-program os))))
|
(gexp->derivation "switch-to-system" (test (switch-system-program os))))
|
||||||
|
|
||||||
|
@ -156,6 +156,7 @@ Shepherd (PID 1) by unloading obsolete services and loading new services."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "upgrade-services")
|
(test-begin "upgrade-services")
|
||||||
|
|
||||||
(let ((services-prior (running-services marionette)))
|
(let ((services-prior (running-services marionette)))
|
||||||
|
@ -176,8 +177,7 @@ Shepherd (PID 1) by unloading obsolete services and loading new services."
|
||||||
(test-assert "script stopped obsolete service"
|
(test-assert "script stopped obsolete service"
|
||||||
(not (memq 'dummy (running-services marionette)))))
|
(not (memq 'dummy (running-services marionette)))))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation
|
(gexp->derivation
|
||||||
"upgrade-services"
|
"upgrade-services"
|
||||||
|
@ -223,6 +223,7 @@ bootloader's configuration file."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "install-bootloader")
|
(test-begin "install-bootloader")
|
||||||
|
|
||||||
(test-assert "no prior menu entry for system generation"
|
(test-assert "no prior menu entry for system generation"
|
||||||
|
@ -236,8 +237,7 @@ bootloader's configuration file."
|
||||||
(test-assert "menu entry created for system generation"
|
(test-assert "menu entry created for system generation"
|
||||||
(member #$os (generations-in-grub-cfg marionette)))
|
(member #$os (generations-in-grub-cfg marionette)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(let* ((bootloader ((compose bootloader-configuration-bootloader
|
(let* ((bootloader ((compose bootloader-configuration-bootloader
|
||||||
operating-system-bootloader)
|
operating-system-bootloader)
|
||||||
|
|
|
@ -57,6 +57,7 @@ PORT."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "rsync")
|
(test-begin "rsync")
|
||||||
|
|
||||||
;; Wait for rsync to be up and running.
|
;; Wait for rsync to be up and running.
|
||||||
|
@ -106,8 +107,7 @@ PORT."
|
||||||
(read-line port))))
|
(read-line port))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "rsync-test" test))
|
(gexp->derivation "rsync-test" test))
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "pcscd")
|
(test-begin "pcscd")
|
||||||
|
|
||||||
(test-assert "pcscd is alive"
|
(test-assert "pcscd is alive"
|
||||||
|
@ -59,8 +60,7 @@
|
||||||
(current-services))))
|
(current-services))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "pcscd" test))
|
(gexp->derivation "pcscd" test))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2019, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -75,6 +75,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "singularity")
|
(test-begin "singularity")
|
||||||
|
|
||||||
(test-assert "singularity exec /bin/guile (as root)"
|
(test-assert "singularity exec /bin/guile (as root)"
|
||||||
|
@ -126,8 +127,7 @@
|
||||||
"--debug" "run" #$image "-c" "(use-modules (json))"))
|
"--debug" "run" #$image "-c" "(use-modules (json))"))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "singularity-test" test))
|
(gexp->derivation "singularity-test" test))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;;
|
;;;
|
||||||
|
@ -111,6 +111,7 @@ root with an empty password."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "ssh-daemon")
|
(test-begin "ssh-daemon")
|
||||||
|
|
||||||
;; Wait for sshd to be up and running.
|
;; Wait for sshd to be up and running.
|
||||||
|
@ -209,8 +210,7 @@ root with an empty password."
|
||||||
(channel-request-exec channel "path-witness")
|
(channel-request-exec channel "path-witness")
|
||||||
(zero? (channel-get-exit-status channel))))))
|
(zero? (channel-get-exit-status channel))))))
|
||||||
|
|
||||||
(test-end)
|
(test-end)))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0))))))
|
|
||||||
|
|
||||||
(gexp->derivation name test))
|
(gexp->derivation name test))
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,7 @@ accounts provisioning feature of the service."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "jami")
|
(test-begin "jami")
|
||||||
|
|
||||||
(test-assert "service is running"
|
(test-assert "service is running"
|
||||||
|
@ -341,8 +342,7 @@ accounts provisioning feature of the service."
|
||||||
account-details)))))
|
account-details)))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation (if provisioning?
|
(gexp->derivation (if provisioning?
|
||||||
"jami-provisioning-test"
|
"jami-provisioning-test"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017, 2018 Oleg Pykhalov <go.wigust@gmail.com>
|
;;; Copyright © 2017, 2018 Oleg Pykhalov <go.wigust@gmail.com>
|
||||||
;;; Copyright © 2017, 2018, 2020 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017, 2018, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
|
;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
|
||||||
;;;
|
;;;
|
||||||
|
@ -135,6 +135,7 @@ HTTP-PORT."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "cgit")
|
(test-begin "cgit")
|
||||||
|
|
||||||
;; XXX: Shepherd reads the config file *before* binding its control
|
;; XXX: Shepherd reads the config file *before* binding its control
|
||||||
|
@ -210,8 +211,7 @@ HTTP-PORT."
|
||||||
(test-url "/test/tree/does-not-exist" 404)
|
(test-url "/test/tree/does-not-exist" 404)
|
||||||
(test-url "/does-not-exist" 404))
|
(test-url "/does-not-exist" 404))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "cgit-test" test))
|
(gexp->derivation "cgit-test" test))
|
||||||
|
|
||||||
|
@ -273,6 +273,7 @@ HTTP-PORT."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "git-http")
|
(test-begin "git-http")
|
||||||
|
|
||||||
;; Wait for nginx to be up and running.
|
;; Wait for nginx to be up and running.
|
||||||
|
@ -302,8 +303,7 @@ HTTP-PORT."
|
||||||
(call-with-input-file "/tmp/clone/README"
|
(call-with-input-file "/tmp/clone/README"
|
||||||
get-string-all)))
|
get-string-all)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "git-http" test))
|
(gexp->derivation "git-http" test))
|
||||||
|
|
||||||
|
@ -370,6 +370,7 @@ HTTP-PORT."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "gitolite")
|
(test-begin "gitolite")
|
||||||
|
|
||||||
;; Wait for sshd to be up and running.
|
;; Wait for sshd to be up and running.
|
||||||
|
@ -410,8 +411,7 @@ HTTP-PORT."
|
||||||
(test-assert "pushing, and the associated hooks"
|
(test-assert "pushing, and the associated hooks"
|
||||||
(invoke #$(file-append git "/bin/git") "push")))
|
(invoke #$(file-append git "/bin/git") "push")))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "gitolite" test))
|
(gexp->derivation "gitolite" test))
|
||||||
|
|
||||||
|
@ -475,6 +475,7 @@ HTTP-PORT."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "gitile")
|
(test-begin "gitile")
|
||||||
|
|
||||||
;; XXX: Shepherd reads the config file *before* binding its control
|
;; XXX: Shepherd reads the config file *before* binding its control
|
||||||
|
@ -540,8 +541,7 @@ HTTP-PORT."
|
||||||
(test-url "/test/tree/-/does-not-exist" 404)
|
(test-url "/test/tree/-/does-not-exist" 404)
|
||||||
(test-url "/does-not-exist" 404))
|
(test-url "/does-not-exist" 404))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "gitile-test" test))
|
(gexp->derivation "gitile-test" test))
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
|
;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
|
||||||
;;; Copyright © 2020 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
|
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
|
||||||
;;;
|
;;;
|
||||||
|
@ -76,6 +76,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "libvirt")
|
(test-begin "libvirt")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -107,8 +108,7 @@
|
||||||
"-c" "qemu:///system" "connect"))
|
"-c" "qemu:///system" "connect"))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "libvirt-test" test))
|
(gexp->derivation "libvirt-test" test))
|
||||||
|
|
||||||
|
@ -196,6 +196,7 @@
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "childhurd")
|
(test-begin "childhurd")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -250,8 +251,7 @@
|
||||||
(open-input-pipe #$run-uname-over-ssh)))
|
(open-input-pipe #$run-uname-over-ssh)))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "childhurd-test" test))
|
(gexp->derivation "childhurd-test" test))
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017, 2020 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2017, 2019 Christopher Baines <mail@cbaines.net>
|
;;; Copyright © 2017, 2019 Christopher Baines <mail@cbaines.net>
|
||||||
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
|
;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
|
||||||
|
@ -116,6 +116,7 @@ HTTP-PORT."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin #$name)
|
(test-begin #$name)
|
||||||
|
|
||||||
(test-assert #$(string-append name " service running")
|
(test-assert #$(string-append name " service running")
|
||||||
|
@ -150,8 +151,7 @@ HTTP-PORT."
|
||||||
marionette)))
|
marionette)))
|
||||||
'())
|
'())
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation (string-append name "-test") test))
|
(gexp->derivation (string-append name "-test") test))
|
||||||
|
|
||||||
|
@ -312,6 +312,7 @@ HTTP-PORT, along with php-fpm."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "php-fpm")
|
(test-begin "php-fpm")
|
||||||
|
|
||||||
(test-assert "php-fpm running"
|
(test-assert "php-fpm running"
|
||||||
|
@ -350,9 +351,7 @@ HTTP-PORT, along with php-fpm."
|
||||||
(and matches
|
(and matches
|
||||||
(match:substring matches 0))))))
|
(match:substring matches 0))))))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
|
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "php-fpm-test" test))
|
(gexp->derivation "php-fpm-test" test))
|
||||||
|
|
||||||
|
@ -397,6 +396,7 @@ HTTP-PORT, along with php-fpm."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin #$name)
|
(test-begin #$name)
|
||||||
|
|
||||||
(test-assert "hpcguix-web running"
|
(test-assert "hpcguix-web running"
|
||||||
|
@ -422,8 +422,7 @@ HTTP-PORT, along with php-fpm."
|
||||||
#:times 10
|
#:times 10
|
||||||
#:delay 5)))
|
#:delay 5)))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation (string-append name "-test") test))
|
(gexp->derivation (string-append name "-test") test))
|
||||||
|
|
||||||
|
@ -489,6 +488,7 @@ HTTP-PORT."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "tailon")
|
(test-begin "tailon")
|
||||||
|
|
||||||
(test-assert "service running"
|
(test-assert "service running"
|
||||||
|
@ -512,8 +512,7 @@ HTTP-PORT."
|
||||||
#:times 10
|
#:times 10
|
||||||
#:delay 5))
|
#:delay 5))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "tailon-test" test))
|
(gexp->derivation "tailon-test" test))
|
||||||
|
|
||||||
|
@ -633,6 +632,7 @@ HTTP-PORT."
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
|
|
||||||
|
(test-runner-current (system-test-runner))
|
||||||
(test-begin "patchwork")
|
(test-begin "patchwork")
|
||||||
|
|
||||||
(test-assert "patchwork-postgresql-user-and-service started"
|
(test-assert "patchwork-postgresql-user-and-service started"
|
||||||
|
@ -667,8 +667,7 @@ HTTP-PORT."
|
||||||
#:times 10
|
#:times 10
|
||||||
#:delay 5))
|
#:delay 5))
|
||||||
|
|
||||||
(test-end)
|
(test-end))))
|
||||||
(exit (= (test-runner-fail-count (test-runner-current)) 0)))))
|
|
||||||
|
|
||||||
(gexp->derivation "patchwork-test" test))
|
(gexp->derivation "patchwork-test" test))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue