[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/28: tests: install: Test a JFS root file system.
From: |
guix-commits |
Subject: |
27/28: tests: install: Test a JFS root file system. |
Date: |
Fri, 3 Jan 2020 07:54:47 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 4f51fdba01b574ef8b6f3cd31f9893b35c7b4ec6
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Tue Dec 31 01:42:19 2019 +0100
tests: install: Test a JFS root file system.
* gnu/tests/install.scm (%jfs-root-os, %jfs-root-installation-script)
(%test-jfs-root-os): New variables.
---
gnu/tests/install.scm | 78 +++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 76 insertions(+), 2 deletions(-)
diff --git a/gnu/tests/install.scm b/gnu/tests/install.scm
index bce4c4b..8842d48 100644
--- a/gnu/tests/install.scm
+++ b/gnu/tests/install.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <address@hidden>
-;;; Copyright © 2017 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -43,7 +43,8 @@
%test-separate-home-os
%test-raid-root-os
%test-encrypted-root-os
- %test-btrfs-root-os))
+ %test-btrfs-root-os
+ %test-jfs-root-os))
;;; Commentary:
;;;
@@ -810,4 +811,77 @@ build (current-guix) and then store a couple of full
system images.")
(command (qemu-command/writable-image image)))
(run-basic-test %btrfs-root-os command "btrfs-root-os")))))
+
+;;;
+;;; JFS root file system.
+;;;
+
+(define-os-with-source (%jfs-root-os %jfs-root-os-source)
+ ;; The OS we want to install.
+ (use-modules (gnu) (gnu tests) (srfi srfi-1))
+
+ (operating-system
+ (host-name "liberigilo")
+ (timezone "Europe/Paris")
+ (locale "en_US.UTF-8")
+
+ (bootloader (bootloader-configuration
+ (bootloader grub-bootloader)
+ (target "/dev/vdb")))
+ (kernel-arguments '("console=ttyS0"))
+ (file-systems (cons (file-system
+ (device (file-system-label "my-root"))
+ (mount-point "/")
+ (type "jfs"))
+ %base-file-systems))
+ (users (cons (user-account
+ (name "charlie")
+ (group "users")
+ (supplementary-groups '("wheel" "audio" "video")))
+ %base-user-accounts))
+ (services (cons (service marionette-service-type
+ (marionette-configuration
+ (imported-modules '((gnu services herd)
+ (guix combinators)))))
+ %base-services))))
+
+(define %jfs-root-installation-script
+ ;; Shell script of a simple installation.
+ "\
+. /etc/profile
+set -e -x
+guix --version
+
+export GUIX_BUILD_OPTIONS=--no-grafts
+ls -l /run/current-system/gc-roots
+parted --script /dev/vdb mklabel gpt \\
+ mkpart primary ext2 1M 3M \\
+ mkpart primary ext2 3M 2G \\
+ set 1 boot on \\
+ set 1 bios_grub on
+jfs_mkfs -L my-root -q /dev/vdb2
+mount /dev/vdb2 /mnt
+herd start cow-store /mnt
+mkdir /mnt/etc
+cp /etc/target-config.scm /mnt/etc/config.scm
+guix system build /mnt/etc/config.scm
+guix system init /mnt/etc/config.scm /mnt --no-substitutes
+sync
+reboot\n")
+
+(define %test-jfs-root-os
+ (system-test
+ (name "jfs-root-os")
+ (description
+ "Test basic functionality of an OS installed like one would do by hand.
+This test is expensive in terms of CPU and storage usage since we need to
+build (current-guix) and then store a couple of full system images.")
+ (value
+ (mlet* %store-monad ((image (run-install %jfs-root-os
+ %jfs-root-os-source
+ #:script
+ %jfs-root-installation-script))
+ (command (qemu-command/writable-image image)))
+ (run-basic-test %jfs-root-os command "jfs-root-os")))))
+
;;; install.scm ends here
- 10/28: gnu: musl: Update to 1.1.24., (continued)
- 10/28: gnu: musl: Update to 1.1.24., guix-commits, 2020/01/03
- 12/28: gnu: zam-plugins: Update to 3.12., guix-commits, 2020/01/03
- 15/28: gnu: drumkv1: Update to 0.9.12., guix-commits, 2020/01/03
- 14/28: gnu: synthv1: Update to 0.9.12., guix-commits, 2020/01/03
- 22/28: file-systems: Add support for JFS., guix-commits, 2020/01/03
- 21/28: gnu: gloox: Update to 1.0.23., guix-commits, 2020/01/03
- 17/28: gnu: padthv1: Update to 0.9.12., guix-commits, 2020/01/03
- 18/28: gnu: qtractor: Update to 0.9.12., guix-commits, 2020/01/03
- 20/28: gnu: hexchat: Update to 2.14.3., guix-commits, 2020/01/03
- 24/28: gnu: Add jfsutils-static., guix-commits, 2020/01/03
- 27/28: tests: install: Test a JFS root file system.,
guix-commits <=
- 09/28: gnu: whois: Update to 5.5.4., guix-commits, 2020/01/03
- 25/28: gnu: Add jfs_fsck-static., guix-commits, 2020/01/03
- 19/28: gnu: tuxguitar: Update to 1.5.3., guix-commits, 2020/01/03
- 11/28: gnu: x42-plugins: Update to 20191215., guix-commits, 2020/01/03
- 26/28: linux-initrd: Add support for JFS., guix-commits, 2020/01/03
- 28/28: install: Add jfsutils to the installation image., guix-commits, 2020/01/03
- 23/28: uuid: Add support for JFS., guix-commits, 2020/01/03