aboutsummaryrefslogtreecommitdiff
path: root/tests/offload.scm
blob: 5a5de4e8b92d1fb539bdd551701c29ab800e2856 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; 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 (tests offload)
  #:use-module (guix scripts offload)
  #:use-module (srfi srfi-64))


(test-begin "offload")

(define-syntax-rule (expose-internal-definitions s1 s2 ...)
  (begin
    (define s1 (@@ (guix scripts offload) s1))
    (define s2 (@@ (guix scripts offload) s2)) ...))

(expose-internal-definitions machine-matches?
                             build-requirements-system
                             build-requirements-features
                             build-machine-system
                             build-machine-systems
                             %build-machine-system
                             %build-machine-systems
                             build-machine-features)

(define (deprecated-build-machine system)
  (build-machine
   (name "m1")
   (user "dummy")
   (host-key "some-key")
   (system system)))

(define (new-build-machine systems)
  (build-machine
   (name "m1")
   (user "dummy")
   (host-key "some-key")
   (systems systems)))

;;; Test that deprecated build-machine definitions still work.
(test-assert (machine-matches? (deprecated-build-machine "i686-linux")
                               (build-requirements
                                (system "i686-linux"))))


(test-assert (machine-matches? (new-build-machine '("i686-linux"))
                               (build-requirements
                                (system "i686-linux"))))

;;; A build machine can act as more than one system type, thanks to QEMU
;;; emulation.
(test-assert (machine-matches? (new-build-machine '("armhf-linux"
                                                    "aarch64-linux"
                                                    "i686-linux"
                                                    "x86_64-linux"))
                               (build-requirements
                                (system "armhf-linux"))))
itle='2022-05-31 22:32:17 +0200'>2022-05-31gnu: Add glibc-locales-2.32....* gnu/packages/base.scm (glibc-locales-2.32): New variable. Ricardo Wurmus 2022-05-31gnu: Add glibc-locales-2.31....* gnu/packages/base.scm (glibc-locales-2.31): New variable. Ricardo Wurmus 2022-05-31gnu: Add glibc-locales-2.30....* gnu/packages/base.scm (glibc-locales-2.30): New variable. Ricardo Wurmus 2022-05-31gnu: Add glibc-2.32....* gnu/packages/base.scm (glibc-2.32): New variable. Ricardo Wurmus 2022-05-30gnu: hello: Update to 2.12.1....* gnu/packages/base.scm (hello): Update to 2.12.1. Efraim Flashner 2022-05-08gnu: tzdata: Update to 2022a....* gnu/packages/base.scm (tzdata): Update to 2022a. Leo Famulari 2022-03-03gnu: hello: Update to 2.12....* gnu/packages/base.scm (hello): Update to 2.12. Maxim Cournoyer 2022-02-27gnu: glibc-utf8-locales: Hide the package....This package has a long history of confusing users, due to containing only a small, arbitrary subset of UTF-8 locales. * gnu/packages/base.scm (glibc-utf8-locales): Define as a hidden package. * doc/guix.texi (Application Setup): Do not mention glibc-utf8-locales. Instead, provide an example for defining a custom locales package. Maxim Cournoyer 2022-02-14gnu: Remove glibc@2.2.5 and gcc-2.95-wrapper....This reverts commits a95924c9ac3f238cde243c96d552ff59ad77ca16 and defa85b26537a3cc20624fb9dbcae906226361d5, which were used to build nhc98@1.22 but are no longer needed. * gnu/packages/base.scm (glibc-2.2.5): Remove. * gnu/packages/commencement.scm (gcc-2.95-wrapper): Remove. (glibc-mesboot0, gcc-mesboot0, binutils-mesboot): Keep private. Ludovic Courtès 2022-02-07gnu: Add glibc-2.2.5....* gnu/packages/commencement.scm (glibc-mesboot0, gcc-mesboot0, binutils-mesboot): Export variables. * gnu/packages/base.scm (glibc-2.2.5): New variable. Ricardo Wurmus 2022-01-17Merge branch 'version-1.4.0'...With resolved conflicts in: gnu/packages/gnome.scm gnu/packages/openstack.scm gnu/packages/python-xyz.scm Maxim Cournoyer 2022-01-10gnu: binutils: Fix CVE-2021-45078....This is for the release branch. Should we also use a graft for the master branch? It would be even better if we could add a binutils-next package that users could install, in my opinion. * gnu/packages/patches/binutils-CVE-2021-45078.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/base.scm (binutils)[source]: Use it. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Leo Famulari 2022-01-10gnu: binutils: Absorb binutils-next....* gnu/packages/base.scm (binutils)[configure-flags]: Set out-of-source? to #t. {--enable-64-bit-bfd, --enable-compressed-debug-sections=all, --enable-lto, --enable-separate-code, --enable-threads}: New flags. (binutils-next): Delete variable. (binutils-gold): Inherit from binutils. * gnu/packages/linux.scm (kexec-tools)[native-inputs]: Replace binutils-next with binutils. Maxim Cournoyer 2022-01-09gnu: hello: Update to 2.11....* gnu/packages/base.scm (hello): Update to 2.11. Tobias Geerinckx-Rice 2022-01-14gnu: glibc-locales: Allow finding newer versions....* gnu/packages/base.scm (glibc-locales)[properties]: New field. Efraim Flashner