patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 1d044cb04828ea221e7d1656e5eb7942669fe73c 938 bytes (raw)
name: release/checks/no-roothash.nix 	 # note: path name is non-authoritative(*)

 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
 
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2023-2024 Alyssa Ross <hi@alyssa.is>

import ../../lib/call-package.nix (
{ callSpectrumPackage, rootfs, lib, nixosTest, path }:

lib.fix (self: nixosTest ({ pkgs, stdenv, ... }:

let
  initramfs = callSpectrumPackage ../../host/initramfs {};

  inherit (import (path + /nixos/lib/qemu-common.nix) { inherit lib pkgs; })
    qemuBinary qemuSerialDevice;
in {
  name = "spectrum-test-initramfs-no-roothash";
  nodes = {};

  testScript = ''
    import shlex

    flags = "${qemuBinary self.config.qemu.package} " + " ".join(map(shlex.quote, [
      "-m", "512",
      "-kernel", "${rootfs.kernel}/${stdenv.hostPlatform.linux-kernel.target}",
      "-initrd", "${initramfs}",
      "-append", "console=${qemuSerialDevice} panic=-1",
    ]))

    machine = create_machine(flags)

    machine.start()
    machine.wait_for_console_text("x-spectrum-roothash not set")
  '';
}))) (_: {})

debug log:

solving 1d044cb04828ea221e7d1656e5eb7942669fe73c ...
found 1d044cb04828ea221e7d1656e5eb7942669fe73c in https://inbox.spectrum-os.org/spectrum-devel/20251029-updates-v1-4-401c1be2a11b@gmail.com/
found 76d1e8b88ba74e6981775f3d4b8d10138c342d84 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100644 76d1e8b88ba74e6981775f3d4b8d10138c342d84	release/checks/no-roothash.nix

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20251029-updates-v1-4-401c1be2a11b@gmail.com/
diff --git a/release/checks/no-roothash.nix b/release/checks/no-roothash.nix
index 76d1e8b88ba74e6981775f3d4b8d10138c342d84..1d044cb04828ea221e7d1656e5eb7942669fe73c 100644

Checking patch release/checks/no-roothash.nix...
Applied patch release/checks/no-roothash.nix cleanly.

index at:
100644 1d044cb04828ea221e7d1656e5eb7942669fe73c	release/checks/no-roothash.nix

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).