;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2022 Mathieu Othacehe ;;; ;;; 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 (gnu tests image) #:use-module (gnu) #:use-module (gnu image) #:use-module (gnu tests) #:autoload (gnu system image) (system-image root-offset image-with-os efi-disk-image) #:use-module (gnu system uuid) #:use-module (gnu system vm)
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-07-11 16:37:11 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-07-12 14:29:09 +0200
commit558637533f3adbf00fecbd921de6435f6ef9f93d (patch)
tree32b675bdc187b804e81c2a75aee3c40720462bf7 /gnu/packages/patool.scm
parentb4cafa71ae50fd2a5f0f24abf6b4b77ba5227ff6 (diff)
downloadguix-558637533f3adbf00fecbd921de6435f6ef9f93d.tar.gz
guix-558637533f3adbf00fecbd921de6435f6ef9f93d.zip
gnu: r-gdsfmt: Update to 1.36.1.
* gnu/packages/bioconductor.scm (r-gdsfmt): Update to 1.36.1. [properties]: Tell updater to leave the extra inputs be.
Diffstat (limited to 'gnu/packages/patool.scm')
0 files changed, 0 insertions, 0 deletions
)) (partition-get-name boot-partition))) ;; Image i3. (define i3-image #$(system-image i3)) (define d3-device (get-device i3-image)) (test-equal "msdos" (disk-type-name (disk-probe d3-device))) (test-equal 2 (disk-get-primary-partition-count (disk-new d3-device))) ;; Image i4. (define i4-image #$(system-image i4)) (define d4-device (get-device i4-image)) (test-equal "gpt" (disk-type-name (disk-probe d4-device))) (test-equal 2 (disk-get-primary-partition-count (disk-new d4-device))) ;; Image i5. (define i5-image #$(system-image i5)) (define d5-device (get-device i5-image)) (define (sector->byte sector) (/ (* sector (device-sector-size d5-device)) MEBIBYTE-SIZE)) (test-equal "gpt" (disk-type-name (disk-probe d5-device))) (test-equal 2 (disk-get-primary-partition-count (disk-new d5-device))) (test-equal '("fat32" "ext4") (map (compose filesystem-type-name partition-fs-type) (filter data-partition? (disk-partitions (disk-new d5-device))))) ;; The first partition has a 1MiB offset has a 128MiB size. The ;; second partition should then start at 129MiB. (test-equal '(1 129) (map (compose sector->byte partition-start) (filter data-partition? (disk-partitions (disk-new d5-device))))) ;; Image i6. (define i6-image #$(system-image i6)) (define d6-device (get-device i6-image)) (test-equal "gpt" (disk-type-name (disk-probe d6-device))) (test-end))))) (gexp->derivation "images-test" test)) (define %test-images (system-test (name "images") (description "Build and test basic system images.") (value (run-images-test))))