mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
Add test for examples/luks-btrfs-subvolumes.nix
This commit is contained in:
1 parent
6277e8ed99
commit
d306d84fb0
1 file changed
+13
@@ -0,0 +1,13 @@
|
||||
{ pkgs ? (import <nixpkgs> { })
|
||||
, makeDiskoTest ? (pkgs.callPackage ../lib { }).testLib.makeDiskoTest
|
||||
}:
|
||||
makeDiskoTest {
|
||||
inherit pkgs;
|
||||
name = "luks-btrfs-subvolumes";
|
||||
disko-config = ../example/luks-btrfs-subvolumes.nix;
|
||||
extraTestScript = ''
|
||||
machine.succeed("cryptsetup isLuks /dev/vda2");
|
||||
machine.succeed("btrfs subvolume list / | grep -qs 'path nix$'");
|
||||
machine.succeed("btrfs subvolume list / | grep -qs 'path home$'");
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user