mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
tests: Update package-transitive-supported-systems tests.
* tests/packages.scm ("package-transitive-supported-systems, implicit inputs"): Test traditionally-bootstrapped architecture. ("package-transitive-supported-systems: reduced binary seed, implicit inputs"): New test for Reduced Binary Seed bootstrap.
This commit is contained in:
parent
eb4434598c
commit
0db65c168f
1 changed files with 18 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -36,6 +37,7 @@ (define-module (test-packages)
|
|||
#:use-module (guix build-system)
|
||||
#:use-module (guix build-system trivial)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix memoization)
|
||||
#:use-module (guix profiles)
|
||||
#:use-module (guix scripts package)
|
||||
#:use-module (gnu packages)
|
||||
|
@ -311,13 +313,28 @@ (define read-at
|
|||
(test-equal "package-transitive-supported-systems, implicit inputs"
|
||||
%supported-systems
|
||||
|
||||
;; Here GNU-BUILD-SYSTEM adds implicit inputs that build only on
|
||||
;; %SUPPORTED-SYSTEMS. Thus the others must be ignored.
|
||||
(let ((p (dummy-package "foo"
|
||||
(build-system gnu-build-system)
|
||||
(supported-systems
|
||||
`("does-not-exist" "foobar" ,@%supported-systems)))))
|
||||
(invalidate-memoization! package-transitive-supported-systems)
|
||||
(parameterize ((%current-system "armhf-linux")) ; a traditionally-bootstrapped architecture
|
||||
(package-transitive-supported-systems p))))
|
||||
|
||||
(test-equal "package-transitive-supported-systems: reduced binary seed, implicit inputs"
|
||||
'("x86_64-linux" "i686-linux")
|
||||
|
||||
;; Here GNU-BUILD-SYSTEM adds implicit inputs that build only on
|
||||
;; %SUPPORTED-SYSTEMS. Thus the others must be ignored.
|
||||
(let ((p (dummy-package "foo"
|
||||
(build-system gnu-build-system)
|
||||
(supported-systems
|
||||
`("does-not-exist" "foobar" ,@%supported-systems)))))
|
||||
(package-transitive-supported-systems p)))
|
||||
(invalidate-memoization! package-transitive-supported-systems)
|
||||
(parameterize ((%current-system "x86_64-linux"))
|
||||
(package-transitive-supported-systems p))))
|
||||
|
||||
(test-assert "supported-package?"
|
||||
(let ((p (dummy-package "foo"
|
||||
|
|
Loading…
Reference in a new issue