summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-08-26 12:50:52 +0200
committerlassulus <lassulus@lassul.us>2022-08-26 12:55:50 +0200
commit9bb4aec9640cbc30e241c267158e506278862b5e (patch)
treec6057a3d362e06742073b35d4c11db7ee9a0a820 /tests
parent722dde361ca51864fd9b3b6b9a78875e436fbc24 (diff)
support zfs over legacy fs
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-over-legacy.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/zfs-over-legacy.nix b/tests/zfs-over-legacy.nix
new file mode 100644
index 0000000..13f86a9
--- /dev/null
+++ b/tests/zfs-over-legacy.nix
@@ -0,0 +1,12 @@
+{ pkgs ? (import <nixpkgs> { })
+, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
+}:
+makeDiskoTest {
+ disko-config = import ../example/zfs-over-legacy.nix;
+ extraTestScript = ''
+ machine.succeed("test -e /mnt/zfs_fs");
+ machine.succeed("mountpoint /mnt");
+ machine.succeed("mountpoint /mnt/zfs_fs");
+ '';
+}
+