[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/16: tests: Update package-transitive-supported-systems tests.
From: |
Jan Nieuwenhuizen |
Subject: |
16/16: tests: Update package-transitive-supported-systems tests. |
Date: |
Sun, 23 Sep 2018 03:49:24 -0400 (EDT) |
janneke pushed a commit to branch core-updates-next
in repository guix.
commit 0db65c168fd6dec57a357735fe130c80feba5460
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sun Sep 23 08:04:19 2018 +0200
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.
---
tests/packages.scm | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/tests/packages.scm b/tests/packages.scm
index 237feb7..85c3ebe 100644
--- a/tests/packages.scm
+++ b/tests/packages.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès
<address@hidden>
+;;; Copyright © Jan (janneke) Nieuwenhuizen <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -36,6 +37,7 @@
#: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)
@@ -314,10 +316,25 @@
;; 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"
- branch core-updates-next created (now 0db65c1), Jan Nieuwenhuizen, 2018/09/23
- 03/16: gnu: m4-boot0: New variable., Jan Nieuwenhuizen, 2018/09/23
- 04/16: bootstrap: Use thunk for inputs in package-with-explicit-inputs., Jan Nieuwenhuizen, 2018/09/23
- 01/16: bootstrap: %bootstrap-inputs: Wrap input lists into thunks., Jan Nieuwenhuizen, 2018/09/23
- 05/16: bootstrap: static-bash-for-glibc: Consider %current-system at run time., Jan Nieuwenhuizen, 2018/09/23
- 08/16: gnu: Add linux-libre-headers-bootstrap-tarball., Jan Nieuwenhuizen, 2018/09/23
- 13/16: bootstrap: Replace GNU toolchain seeds with Mes for i686-linux., Jan Nieuwenhuizen, 2018/09/23
- 11/16: bootstrap: bison-boot0: Do not use `ranlib -D'., Jan Nieuwenhuizen, 2018/09/23
- 16/16: tests: Update package-transitive-supported-systems tests.,
Jan Nieuwenhuizen <=
- 02/16: bootstrap: %bootstrap-inputs+toolchain: Replace %bootstrap-inputs., Jan Nieuwenhuizen, 2018/09/23
- 12/16: bootstrap: perl-boot0: Disable validate-runpath?., Jan Nieuwenhuizen, 2018/09/23
- 07/16: guix: copy-linux-headers: Extract procedure, add headers., Jan Nieuwenhuizen, 2018/09/23
- 06/16: guix: package-from-tarball: Allow PROGRAM-TO-TEST to be #f., Jan Nieuwenhuizen, 2018/09/23
- 09/16: bootstrap: Add Mes bootstrap seeds., Jan Nieuwenhuizen, 2018/09/23
- 14/16: doc: Describe the Reduced Binary Seed bootstrap., Jan Nieuwenhuizen, 2018/09/23
- 15/16: bootstrap: Reduced Binary Seed bootstrap for x86_64 too., Jan Nieuwenhuizen, 2018/09/23
- 10/16: bootstrap: Add Mes bootstrap., Jan Nieuwenhuizen, 2018/09/23