add test for hybrid configuration

This commit is contained in:
Jörg Thalheim 2023-02-02 14:49:20 +01:00
parent daaba55a28
commit d23fcb611e
2 changed files with 11 additions and 2 deletions

View file

@ -1,9 +1,9 @@
{ disk, ... }:
{ disks ? [ "/dev/vda" ], ... }:
{
disk = {
main = {
type = "disk";
device = disk;
device = builtins.elemAt disks 0;
content = {
type = "table";
format = "gpt";

9
tests/hybrid.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
disko-config = ../example/hybrid.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
'';
}