aboutsummaryrefslogtreecommitdiff
path: root/tests/store-roots.scm
blob: 5bcf1bc87e159f68eaf166fb93dbc4c3d0041b12 (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
49
50
51
52
53
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 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-store-deduplication)
  #:use-module (guix tests)
  #:use-module (guix store)
  #:use-module (guix store roots)
  #:use-module ((guix utils) #:select (call-with-temporary-directory))
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-64))

(define %store
  (open-connection))

(test-begin "store-roots")

(test-assert "gc-roots, regular root"
  (let* ((item (add-text-to-store %store "something"
                                  (random-text)))
         (root (string-append %gc-roots-directory "/test-gc-root")))
    (symlink item root)
    (let ((result (member root (gc-roots))))
      (delete-file root)
      result)))

(test-assert "gc-roots, indirect root"
  (call-with-temporary-directory
   (lambda (directory)
     (let* ((item (add-text-to-store %store "something"
                                     (random-text)))
            (root (string-append directory "/gc-root")))
       (symlink item root)
       (add-indirect-root %store root)
       (let ((result (member root (gc-roots))))
         (delete-file root)
         result)))))

(test-end "store-roots")
'msg-avail'>...* gnu/packages/sagemath.scm (zn-poly): Install the static and the dynamic library with its symlinks, and end a phase with #t. Andreas Enge 2019-06-21gnu: Add lcalc....* gnu/packages/sagemath.scm (lcalc): New variable. * gnu/packages/patches/lcalc-default-parameters-1.patch, gnu/packages/patches/lcalc-default-parameters-2.patch, gnu/packages/patches/lcalc-lcommon-h.patch, gnu/packages/patches/lcalc-using-namespace-std.patch: New files. * gnu/local.mk (dist_patch_DATA): Register patches. Andreas Enge 2019-06-20gnu: zn_poly: Rename to zn-poly, according to our naming conventions....Reported by Nicolas Goaziou <mail@nicolasgoaziou.fr>. This is a follow-up to commit 01822e3ebf24031d6438fc4e7ad3a869ea12fdf4. * gnu/packages/sagemath.scm (zn_poly): Rename to... * gnu/packages/sagemath.scm (zn-poly): ...this. Andreas Enge 2019-06-19gnu: Add brial....* gnu/packages/sagemath.scm (brial): New variable. Andreas Enge 2019-06-19gnu: Add zn_poly....* gnu/packages/sagemath.scm (zn_poly): New variable. Andreas Enge 2019-06-19gnu: Add pynac....* gnu/packages/sagemath.scm (pynac): New variable. Andreas Enge 2019-06-19gnu: python-gmpy2: Update to 2.1.0b1....The gmpy2 package has become a standard package in sage-8.7, and the latest stable release is too old. * gnu/packages/sagemath.scm (python-gmpy2): Update to 2.1.0b1. Andreas Enge 2019-06-18gnu: linbox: Add version 1.5.2....* gnu/packages/sagemath.scm (linbox-1.5.2): New variable. Andreas Enge 2019-06-18gnu: fflas-ffpack: Add version 2.3.2....* gnu/packages/sagemath.scm (fflas-ffpack-2.3.2): New variable. Andreas Enge 2019-06-18gnu: givaro: Add version 4.0.4....* gnu/packages/sagemath.scm (givaro-4.0.4): New variable. Andreas Enge 2019-06-18gnu: Add libhomfly....* gnu/packages/sagemath.scm (libhomfly): New variable. Andreas Enge 2019-06-18gnu: Add libbraiding....* gnu/packages/sagemath.scm (libbraiding): New variable. Andreas Enge 2019-06-17gnu: python-cypari2: Update to 2.1.1....* gnu/packages/sagemath.scm (python-cypari2): Update to 2.1.1. Andreas Enge 2019-06-17gnu: Add cliquer....* gnu/packages/sagemath.scm (cliquer): New variable. Andreas Enge 2019-02-17gnu: python-cypari2: Adjust indentation....* gnu/packages/sagemath.scm (python-cypari2): Reindent. Andreas Enge 2019-02-17gnu: python-gmpy2: Extend description....* gnu/packages/sagemath.scm (python-gmpy2): Provide a full sentence for the description. This is a follow-up to commit 5e388a6ebb3c287e2d54e03a3f37560beb0d75e9. Andreas Enge 2019-02-17gnu: python-gmpy2: Adjust indentation....* gnu/packages/sagemath.scm (python-gmpy2): Reindent. Marius Bakke 2019-02-17gnu: python-gmpy2: Add license....This is a follow-up to commit 5e388a6ebb3c287e2d54e03a3f37560beb0d75e9. * gnu/packages/sagemath.scm (python-gmpy2)[license]: Set to LGPL3+. Marius Bakke 2019-02-17gnu: Add python-gmpy2 and python2-gmpy2....* gnu/packages/sagemath.scm (python-gmpy2, python2-gmpy2): New variables. Andreas Enge