Skip to content

Commit

Permalink
Merge #153
Browse files Browse the repository at this point in the history
153: tests: add test names r=Mic92 a=lilyinstarlight



Co-authored-by: Lily Foster <[email protected]>
  • Loading branch information
bors[bot] and lilyinstarlight authored Feb 21, 2023
2 parents d0d6297 + 1dd1ca3 commit 1cfb46e
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/bcachefs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let
linux-bcachefs = pkgs.callPackage ../linux-testing-bcachefs.nix { };
in
makeDiskoTest {
name = "bcachefs";
disko-config = ../example/bcachefs.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
Expand Down
1 change: 1 addition & 0 deletions tests/boot-raid1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "boot-raid1";
disko-config = ../example/boot-raid1.nix;
extraTestScript = ''
machine.succeed("test -b /dev/md/boot");
Expand Down
1 change: 1 addition & 0 deletions tests/btrfs-subvolumes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "btrfs-subvolumes";
disko-config = ../example/btrfs-subvolumes.nix;
extraTestScript = ''
machine.succeed("test -e /test");
Expand Down
1 change: 1 addition & 0 deletions tests/cli.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "cli";
disko-config = ../example/complex.nix;
extraConfig = {
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
Expand Down
1 change: 1 addition & 0 deletions tests/complex.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "complex";
disko-config = ../example/complex.nix;
extraConfig = {
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
Expand Down
1 change: 1 addition & 0 deletions tests/gpt-bios-compat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "gpt-bios-compat";
disko-config = ../example/gpt-bios-compat.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
Expand Down
1 change: 1 addition & 0 deletions tests/hybrid-tmpfs-on-root.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "hybrid-tmpfs-on-root";
disko-config = ../example/hybrid-tmpfs-on-root.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
Expand Down
1 change: 1 addition & 0 deletions tests/hybrid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "hybrid";
disko-config = ../example/hybrid.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
Expand Down
5 changes: 3 additions & 2 deletions tests/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
}:
{
makeDiskoTest =
{ disko-config
{ name
, disko-config
, extraTestScript ? ""
, bootCommands ? ""
, extraConfig ? { }
Expand Down Expand Up @@ -70,7 +71,7 @@
}).config.system.build.toplevel;
in
makeTest' {
name = "disko";
name = "disko-${name}";

inherit enableOCR;
nodes.machine = { config, pkgs, modulesPath, ... }: {
Expand Down
1 change: 1 addition & 0 deletions tests/luks-lvm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "luks-lvm";
disko-config = ../example/luks-lvm.nix;
extraTestScript = ''
machine.succeed("cryptsetup isLuks /dev/vda2");
Expand Down
1 change: 1 addition & 0 deletions tests/lvm-raid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "lvm-raid";
disko-config = ../example/lvm-raid.nix;
extraTestScript = ''
machine.succeed("mountpoint /home");
Expand Down
1 change: 1 addition & 0 deletions tests/mdadm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "mdadm";
disko-config = ../example/mdadm.nix;
extraTestScript = ''
machine.succeed("test -b /dev/md/raid1");
Expand Down
1 change: 1 addition & 0 deletions tests/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "module";
disko-config = ../example/complex.nix;
extraConfig = {
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
Expand Down
1 change: 1 addition & 0 deletions tests/multi-device-no-deps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "multi-device-no-deps";
disko-config = ../example/multi-device-no-deps.nix;
testBoot = false;
extraTestScript = ''
Expand Down
1 change: 1 addition & 0 deletions tests/negative-size.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "negative-size";
disko-config = ../example/negative-size.nix;
testBoot = false;
extraTestScript = ''
Expand Down
1 change: 1 addition & 0 deletions tests/simple-efi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "simple-efi";
disko-config = ../example/simple-efi.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
Expand Down
1 change: 1 addition & 0 deletions tests/swap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "swap";
disko-config = ../example/swap.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
Expand Down
1 change: 1 addition & 0 deletions tests/tmpfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "tmpfs";
disko-config = ../example/tmpfs.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
Expand Down
1 change: 1 addition & 0 deletions tests/with-lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "with-lib";
disko-config = ../example/with-lib.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
Expand Down
1 change: 1 addition & 0 deletions tests/zfs-over-legacy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "zfs-over-legacy";
disko-config = ../example/zfs-over-legacy.nix;
extraTestScript = ''
machine.succeed("test -e /zfs_fs");
Expand Down
1 change: 1 addition & 0 deletions tests/zfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
name = "zfs";
disko-config = ../example/zfs.nix;
extraConfig = {
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
Expand Down

0 comments on commit 1cfb46e

Please sign in to comment.