From: ludo@gnu.org (Ludovic Courtès)
To: John Darrington <jmd@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add system test for the rpcbind-daemon service.
Date: Wed, 14 Dec 2016 00:00:57 +0100 [thread overview]
Message-ID: <8760mnl9hy.fsf@gnu.org> (raw)
In-Reply-To: <1481521490-9289-1-git-send-email-jmd@gnu.org> (John Darrington's message of "Mon, 12 Dec 2016 06:44:50 +0100")
John Darrington <jmd@gnu.org> skribis:
> * gnu/tests/nfs.scm: New file.
> * gnu/local.mk: Add it.
Awesome! :-)
> +(define %base-os
> + (operating-system
> + (host-name "olitupmok")
> + (timezone "Europe/Berlin")
> + (locale "en_US.UTF-8")
> +
> + (bootloader (grub-configuration (device "/dev/sdX")))
> + (file-systems %base-file-systems)
> + (firmware '())
This line is not needed, is it?
> + (users %base-user-accounts)
> + (services (cons (dhcp-client-service)
> + %base-services))))
You can add ‘rpc-service’ and the ‘rpcbind’ package right here…
> +(define (os-with-service service)
> + "Return a test operating system that runs SERVICE."
> + (operating-system
> + (inherit %base-os)
> + (packages (cons*
> + rpcbind
> + %base-packages))
> + (services (cons service
> + (operating-system-user-services %base-os)))))
… and remove this procedure.
> + (define test
> + (with-imported-modules '((gnu build marionette))
> + #~(begin
> + (use-modules (gnu build marionette)
> + (srfi srfi-26)
> + (srfi srfi-64)
> + (ice-9 match))
Looks like srfi-26 and match are unused and can be removed.
> + (define marionette
> + ;; Enable TCP forwarding of the guest's port 111.
> + (make-marionette (list #$command)))
Outdated comment, no?
> + (test-begin "nfs-daemon")
Or “rpcbind-daemon” rather?
> + ;; Check the socket file and that the service is still running.
> + (test-assert "RPC socket exists"
> + (begin
> + (wait-for-socket #$socket)
> + (marionette-eval
I think it should be ‘and’ instead of ‘begin’.
> +(define %test-nfs
> + (system-test
> + (name "nfs")
> + (description "Test some things related to NFS.")
s/nfs/rpcbind/ ?
OK with these changes.
Thanks for taking the time to write this test!
Ludo’.
prev parent reply other threads:[~2016-12-13 23:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-12 5:44 [PATCH] gnu: Add system test for the rpcbind-daemon service John Darrington
2016-12-13 23:00 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760mnl9hy.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=jmd@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).