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)
ius Bakke 2020-06-26gnu: binutils@2.33.1: Do not inherit replacements from binutils....Marius Bakke 2020-06-26gnu: binutils-gold: Inherit from 'binutils+documentation'....Marius Bakke 2020-06-18gnu: coreutils: Update broken tests for the Hurd....Jan (janneke) Nieuwenhuizen 2020-05-26Merge branch 'master' into stagingMarius Bakke 2020-05-11gnu: proot: Fix test failures....Ludovic Courtès 2020-05-08Merge branch 'core-updates'Marius Bakke 2020-05-07gnu: glibc/hurd-headers: Cross-build fix for the Hurd....Jan (janneke) Nieuwenhuizen 2020-04-26gnu: tzdata: Update to 2020a....Leo Famulari 2020-04-24gnu: Remove obsolete glibc-locales packages....Marius Bakke 2020-04-24gnu: Update glibc locale compatibility packages for 2.29....Marius Bakke 2020-04-20gnu: tar: Disable troublesome tests on the Hurd....Jan (janneke) Nieuwenhuizen 2020-04-20gnu: coreutils: Mark three more tests XFAIL on the Hurd....Jan (janneke) Nieuwenhuizen 2020-04-01Revert "gnu: coreutils: Fix cross-compilation to i586-pc-gnu."...Ludovic Courtès 2020-03-31gnu: coreutils: Fix cross-compilation to i586-pc-gnu....Ludovic Courtès 2020-03-30gnu: coreutils: Typo: Use libcap only when supported....Jan Nieuwenhuizen 2020-03-29gnu: coreutils: Handle failing tests on Hurd....Jan Nieuwenhuizen 2020-03-28gnu: OpenJDK: Build with GNU Make 4.2....Marius Bakke 2020-03-26gnu: make: Support for the Hurd....Jan Nieuwenhuizen 2020-03-24gnu: glibc: Add signal SA_SIGINFO support for the Hurd....Jan Nieuwenhuizen 2020-03-24gnu: glibc: Add clock patches for the Hurd....Jan Nieuwenhuizen 2020-03-21Merge branch 'master' into core-updatesMarius Bakke 2020-03-21gnu: coreutils: Improve description....Vitaliy Shatrov 2020-03-18gnu: make-ld-wrapper: Default to Guile 3.0....Marius Bakke 2020-03-16gnu: ld-wrapper: Use _IOLBF on Guile 2.0 only....Ludovic Courtès 2020-03-14gnu: coreutils: Remove libcap dependency for the Hurd....Jan Nieuwenhuizen 2020-03-09gnu: coreutils: Fix cross-compilation....Mathieu Othacehe 2020-03-05gnu: coreutils: Update to 8.32....Marius Bakke 2020-02-15gnu: glibc: Update to 2.31....Marius Bakke 2020-02-15gnu: ath9k-htc-firmware: Build with binutils@2.33.1....Marius Bakke 2020-02-15gnu: binutils: Update to 2.34....Marius Bakke 2020-02-06gnu: gcc: Switch back to using 'C_INCLUDE_PATH' instead of 'CPATH'....Ludovic Courtès