summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2022-09-04 12:10:09 +0200
committerJörg Thalheim <joerg@thalheim.io>2022-09-04 12:27:59 +0200
commitfd2de4ddd46ce24c10cb2ba8fbfc744acc36da03 (patch)
tree4d5d2d81a76bb80f66c412c459f5a32be46f92b8 /tests
parente0de34c07d1b78b81f6c3fbf3aa41f08ef8db7fb (diff)
fix gpt-bios-compat example and test it.
Diffstat (limited to 'tests')
-rw-r--r--tests/gpt-bios-compat.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/gpt-bios-compat.nix b/tests/gpt-bios-compat.nix
new file mode 100644
index 0000000..df35335
--- /dev/null
+++ b/tests/gpt-bios-compat.nix
@@ -0,0 +1,10 @@
+{ pkgs ? (import <nixpkgs> { })
+, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
+}:
+makeDiskoTest {
+ disko-config = import ../example/gpt-bios-compat.nix;
+ extraTestScript = ''
+ machine.succeed("mountpoint /mnt");
+ machine.succeed("grub-install --target=i386-pc /dev/vdb");
+ '';
+}