2023-07-28 12:04:18 +00:00
|
|
|
{ pkgs ? import <nixpkgs> { }
|
|
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
2022-08-25 19:46:17 +00:00
|
|
|
}:
|
2023-07-28 12:04:18 +00:00
|
|
|
diskoLib.testLib.makeDiskoTest {
|
2023-07-14 09:37:30 +00:00
|
|
|
inherit pkgs;
|
2023-02-21 16:19:39 +00:00
|
|
|
name = "btrfs-subvolumes";
|
2022-10-29 11:19:29 +00:00
|
|
|
disko-config = ../example/btrfs-subvolumes.nix;
|
2022-08-25 21:12:49 +00:00
|
|
|
extraTestScript = ''
|
2023-07-24 17:35:24 +00:00
|
|
|
machine.succeed("test ! -e /test");
|
|
|
|
machine.succeed("test -e /home/user");
|
2022-09-30 10:55:28 +00:00
|
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path test$'");
|
2023-06-04 06:58:37 +00:00
|
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path nix$'");
|
|
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path home$'");
|
2023-09-12 21:03:16 +00:00
|
|
|
machine.succeed("test -e /.swapvol/swapfile");
|
|
|
|
machine.succeed("test -e /.swapvol/rel-path");
|
|
|
|
machine.succeed("test -e /partition-root/swapfile");
|
|
|
|
machine.succeed("test -e /partition-root/swapfile1");
|
2022-08-25 19:46:17 +00:00
|
|
|
'';
|
|
|
|
}
|
|
|
|
|