;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020 Maxim Cournoyer ;;; ;;; 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 . (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")))) Author 2019-08-27gnu: libmicrohttpd: Update to 0.9.66....Ludovic Courtès 2019-08-24gnu: libextractor: Adapt to exiv2 0.27....Ludovic Courtès 2019-07-09gnu: libmicrohttpd: Update to 0.9.65....Tobias Geerinckx-Rice 2019-06-15gnu: libmicrohttpd: Update to 0.9.64....Ludovic Courtès 2019-04-04gnu: Move nss & co. to nss.scm....Ludovic Courtès 2019-03-18gnu: libextractor: Update to 1.9....ng0 2019-03-18Correct name and email address for ng0....ng0 2019-03-07gnu: libmicrohttpd: Enable parallel tests....Efraim Flashner 2019-03-07gnu: libmicrohttpd: Update to 0.9.63....Efraim Flashner 2019-01-16gnu: gnurl: Add properties for updater....Efraim Flashner 2019-01-16gnu: Move sqlite to separate module....Ricardo Wurmus 2019-01-14gnu: gnurl: Update to 7.63.0....Efraim Flashner 2019-01-04gnu: guile-gnunet: Update to 0.0-1.d12167a....Alex Vong 2019-01-04gnu: libmicrohttpd: Update to 0.9.62....Alex Vong 2019-01-04gnu: libextractor: Fix CVE-2018-{20430,20431}....Alex Vong 2019-01-04gnu: libextractor: Update to 1.8....Alex Vong 2018-11-29gnu: gnurl: Update to 7.62.0....ng0