forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
incus: refactor tests and fix VM CSM support (NixOS#365778)
- Loading branch information
Showing
14 changed files
with
497 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,42 @@ | ||
{ | ||
system ? builtins.currentSystem, | ||
config ? { }, | ||
pkgs ? import ../../.. { inherit system config; }, | ||
handleTestOn, | ||
incus ? pkgs.incus-lts, | ||
lts ? true, | ||
... | ||
}: | ||
let | ||
incusTest = import ./incus-tests.nix; | ||
in | ||
{ | ||
container-legacy-init = import ./container.nix { | ||
name = "container-legacy-init"; | ||
inherit incus system pkgs; | ||
all = incusTest { | ||
inherit lts; | ||
allTests = true; | ||
}; | ||
container-systemd-init = import ./container.nix { | ||
name = "container-systemd-init"; | ||
inherit incus system pkgs; | ||
extra = { | ||
boot.initrd.systemd.enable = true; | ||
}; | ||
|
||
container = incusTest { | ||
inherit lts; | ||
instanceContainer = true; | ||
}; | ||
incusd-options = import ./incusd-options.nix { inherit incus system pkgs; }; | ||
lxd-to-incus = import ./lxd-to-incus.nix { inherit incus system pkgs; }; | ||
openvswitch = import ./openvswitch.nix { inherit incus system pkgs; }; | ||
socket-activated = import ./socket-activated.nix { inherit incus system pkgs; }; | ||
storage = import ./storage.nix { inherit incus system pkgs; }; | ||
ui = import ./ui.nix { inherit incus system pkgs; }; | ||
virtual-machine = handleTestOn [ "x86_64-linux" ] ./virtual-machine.nix { | ||
inherit incus system pkgs; | ||
|
||
lvm = incusTest { | ||
inherit lts; | ||
storageLvm = true; | ||
}; | ||
|
||
lxd-to-incus = import ./lxd-to-incus.nix { }; | ||
|
||
openvswitch = incusTest { | ||
inherit lts; | ||
networkOvs = true; | ||
}; | ||
|
||
ui = import ./ui.nix { }; | ||
|
||
virtual-machine = incusTest { | ||
inherit lts; | ||
instanceVm = true; | ||
}; | ||
|
||
zfs = incusTest { | ||
inherit lts; | ||
storageLvm = true; | ||
}; | ||
} |
Oops, something went wrong.