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")
'guix authenticate' once for all....Ludovic Courtès 2020-09-14daemon: Move 'Agent' to libutil....Ludovic Courtès 2020-09-14daemon: Isolate signing and signature verification functions....Ludovic Courtès 2020-09-14daemon: Generalize 'HookInstance' to 'Agent'....Ludovic Courtès 2020-09-11daemon: Simplify interface with 'guix authenticate'....Ludovic Courtès 2020-06-25daemon: Correctly handle EMLINK corner case when deduplicating....Ludovic Courtès 2020-06-24nix: Tweak .gitignore files....Christopher Baines 2020-06-06daemon: Handle EXDEV when moving to trash directory....Chris Marusich 2020-03-26daemon: Do not use clone on the Hurd....Manolis Ragkousis 2020-02-26daemon: Drop 'AT_STATX_DONT_SYNC' flag upon EINVAL....Ludovic Courtès 2020-01-12daemon: Fix the displayed GC estimated progress....Ludovic Courtès 2020-01-12daemon: Account for deleted store files when deduplication is on....Ludovic Courtès 2019-11-27daemon: GC remove-unused-links phase uses 'statx' when available....Ludovic Courtès 2019-11-22daemon: GC displays how much it has collected....Ludovic Courtès 2019-11-13daemon: Don't include <linux/fs.h>....Ludovic Courtès 2019-11-04daemon: Unregister build hook from the worker's children upon build failure....Ludovic Courtès 2019-10-16daemon: Make 'profiles/per-user' non-world-writable....Ludovic Courtès 2019-10-16daemon: Remove traces of 'NIX_ROOT_FINDER'....Ludovic Courtès 2019-09-28daemon: Strictly respect timeouts for 'guix offload'....Ludovic Courtès 2019-09-08daemon: Remove 'NIX_LIBEXEC_DIR'....Ludovic Courtès 2019-09-08daemon: Run 'guix substitute' directly and assume a single substituter....Ludovic Courtès 2019-09-08daemon: Run 'guix offload' directly....Ludovic Courtès 2019-09-08daemon: Run 'guix perform-download' directly....Ludovic Courtès 2019-09-08daemon: Run 'guix authenticate' directly....Ludovic Courtès 2019-09-08daemon: Invoke 'guix gc --list-busy' instead of 'list-runtime-roots'....Ludovic Courtès 2019-08-30daemon: Don't reply on 'st_blocks'....Eelco Dolstra 2019-06-13daemon: Replace "illegal" by "invalid" in error messages....Ludovic Courtès 2019-03-13Remove traces of "GuixSD"....Ludovic Courtès 2019-02-06daemon: Emit a 'build-succeeded' event in check mode....Ludovic Courtès 2019-02-04daemon: Add "/guix" to default 'nixLibexecDir'....Ludovic Courtès 2019-02-04daemon: Remove the 'NIX_SUBSTITUTERS' environment variable....Ludovic Courtès 2019-02-04daemon: Remove unused 'NIX_DATA_DIR' environment variable....Ludovic Courtès 2019-02-04daemon: Rename 'NIX_STATE_DIR' and 'NIX_DB_DIR' environment variables....Ludovic Courtès 2018-12-16daemon: Use unbranded phrases in comments and messages....Ludovic Courtès 2018-11-14daemon: Install 'authenticate' script under LIBEXECDIR/guix....Ludovic Courtès 2018-10-15daemon: Support multiplexed build output....Ludovic Courtès 2018-10-02daemon: Remove unused 'Settings' fields....Ludovic Courtès