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")
s='msg-avail'>...* gnu/packages/astronomy.scm (python-cdflib): Update to 1.2.1. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: python-crds: Update to 11.17.6....* gnu/packages/astronomy.scm (python-crds): Update to 11.17.6. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: python-drizzle: Update package style....* gnu/packages/astronomy.scm (python-drizzle): Update package style, indent and align regions. [arguments]{test-flags}: Remove them as all tests are passed successfully. [native-inputs]: Remove python-coverage, python-pytest-cov. [description]: Indent region. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: python-drizzle: Update to 1.14.3....* gnu/packages/astronomy.scm (python-drizzle): Update to 1.14.3. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: python-reproject: Update to 0.12.0....* gnu/packages/astronomy.scm (python-reproject): Update to 0.12.0. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: python-jplephem: Improve package style....* gnu/packages/astronomy.scm (python-jplephem)[build-system]: Shift to pyproject-build-system. [arguments]: Use G-expressions. Simplify 'check phase. [description]: Extend it with more details. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: python-jplephem: Update to 2.19....* gnu/packages/astronomy.scm (python-jplephem): Update to 2.19. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: python-gwcs: Update to 0.19.0....* gnu/packages/astronomy.scm (python-gwcs): Update to 0.19.0. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: calceph: Update to 3.5.3....* gnu/packages/astronomy.scm (calceph): Update to 3.5.3. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: stellarium: Update to 23.3....* gnu/packages/astronomy.scm (stellarium): Update to 23.3. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-11gnu: siril: Update to 1.2.0....* gnu/packages/astronomy.scm (siril): Update to 1.2.0. [inputs]: Add ffms2, libheif. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-10-05gnu: Add WCSTools....* gnu/packages/astronomy.scm (wcstools): New variable. * gnu/packages/patches/wcstools-extend-makefiles.patch: New file. * gnu/local.mk: Add it. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Sharlatan Hellseher 2023-10-02gnu: Add python-casa-formats-io....* gnu/packages/astronomy.scm (python-casa-formats-io): New variable. Co-Authored-By: Iliya Tikhonenko <tikhonenko@mpe.mpg.de> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Sharlatan Hellseher 2023-09-28gnu: Add wcslib-7.12....* gnu/packages/astronomy.scm (wcslib-7.12): New variable. Simon Tournier 2023-09-27gnu: python-astropy: Update to 5.3.3....* gnu/packages/astronomy.scm (python-astropy): Update to 5.3.3. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-stdatamodels: Update to 1.8.0....* gnu/packages/astronomy.scm (python-stdatamodels): Update to 1.8.0. [propagated-inputs]: Remove python-jsonschema. [native-inputs]: Remove python-pytest-openfiles. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-roman-datamodels: Remove all test constraints....* gnu/packages/astronomy.scm (python-roman-datamodels): Remove all test constraints. All of 1115 passed. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-roman-datamodels: Update to 0.17.1....* gnu/packages/astronomy.scm (python-roman-datamodels): Update to 0.17.1. [arguments]{phases}: Add 'set-env phase to pass tests. [native-inputs]: Remove python-pytest-openfiles. Add python-pytest-env. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-rad: Update to 0.17.1....* gnu/packages/astronomy.scm (python-rad): Update to 0.17.1. [arguments]{tests?}: Disable them to break dependencies cycle. [native-inputs]: Remove python-astropy, python-pytest, python-pytest-doctestplus, python-pytest-openfiles. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-pyvo: Update to 1.4.2....* gnu/packages/astronomy.scm (python-pyvo): Update to 1.4.2. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-photutils: Update to 1.9.0....* gnu/packages/astronomy.scm (python-photutils): Update to 1.9.0. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-jwst: Update to 1.11.4....* gnu/packages/astronomy.scm (python-jwst): Update to 1.11.4. [propagated-inputs]: Add python-asdf-transform-schemas, python-jplephem. [native-inputs]: Remove python-codecov, python-flake8. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-fitsio: Update to 1.2.0....* gnu/packages/astronomy.scm (python-fitsio): Update to 1.2.0. [arguments]{phases}: Swap 'unbundle-cfitsio to 'set-env as there is support for system CFitsio library provided. [inputs]: Add zlib. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-crds: Update to 11.17.4....* gnu/packages/astronomy.scm (python-crds): Update to 11.17.4. [propagated-inputs]: Remove python-lxml. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-bayesicfitting: Update to 3.2.0....* gnu/packages/astronomy.scm (python-bayesicfitting): Update to 3.2.0. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-sunpy: Enable more tests....* gnu/packages/astronomy.scm (python-sunpy): Enable tests detecting python-cdflib metadata. Update annotation for still disabled tests. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-cdflib: Fix version detection....* gnu/packages/astronomy.scm (python-cdflib): Fix version detection during build Wheel package. [arguments]: Add new phase 'set-env-version. [native-inputs]: Add python-setuptools-scm. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-cdflib: Update to 1.1.0....* gnu/packages/astronomy.scm (python-cdflib): Update to 1.1.0. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: python-astropy-healpix: Update to 1.0.0....* gnu/packages/astronomy.scm (python-astropy-healpix): Update to 1.0.0. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: splash: Update to 3.8.4....* gnu/packages/astronomy.scm (splash): Update to 3.8.4. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: libxisf: Extend description....* gnu/packages/astronomy.scm (libxisf)[description]: Explain acronym. Add essential links to the mentioned standard and the service. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-27gnu: libxisf: Update to 0.2.9....* gnu/packages/astronomy.scm (libxisf): Update to 0.2.9. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher