aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2022 Ludovic Courtès <ludo@gnu.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 (test-home-services)
  #:use-module (gnu services)
  #:use-module (gnu home services)
  #:use-module (guix diagnostics)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-64)
  #:use-module (ice-9 match))

(test-begin "home-services")

(test-assert "fold-home-service-types"
  (match (fold-home-service-types cons '())
    (() #f)
    (lst (and (every service-type? lst)
              (every (lambda (type)
                       (let ((location (service-type-location type)))
                         (string-contains (location-file location)
                                          "gnu/home")))
                     lst)))))

(test-eq "lookup-service-types"
  home-files-service-type
  (and (null? (lookup-home-service-types 'does-not-exist-at-all))
       (match (lookup-home-service-types 'home-files)
         ((one) one)
         (x x))))

(test-end)
to 9.6p1 [security-fixes]....Fixes CVE-2023-48795. * gnu/packages/ssh.scm (openssh): Update to 9.6p1. [arguments]<#:parallel-tests?>: Disable. Change-Id: I8b7707894d904ec8bcccb943908fff2e69a1a027 Signed-off-by: John Kehayias <john.kehayias@protonmail.com> Jack Hill 2023-12-21gnu: libssh: Update to 0.10.6 [security-fixes]....Fixes CVE-2023-6004, CVE-2023-48795, and CVE-2023-6918. * gnu/packages/ssh.scm (libssh): Update to 0.10.6. Change-Id: Ie9d304d78b2629f41af9836e5c7eab5df6f26bb5 Signed-off-by: John Kehayias <john.kehayias@protonmail.com> Jack Hill 2023-11-19gnu: openssh: Update to 9.5p1....* gnu/packages/ssh.scm (openssh): Update to 9.5p1. Change-Id: I7347258f801e97045774a27e4c30b82fff2ff73e Tobias Geerinckx-Rice 2023-10-15gnu: mosh: Prepare for cross-building....Currently blocked by protobuf. * gnu/packages/ssh.scm (mosh)[arguments]: Use SEARCH-INPUT-FILE. Tobias Geerinckx-Rice 2023-10-15gnu: mosh: Update package style....* gnu/packages/ssh.scm (mosh)[arguments]: Use G-expressions. Don't explicitly return #t from phases. [inputs]: Remove input labels. Tobias Geerinckx-Rice 2023-08-06gnu: openssh: Update to 9.4p1....* gnu/packages/ssh.scm (openssh): Update to 9.4p1. [source]: Remove upstreamed Hurd patch. * gnu/packages/patches/openssh-hurd.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. Tobias Geerinckx-Rice