tests: Move example tests to dedicated folder

This commit is contained in:
Felix Uhl committed 2024-10-31 17:03:52 +01:00
1 parent 389235b63f
commit 737e045f53
40 files changed
+58 -43

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
{ pkgs ? import <nixpkgs> { }
, diskoLib ? pkgs.callPackage ../src/disko_lib { }
}:
diskoLib.testLib.makeDiskoTest {
inherit pkgs;
name = "f2fs";
disko-config = ../../example/f2fs.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
machine.succeed("lsblk --fs >&2");
'';
# so that the installer boots with a f2fs enabled kernel
extraInstallerConfig = {
boot.supportedFilesystems = [ "f2fs" ];
};
}