aboutsummaryrefslogtreecommitdiff
;;; 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"))))
Maxime Devos 2024-07-18gnu: Add sddm-qt5....* gnu/packages/display-managers.scm (sddm-qt5): New variable. Change-Id: I84250b32b15bed7b0dc0bf819ce90f32a6e7ad6d Zheng Junjie 2024-07-18gnu: sddm: Enable qt6....* gnu/packages/display-managers.scm (sddm): Enable qt6. [native-inputs]: Use qttools replace qttools-5. [inputs]: Add xsetroot, qtwayland. Remove qtgraphicaleffects, qtquickcontrols-5, qtquickcontrols2-5. Use qtbase, qtsvg and qtdeclarative replace qtbase-5, qtsvg-5 and qtdeclarative-5. [arguments]<#:configure-flags>: When input qtbase is qt6, Add -DBUILD_WITH_QT6=ON and adjust CMAKE_CXX_FLAGS and QT_IMPORTS_DIR. <#:phases>: Add embed-xsetroot-reference. When When input qtbase is qt6, Add fix-QML_IMPORT_PATH phase. Change-Id: Id2b7f6e44e507e306e6ccd2baaf3becd8c812c22 Zheng Junjie 2024-06-24gnu: sddm: Update to 0.21.0....* gnu/packages/display-managers.scm (sddm): Update to 0.21.0. [arguments]<#:configure-flags>: Add "-DINSTALL_PAM_CONFIGURATION=OFF". Change-Id: Iac61bcc14963c5c2f04659603158f4507fad5da4 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Sughosha 2024-04-23gnu: slim: Update to 1.4.1....* gnu/packages/display-managers.scm (slim): Update to 1.4.1. [arguments]: Do not install systemd files again. Change-Id: Ida6ed99dad7293dc64d91eb4dec0870608afffbe Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Feng Shu 2024-03-24gnu: lightdm: Run tests with dbus-1.15.0....* gnu/packages/display-managers.scm (lightdm)[native-inputs]: Replace dbus with dbus-1.15.0. Change-Id: Icc3b3f7d4589b60220e15aaa02d2203af308d44c Signed-off-by: Christopher Baines <mail@cbaines.net> Vivien Kraus 2024-03-24gnu: lightdm: Update style....* gnu/packages/display-managers.scm (lightdm)[arguments]: Convert to list of G-Expressions. Change-Id: I8d7beb73e636be066d2dbe2588a5ebcb2f5afec0 Signed-off-by: Christopher Baines <mail@cbaines.net> Vivien Kraus 2024-01-05gnu: sddm: Update to 0.20.0....* gnu/packages/display-managers.scm (sddm)[version]: Update to 0.20.0. [source]: Remove snippet and use git-fetch method instead. [arguments]: Use gexp, remove outdate comment and handle /include/qt5 dir of qtdeclarative. Change-Id: I6f6bd80291c36b1b80c9ff7f2154593cea2c9d87 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Feng Shu 2023-12-23gnu: slim: Update to 1.4.0....* gnu/packages/display-managers.scm (slim)[version]: Update to 1.4.0. [inputs]: Remove input label. [arguments]: Use gexp and remove fix-0-pointer-comparison. [home-pages]: Update to slim-fork's url. * gnu/packages/patches/slim-config.patch: Port to slim-1.4.0. * gnu/packages/patches/slim-display.patch: Port to slim-1.4.0. * gnu/packages/patches/slim-reset.patch: Deleted, no ablilty to port this patch for big change in v1.4.0. * gnu/packages/patches/slim-session.patch: Deleted. seem to work without this patch, further observation is needed. * gnu/packages/patches/slim-sigusr1.patch: Deleted, fixed in upstream. * gnu/local.mk: Remove slim-reset.patch, slim-session.patch, slim-sigur1.patch. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Feng Shu 2023-10-14gnu: Add dexy-color-sddm-theme....* gnu/packages/display-managers.scm (dexy-color-sddm-theme): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Sergio Pastor Pérez 2023-10-14gnu: Add abstractdark-sddm-theme....* gnu/packages/display-managers.scm (abstractdark-sddm-theme): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Sergio Pastor Pérez 2023-08-15gnu: lightdm-gtk-greeter: Build with librsvg-for-system....* gnu/packages/display-managers.scm (lightdm-gtk-greeter)[inputs]: Replace librsvg with librsvg-for-system. Efraim Flashner