summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLassulus <github@lassul.us>2022-07-10 09:41:41 +0200
committerGitHub <noreply@github.com>2022-07-10 09:41:41 +0200
commit7dce65dd281df6b3d441a18a2bc564c9a05cc706 (patch)
treeb9ac0c6f69ac0f24b808faebc8cfd9c91eed9d59 /tests
parent1af856886eca80ce39b61fd97816e4b3be07b236 (diff)
parent9b53ee7b11b1bf28483c0c5a73f11a3e73a561cd (diff)
Merge pull request #6 from moduon/noop
feat: noop partitions
Diffstat (limited to 'tests')
-rw-r--r--tests/test.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test.nix b/tests/test.nix
index 0f875e6..2ab28bf 100644
--- a/tests/test.nix
+++ b/tests/test.nix
@@ -56,13 +56,20 @@ import <nixpkgs/nixos/tests/make-test.nix> ({ pkgs, ... }: let
};
home = {
type = "lv";
- size = "100M";
+ size = "10M";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/home";
};
};
+ raw = {
+ type = "lv";
+ size = "10M";
+ content = {
+ type = "noop";
+ };
+ };
};
};
};
@@ -92,6 +99,7 @@ in {
$machine->succeed("echo 'secret' > /tmp/secret.key");
$machine->succeed("${pkgs.writeScript "create" ((import ../lib).create disko-config)}");
$machine->succeed("${pkgs.writeScript "mount" ((import ../lib).mount disko-config)}");
+ $machine->succeed("test -b /dev/mapper/pool-raw");
'';
})