mirror of
https://github.com/nix-community/disko
synced 2024-11-10 14:24:27 +00:00
14 lines
477 B
Nix
14 lines
477 B
Nix
{ pkgs ? (import <nixpkgs> { })
|
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
|
}:
|
|
makeDiskoTest {
|
|
name = "btrfs-subvolumes";
|
|
disko-config = ../example/btrfs-subvolumes.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("test -e /test");
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path test$'");
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path nix$'");
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path home$'");
|
|
'';
|
|
}
|
|
|