# htmlxref.cnf - reference file for free Texinfo manuals on the web. # Modified by Ludovic Courtès for the GNU Guix manual. htmlxrefversion=2022-08-04.13; # UTC # Copyright 2010-2020, 2022 Free Software Foundation, Inc. # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. # # The latest version of this file is available at # http://ftpmirror.gnu.org/texinfo/htmlxref.cnf. # Email corrections or additions to bug-texinfo@gnu.org. # The primary goal is to list all relevant GNU manuals; # other free manuals are also welcome. # # To be included in this list, a manual must: # # - have a generic url, e.g., no version numbers; # - have a unique file name (e.g., manual identifier), i.e., be related to the # package name. Things like "refman" or "tutorial" don't work. # - follow the naming convention for nodes described at # http://www.gnu.org/software/texinfo/manual/texinfo/html_node/HTML
aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests/nfs.scm
blob: 7ef9f1f7bfbc3f1c7727de5dd106004bbac80d20 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016, 2017 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu tests nfs)
  #:use-module (gnu tests)
  #:use-module (gnu bootloader)
  #:use-module (gnu bootloader grub)
  #:use-module (gnu system)
  #:use-module (gnu system file-systems)
  #:use-module (gnu system shadow)
  #:use-module (gnu system vm)
  #:use-module (gnu services)
  #:use-module (gnu services base)
  #:use-module (gnu services nfs)
  #:use-module (gnu services networking)
  #:use-module (gnu packages onc-rpc)
  #:use-module (guix gexp)
  #:use-module (guix store)
  #:use-module (guix monads)
  #:export (%test-nfs))

(define %base-os
  (operating-system
    (host-name "olitupmok")
    (timezone "Europe/Berlin")
    (locale "en_US.UTF-8")

    (bootloader (bootloader-configuration
                 (bootloader grub-bootloader)
                 (target "/dev/sdX")))
    (file-systems %base-file-systems)
    (users %base-user-accounts)
    (packages (cons*
               rpcbind
               %base-packages))
    (services (cons*
               (service rpcbind-service-type
                        (rpcbind-configuration))
               (service dhcp-client-service-type)
               %base-services))))

(define (run-nfs-test name socket)
  "Run a test of an OS running RPC-SERVICE, which should create SOCKET."
  (define os
    (marionette-operating-system
     %base-os
     #:imported-modules '((gnu services herd)
                          (guix combinators))))

  (define test
    (with-imported-modules '((gnu build marionette))
      #~(begin
          (use-modules (gnu build marionette)
                       (srfi srfi-64))

          (define marionette
            (make-marionette (list #$(virtual-machine os))))

          (define (wait-for-socket file)
            ;; Wait until SOCKET  exists in the guest
            (marionette-eval
             `(let loop ((i 10))
                (cond ((and (file-exists? ,file)
                            (eq? 'socket (stat:type (stat ,file))))
                       #t)
                      ((> i 0)
                       (sleep 1)
                       (loop (- i 1)))
                      (else
                       (error "Socket didn't show up: " ,file))))
             marionette))

          (mkdir #$output)
          (chdir #$output)

          (test-begin "rpc-daemon")

          ;; Wait for the rpcbind daemon to be up and running.
          (test-assert "RPC service running"
            (marionette-eval
             '(begin
                (use-modules (gnu services herd))
                (start-service 'rpcbind-daemon))
             marionette))

          ;; Check the socket file and that the service is still running.
          (test-assert "RPC socket exists"
            (and
             (wait-for-socket #$socket)
             (marionette-eval
              '(begin
                 (use-modules (gnu services herd)
                              (srfi srfi-1))

                 (live-service-running
                  (find (lambda (live)
                          (memq 'rpcbind-daemon
                                (live-service-provision live)))
                        (current-services))))
              marionette)))

          (test-assert "Probe RPC daemon"
            (marionette-eval
             '(zero? (system* "rpcinfo" "-p"))
             marionette))

          (test-end)
          (exit (= (test-runner-fail-count (test-runner-current)) 0)))))

  (gexp->derivation name test))

(define %test-nfs
  (system-test
   (name "nfs")
   (description "Test some things related to NFS.")
   (value (run-nfs-test name "/var/run/rpcbind.sock"))))
de ${GUILE_GNOME}/glib/html/ atk node ${GUILE_GNOME}/atk/html/ pango node ${GUILE_GNOME}/pango/html/ pangocairo node ${GUILE_GNOME}/pangocairo/html/ gdk node ${GUILE_GNOME}/gdk/html/ gtk node ${GUILE_GNOME}/gtk/html/ libglade node ${GUILE_GNOME}/libglade/html/ gnome-vfs node ${GUILE_GNOME}/gnome-vfs/html/ libgnomecanvas node ${GUILE_GNOME}/libgnomecanvas/html/ gconf node ${GUILE_GNOME}/gconf/html/ libgnome node ${GUILE_GNOME}/libgnome/html/ libgnomeui node ${GUILE_GNOME}/libgnomeui/html/ corba node ${GUILE_GNOME}/corba/html/ clutter node ${GUILE_GNOME}/clutter/html/ clutter-glx node ${GUILE_GNOME}/clutter-glx/html/ guile-gtk node ${GS}/guile-gtk/docs/guile-gtk/ guile-rpc mono ${GS}/guile-rpc/manual/guile-rpc.html guile-rpc node ${GS}/guile-rpc/manual/html_node/ GUIX_ROOT = https://guix.gnu.org GUIX = ${GUIX_ROOT}/manual guix.de mono ${GUIX}/de/guix.de.html guix.de node ${GUIX}/de/html_node/ guix.es mono ${GUIX}/es/guix.es.html guix.es node ${GUIX}/es/html_node/ guix.fr mono ${GUIX}/fr/guix.fr.html guix.fr node ${GUIX}/fr/html_node/ guix.ru mono ${GUIX}/ru/guix.ru.html guix.ru node ${GUIX}/ru/html_node/ guix.zh_CN mono ${GUIX}/zh-cn/guix.zh_CN.html guix.zh_CN node ${GUIX}/zh-cn/html_node/ guix mono ${GUIX}/en/guix.html guix node ${GUIX}/en/html_node/ GUIX_COOKBOOK = ${GUIX_ROOT}/cookbook guix-cookbook.de mono ${GUIX_COOKBOOK}/de/guix-cookbook.html guix-cookbook.de node ${GUIX_COOKBOOK}/de/html_node/ guix-cookbook.fr mono ${GUIX_COOKBOOK}/fr/guix-cookbook.html guix-cookbook.fr node ${GUIX_COOKBOOK}/fr/html_node/ guix-cookbook mono ${GUIX_COOKBOOK}/en/guix-cookbook.html guix-cookbook node ${GUIX_COOKBOOK}/en/html_node/ gv mono ${GS}/gv/manual/gv.html gv node ${GS}/gv/manual/html_node/ gzip mono ${GS}/gzip/manual/gzip.html gzip node ${GS}/gzip/manual/html_node/ hello mono ${GS}/hello/manual/hello.html hello node ${GS}/hello/manual/html_node/ help2man mono ${GS}/help2man/help2man.html # XXX: These are actually pages created by texi2html, so no quite following # the expected naming scheme. hurd mono ${GS}/hurd/doc/ idutils mono ${GS}/idutils/manual/idutils.html idutils node ${GS}/idutils/manual/html_node/ inetutils mono ${GS}/inetutils/manual/inetutils.html inetutils node ${GS}/inetutils/manual/html_node/ jwhois mono ${GS}/jwhois/manual/jwhois.html jwhois node ${GS}/jwhois/manual/html_node/ libc mono ${GS}/libc/manual/html_mono/libc.html libc node ${GS}/libc/manual/html_node/ LIBCDIO = ${GS}/libcdio libcdio mono ${LIBCDIO}/libcdio.html cd-text mono ${LIBCDIO}/cd-text-format.html libextractor mono ${GS}/libextractor/manual/libextractor.html libextractor node ${GS}/libextractor/manual/html_node/ libidn mono ${GS}/libidn/manual/libidn.html libidn node ${GS}/libidn/manual/html_node/ librejs mono ${GS}/librejs/manual/librejs.html librejs node ${GS}/librejs/manual/html_node/ libmatheval mono ${GS}/libmatheval/manual/libmatheval.html LIBMICROHTTPD = ${GS}/libmicrohttpd libmicrohttpd mono ${LIBMICROHTTPD}/manual/libmicrohttpd.html libmicrohttpd node ${LIBMICROHTTPD}/manual/html_node/ microhttpd-tutorial mono ${LIBMICROHTTPD}/tutorial.html libtasn1 mono ${GS}/libtasn1/manual/libtasn1.html libtasn1 node ${GS}/libtasn1/manual/html_node/ libtool mono ${GS}/libtool/manual/libtool.html libtool node ${GS}/libtool/manual/html_node/ lightning mono ${GS}/lightning/manual/lightning.html lightning node ${GS}/lightning/manual/html_node/ # The stable/ url redirects immediately, but that's ok. # The .html extension is omitted on their web site, but it works if given. LILYPOND = http://lilypond.org/doc/stable/Documentation lilypond-internals node ${LILYPOND}/internals/ lilypond-learning node ${LILYPOND}/learning/ lilypond-notation node ${LILYPOND}/notation/ lilypond-snippets node ${LILYPOND}/snippets/ lilypond-usage node ${LILYPOND}/usage/ lilypond-web node ${LILYPOND}/web/ music-glossary node ${LILYPOND}/music-glossary/ liquidwar6 mono ${GS}/liquidwar6/manual/liquidwar6.html liquidwar6 node ${GS}/liquidwar6/manual/html_node/ lispintro mono ${GS}/emacs/emacs-lisp-intro/html_mono/emacs-lisp-intro.html lispintro node ${GS}/emacs/emacs-lisp-intro/html_node/index.html LSH = http://www.lysator.liu.se/~nisse/lsh lsh mono ${LSH}/lsh.html m4 mono ${GS}/m4/manual/m4.html m4 node ${GS}/m4/manual/html_node/ mailutils mono ${GS}/mailutils/manual/mailutils.html mailutils chapter ${GS}/mailutils/manual/html_chapter/ mailutils section ${GS}/mailutils/manual/html_section/ mailutils node ${GS}/mailutils/manual/html_node/ make mono ${GS}/make/manual/make.html make node ${GS}/make/manual/html_node/ mcron mono ${GS}/mcron/manual/mcron.html mcron node ${GS}/mcron/manual/html_node/ mdk mono ${GS}/mdk/manual/mdk.html mdk node ${GS}/mdk/manual/html_node/ METAEXCHANGE = https://ftp.gwdg.de/pub/gnu2/iwfmdh/doc/texinfo iwf_mh node ${METAEXCHANGE}/iwf_mh.html scantest node ${METAEXCHANGE}/scantest.html mes mono ${GS}/mes/manual/mes.html mes node ${GS}/mes/manual/html_node/ MIT_SCHEME = ${GS}/mit-scheme/documentation/stable mit-scheme-ref mono ${MIT_SCHEME}/mit-scheme-ref.html mit-scheme-ref node ${MIT_SCHEME}/mit-scheme-ref/ mit-scheme-user mono ${MIT_SCHEME}/mit-scheme-user.html mit-scheme-user node ${MIT_SCHEME}/mit-scheme-user/ sos mono ${MIT_SCHEME}/mit-scheme-sos.html sos node ${MIT_SCHEME}/mit-scheme-sos/ mit-scheme-imail mono ${MIT_SCHEME}/mit-scheme-imail.html moe mono ${GS}/moe/manual/moe_manual.html motti node ${GS}/motti/manual/ mpc node http://www.multiprecision.org/index.php?prog=mpc&page=html mpfr mono http://www.mpfr.org/mpfr-current/mpfr.html mtools mono ${GS}/mtools/manual/mtools.html myserver mono http://www.myserverproject.net/doc.php nano mono https://www.nano-editor.org/dist/latest/nano.html nettle chapter http://www.lysator.liu.se/~nisse/nettle/nettle.html ocrad mono ${GS}/ocrad/manual/ocrad_manual.html parted mono ${GS}/parted/manual/parted.html parted node ${GS}/parted/manual/html_node/ pascal mono http://www.gnu-pascal.de/gpc/ # can't use pcb since url's contain dates --30nov10 perl mono ${GS}/perl/manual/perldoc-all.html PIES = http://www.gnu.org.ua/software/pies/manual pies mono ${PIES}/pies.html pies chapter ${PIES}/html_chapter/ pies section ${PIES}/html_section/ pies node ${PIES}/html_node/ plotutils mono ${GS}/plotutils/manual/en/plotutils.html plotutils node ${GS}/plotutils/manual/en/html_node/ proxyknife mono ${GS}/proxyknife/manual/proxyknife.html proxyknife node ${GS}/proxyknife/manual/html_node/ pspp mono ${GS}/pspp/manual/pspp.html pspp node ${GS}/pspp/manual/html_node/ pyconfigure mono ${GS}/pyconfigure/manual/pyconfigure.html pyconfigure node ${GS}/pyconfigure/manual/html_node/ R = https://cran.r-project.org/doc/manuals R-intro mono ${R}/R-intro.html R-lang mono ${R}/R-lang.html R-exts mono ${R}/R-exts.html R-data mono ${R}/R-data.html R-admin mono ${R}/R-admin.html R-ints mono ${R}/R-ints.html rcs mono ${GS}/rcs/manual/rcs.html rcs node ${GS}/rcs/manual/html_node/ READLINE = https://tiswww.cwru.edu/php/chet/readline readline mono ${READLINE}/readline.html rluserman mono ${READLINE}/rluserman.html history mono ${READLINE}/history.html recode mono http://recode.progiciels-bpi.ca/manual/index.html recutils mono ${GS}/recutils/manual/recutils.html recutils node ${GS}/recutils/manual/html_node/ reftex mono ${GS}/auctex/manual/reftex.html reftex node ${GS}/auctex/manual/reftex/ remotecontrol mono ${GS}/remotecontrol/manual/remotecontrol.html remotecontrol node ${GS}/remotecontrol/manual/html_node/ rottlog mono ${GS}/rottlog/manual/rottlog.html rottlog node ${GS}/rottlog/manual/html_node/ RUSH = http://www.gnu.org.ua/software/rush/manual rush mono ${RUSH}/rush.html rush chapter ${RUSH}/html_chapter/ rush section ${RUSH}/html_section/ rush node ${RUSH}/html_node/ screen mono ${GS}/screen/manual/screen.html screen node ${GS}/screen/manual/html_node/ sed mono ${GS}/sed/manual/sed.html sed node ${GS}/sed/manual/html_node/ sharutils mono ${GS}/sharutils/manual/html_mono/sharutils.html sharutils chapter ${GS}/sharutils/manual/html_chapter/ sharutils node ${GS}/sharutils/manual/html_node/ shepherd mono ${GS}/shepherd/manual/shepherd.html shepherd node ${GS}/shepherd/manual/html_node/ # can't use mono files since they have generic names SMALLTALK = ${GS}/smalltalk smalltalk node ${SMALLTALK}/manual/html_node/ smalltalk-base node ${SMALLTALK}/manual-base/html_node/ smalltalk-libs node ${SMALLTALK}/manual-libs/html_node/ sourceinstall mono ${GS}/sourceinstall/manual/sourceinstall.html sourceinstall node ${GS}/sourceinstall/manual/html_node/ sqltutor mono ${GS}/sqltutor/manual/sqltutor.html sqltutor node ${GS}/sqltutor/manual/html_node/ src-highlite mono ${GS}/src-highlite/source-highlight.html swbis mono ${GS}/swbis/manual.html tar mono ${GS}/tar/manual/tar.html tar chapter ${GS}/tar/manual/html_chapter/ tar section ${GS}/tar/manual/html_section/ tar node ${GS}/tar/manual/html_node/ teseq mono ${GS}/teseq/teseq.html teseq node ${GS}/teseq/html_node/ TEXINFO = ${GS}/texinfo/manual texinfo mono ${TEXINFO}/texinfo/texinfo.html texinfo node ${TEXINFO}/texinfo/html_node/ # info-stnd mono ${TEXINFO}/info-stnd/info-stnd.html info-stnd node ${TEXINFO}/info-stnd/html_node/ thales node ${GS}/thales/manual/ units mono ${GS}/units/manual/units.html units node ${GS}/units/manual/html_node/ vc-dwim mono ${GS}/vc-dwim/manual/vc-dwim.html vc-dwim node ${GS}/vc-dwim/manual/html_node/ wdiff mono ${GS}/wdiff/manual/wdiff.html wdiff node ${GS}/wdiff/manual/html_node/ websocket4j mono ${GS}/websocket4j/manual/websocket4j.html websocket4j node ${GS}/websocket4j/manual/html_node/ wget mono ${GS}/wget/manual/wget.html wget node ${GS}/wget/manual/html_node/ xboard mono ${GS}/xboard/manual/xboard.html xboard node ${GS}/xboard/manual/html_node/ # emacs-page # Free TeX-related Texinfo manuals on tug.org. T = https://tug.org/texinfohtml dvipng mono ${T}/dvipng.html dvips mono ${T}/dvips.html eplain mono ${T}/eplain.html kpathsea mono ${T}/kpathsea.html latex2e mono ${T}/latex2e.html tlbuild mono ${T}/tlbuild.html web2c mono ${T}/web2c.html # Local Variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "htmlxrefversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: