aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
;;; Copyright © 2022 Bruno Victal <mirai@makinata.eu>
;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com>
;;;
;;; 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 cachefilesd)
  #:use-module (gnu tests)
  #:use-module (gnu system)
  #:use-module (gnu system vm)
  #:use-module (gnu services)
  #:use-module (gnu services linux)
  #:use-module (guix gexp)
  #:export (%test-cachefilesd))

(define %cachefilesd-os
  (simple-operating-system
   (service cachefilesd-service-type
            (cachefilesd-configuration
             (cache-directory "/var/cache/fscache")))))

(define (run-cachefilesd-test)
  "Run tests in %cachefilesd-os, which has cachefilesd running."
  (define os
    (marionette-operating-system
     %cachefilesd-os
     #:imported-modules '((gnu services herd))))

  (define vm
    (virtual-machine os))

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

          (test-runner-current (system-test-runner #$output))
          (test-begin "cachefilesd")

          (test-assert "service is running"
            (marionette-eval
             '(begin
                (use-modules (gnu services herd))
                (start-service 'cachefilesd))
             marionette))

          (test-end))))
  (gexp->derivation "cachefilesd-test" test))

(define %test-cachefilesd
  (system-test
   (name "cachefilesd")
   (description "Test that the cachefilesd runs when started.")
   (value (run-cachefilesd-test))))
gnu/packages/disk.scm (libblockdev): Update to 2.23. Tobias Geerinckx-Rice 2019-10-13gnu: parted: End phases on #t....* gnu/packages/disk.scm (parted)[arguments]: End phase on #t and reindent. Marius Bakke 2019-10-13gnu: parted: Complete the 3.3 update....Fixes <https://bugs.gnu.org/37721>. Reported by Jesse Gibbons <jgibbons2357@gmail.com>. This is a follow-up to commit 6ad7e3578b6ec924ceddabc908decdab8e453eca. * gnu/packages/patches/parted-glibc-compat.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/disk.scm (parted)[source](patches): Remove. [native-inputs]: Add E2FSPROGS. Marius Bakke 2019-10-12gnu: parted: Update to 3.3....* gnu/packages/disk.scm (parted): Update to 3.3. Tobias Geerinckx-Rice 2019-09-26gnu: f3: Update to 7.2....* gnu/packages/disk.scm (f3): Update to 7.2. Tobias Geerinckx-Rice 2019-08-26gnu: rmlint: Update to 2.9.0....* gnu/packages/disk.scm (rmlint): Update to 2.9.0. Tobias Geerinckx-Rice 2019-07-08gnu: dosfstools: Enable compat symlinks....Enable compatibility symlinks to provide commands such as `mkfs.vfat`. * gnu/packages/disk.scm (dosfstools)[arguments]: Pass "--enable-compat-symlinks" to configure. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Pierre Langlois 2019-06-24gnu: python-parted: Don't use unstable tarball....* gnu/packages/disk.scm (python-parted)[source]: Use GIT-FETCH and GIT-FILE-NAME. Tobias Geerinckx-Rice 2019-06-24gnu: python-parted: Update to 3.11.2....* gnu/packages/disk.scm (python-parted): Update to 3.11.2. Tobias Geerinckx-Rice 2019-06-12gnu: GParted: Update 1.0.0....* gnu/packages/disk.scm (gparted): Update to 1.0.0. [arguments]: Remove obsolete configure flag. [inputs]: Use gtkmm@3. Add yelp-tools and itstool. Remove libxslt, gnome-doc-utils, docbook-xml-4.2, python-2, python2-libxml2, and which. [native-inputs]: Add lvm2. Leo Famulari 2019-05-24gnu: Move Sphinx and friends to (gnu packages sphinx)....* gnu/packages/python-xyz.scm (python-sphinxcontrib-websupport, python2-sphinxcontrib-websupport, python-sphinx, python2-sphinx, python-sphinx-gallery, python2-sphinx-gallery, python-sphinx-rtd-theme, python2-sphinx-rtd-theme, python-guzzle-sphinx-theme, python2-guzzle-sphinx-theme, python-sphinxcontrib-newsfeed, python-sphinxcontrib-programoutput, python2-sphinxcontrib-programoutput, python-sphinx-repoze-interface, python2-sphinx-repoze-interface, python-sphinx-cloud-sptheme, python2-sphinx-cloud-sptheme, python-sphinx-alabaster-theme, python2-sphinx-alabaster-theme, python-sphinx-me, python-sphinxcontrib-svg2pdfconverter): Move to ... (gnu): * gnu/packages/sphinx.scm: ... here. New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly. * gnu/packages/admin.scm, gnu/packages/bioinformatics.scm, gnu/packages/calendar.scm, gnu/packages/cluster.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/elf.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emulators.scm, gnu/packages/finance.scm, gnu/packages/image.scm, gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm, gnu/packages/openstack.scm, gnu/packages/pdf.scm, gnu/packages/python-web.scm, gnu/packages/search.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/tls.scm, gnu/packages/web.scm: Adjust module imports. Marius Bakke 2019-05-16gnu: ndctl: Update to 65....* gnu/packages/disk.scm (ndctl): Update to 65. Tobias Geerinckx-Rice 2019-04-25gnu, guix: Yearly ritual purging of the filesystems....* gnu/packages/android.scm (android-ext4-utils)[synopsis]: Fix ‘file system’ spelling. * gnu/packages/disk.scm (rmlint)[synopsis, description]: Likewise. * gnu/packages/golang.scm (go-github-com-kr-fs)[synopsis, description]: Likewise & edit for grammar. * gnu/packages/ipfs.scm (gx, go-ipfs)[description]: Likewise. * /gnu/packages/java.scm (java-commons-vfs)[synopsis]: Likewise. * gnu/packages/linux.scm (fuseiso)[description]: Likewise. (genext2fs)[synopsis, description]: Likewise. * gnu/packages/package-management.scm (libostree)[description]: Likewise. * gnu/packages/python-xyz.scm (python-requests-file)[description]: Likewise & mark up. * gnu/packages/rails.scm (ruby-with-advisory-lock)[description]: Likewise. * gnu/packages/ruby.scm (ruby-rerun)[description]: Likewise. * guix/build/go-build-system.scm (setup-go-environment)<docstring>: Likewise. * guix/store/deduplication.scm (get-temp-link)<docstring>: Likewise. Tobias Geerinckx-Rice