aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016, 2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2022 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; 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-upstream)
  #:use-module (gnu packages base)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix build-system gnu)
  #:use-module (guix import print)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix upstream)
  #:use-module (guix tests)
  #:use-module (srfi srfi-64)
  #:use-module (ice-9 match))


(test-begin "upstream")

(test-equal "coalesce-sources same version"
  '((source "foo" "1"
            ("ftp://example.org/foo-1.tar.xz"
             "ftp://example.org/foo-1.tar.gz")
            ("ftp://example.org/foo-1.tar.xz.sig"
             "ftp://example.org/foo-1.tar.gz.sig")))

  (map (lambda (source)
         `(source ,(upstream-source-package source)
                  ,(upstream-source-version source)
                  ,(upstream-source-urls source)
                  ,(upstream-source-signature-urls source)))
       (coalesce-sources (list (upstream-source
                                (package "foo") (version "1")
                                (urls '("ftp://example.org/foo-1.tar.gz"))
                                (signature-urls
                                 '("ftp://example.org/foo-1.tar.gz.sig")))
                               (upstream-source
                                (package "foo") (version "1")
                                (urls '("ftp://example.org/foo-1.tar.xz"))
                                (signature-urls
                                 '("ftp://example.org/foo-1.tar.xz.sig")))))))

(test-end)
gtk.scm?id=4d998aa643be1011315cba636e53e82fb5f8437e'>gnu: spread-sheet-widget: Update to 0.7....Tobias Geerinckx-Rice 2020-10-13gnu: GTK+: Update to 3.24.3....Marius Bakke 2020-10-05Merge branch 'master' into stagingGuillaume Le Vaillant 2020-10-05gnu: libsigc++: Remove duplicate definition....Efraim Flashner 2020-09-05Merge remote-tracking branch 'origin/master' into stagingEfraim Flashner 2020-09-01gnu: guile-cairo: Update to 1.11.1....Efraim Flashner 2020-08-29gnu: libdatrie: Update to 0.2.12....Tobias Geerinckx-Rice 2020-08-19gnu: graphene: Update package definition....Raghav Gururajan 2020-08-18gnu: Add pangomm-2.42....Raghav Gururajan 2020-08-18gnu: Add cairomm-1.13....Raghav Gururajan 2020-08-18gnu: Add libthai....Raghav Gururajan 2020-08-18gnu: Add libdatrie....Raghav Gururajan 2020-08-16gnu: spread-sheet-widget: Update to 0.6....Efraim Flashner 2020-07-30gnu: spread-sheet-widget: Update to 0.5....Tobias Geerinckx-Rice 2020-07-25gnu: check: Update to 0.15.1....Marius Bakke 2020-07-25gnu: GTK+: Update to 3.24.21....Marius Bakke 2020-07-12gnu: Remove ".git" from "https://github/…/….git"....Ludovic Courtès 2020-06-11Merge branch 'master' into stagingMarius Bakke 2020-06-10gnu: gtkspell3: Update to 3.0.10....Tobias Geerinckx-Rice 2020-06-09gnu: Remove ganv-devel....Marius Bakke 2020-06-06Merge branch 'master' into stagingMarius Bakke 2020-06-04gnu: guile-rsvg: Use 'git-fetch' instead of a generated archive....Ludovic Courtès 2020-05-31gnu: inkscape: Add inkscape-1.0....Maxim Cournoyer 2020-05-31gnu: Add at-spi2-atk-minimal....Maxim Cournoyer 2020-05-26Merge branch 'master' into stagingMarius Bakke 2020-05-26gnu: python-pycairo: Update to 1.19.1....Marius Bakke 2020-05-26gnu: GTK+: Update to 3.24.20....Marius Bakke