2022-08-26 09:41:58 +03:00
|
|
|
{ pkgs ? (import <nixpkgs> { })
|
2023-07-14 12:37:30 +03:00
|
|
|
, makeDiskoTest ? (pkgs.callPackage ../lib { }).testLib.makeDiskoTest
|
2022-08-25 22:46:17 +03:00
|
|
|
}:
|
2022-08-26 00:12:49 +03:00
|
|
|
makeDiskoTest {
|
2023-07-14 12:37:30 +03:00
|
|
|
inherit pkgs;
|
2023-02-21 19:19:39 +03:00
|
|
|
name = "btrfs-subvolumes";
|
2022-10-29 14:19:29 +03:00
|
|
|
disko-config = ../example/btrfs-subvolumes.nix;
|
2022-08-26 00:12:49 +03:00
|
|
|
extraTestScript = ''
|
2022-09-30 13:55:28 +03:00
|
|
|
machine.succeed("test -e /test");
|
|
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path test$'");
|
2023-06-04 09:58:37 +03:00
|
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path nix$'");
|
|
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path home$'");
|
2022-08-25 22:46:17 +03:00
|
|
|
'';
|
|
|
|
}
|
|
|
|
|