aboutsummaryrefslogtreecommitdiff
path: root/tests/search-paths.scm
blob: 767a80b76c86d7697d7ae5bc6f6cd4f3e38c142c (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017, 2019 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-search-paths)
  #:use-module (guix search-paths)
  #:use-module (ice-9 match)
  #:use-module (srfi srfi-64))

(define %top-srcdir
  (dirname (search-path %load-path "guix.scm")))


(test-begin "search-paths")

(test-equal "evaluate-search-paths, separator is #f"
  (string-append %top-srcdir
                 "/gnu/packages/aux-files/linux-libre")

  ;; The following search path spec should evaluate to a single item: the
  ;; first directory that matches the "-linux$" pattern in
  ;; gnu/packages/bootstrap.
  (let ((spec (search-path-specification
               (variable "CHBOUIB")
               (files '("gnu/packages/aux-files"))
               (file-type 'directory)
               (separator #f)
               (file-pattern "^linux"))))
    (match (evaluate-search-paths (list spec)
                                  (list %top-srcdir))
      (((spec* . value))
       (and (eq? spec* spec) value)))))

(test-end "search-paths")
home: xdg-base-directories: Set correct value for XDG_STATE_HOME....Bruno Victal 2023-04-02services: replace bare serializers with (serializer ...)...Bruno Victal 2023-03-26home: services: Export home-xmodmap-service-type and configuration....Jan (janneke) Nieuwenhuizen 2023-03-17home: services: Add home-xmodmap-service-type....conses 2023-03-17home: services: ssh-agent: Handle setting of SSH_AUTH_SOCK....Jan (janneke) Nieuwenhuizen 2023-03-16home: services: kodi, znc, ssh-agent: Use 'match-record'....Ludovic Courtès 2023-03-16home: services: znc: Remove host-side use of (shepherd support)....Ludovic Courtès 2023-03-16home: services: kodi: Remove host-side use of (shepherd support)....Ludovic Courtès 2023-03-16home: services: ssh-agent: Remove host-side use of (shepherd support)....Ludovic Courtès 2023-03-16gnu: home: services: Add home-kodi-service-type....Jan (janneke) Nieuwenhuizen 2023-03-16gnu: home: services: Add home-znc-service-type....Jan (janneke) Nieuwenhuizen 2023-03-16gnu: home: services: Add home-ssh-agent-service-type....Jan (janneke) Nieuwenhuizen 2023-03-16home: services: Add home-unclutter-service-type....conses 2023-03-05home: services: Add 'pulseaudio-rtp-sink' and 'pulseaudio-rtp-source'....Ludovic Courtès 2023-01-31home: services: fontutils: Add service value....Giacomo Leidi 2023-01-09home: environment-variables: Fix escaping....Andrew Tropin 2023-01-09home: environment-variables: Return support for file-likes and gexps....Andrew Tropin 2023-01-05home: shells: Do not escape backslashes in single-quoted strings....Ludovic Courtès 2023-01-05system: Define default 'PS1' in /etc/bashrc rather than ~/.bashrc....Ludovic Courtès 2023-01-05system, home: Factorize default '.bashrc'....Ludovic Courtès 2023-01-05home: services: environment-variables: Add support for literal strings....Ludovic Courtès 2023-01-03guix: Fix typos....jman 2022-12-23home: xdg: Add with-imported-modules to xdg activation script....Andrew Tropin 2022-12-19home: xdg: Make it possible to extend user-directories service....Andrew Tropin 2022-12-02home: services: Use 'match-record' instead of 'match'....Ludovic Courtès 2022-12-01home: xdg: Export xdg-base/user-directories getters....Andrew Tropin 2022-11-18home: services: redshift: Add 'configuration' action....Ludovic Courtès 2022-11-17Fix problems initially introduced in commit 543d971ed2, now reinstated....Maxim Cournoyer 2022-11-17Revert "services: configuration: Revert to a working ‘guix home’."...Maxim Cournoyer 2022-11-13services: configuration: Revert to a working ‘guix home’....Tobias Geerinckx-Rice 2022-11-15services: mcron: Add log? and log-format fields to mcron-configuration....Maxim Cournoyer