Loading nixos/tests/all-tests.nix +2 −2 Original line number Diff line number Diff line Loading @@ -743,11 +743,11 @@ in immich-vectorchord-reindex = runTest ./web-apps/immich-vectorchord-reindex.nix; incron = runTest ./incron.nix; incus = import ./incus { inherit runTest; inherit runTestOn; package = pkgs.incus; }; incus-lts = import ./incus { inherit runTest; inherit runTestOn; package = pkgs.incus-lts; }; influxdb = runTest ./influxdb.nix; Loading nixos/tests/incus/default.nix +6 −3 Original line number Diff line number Diff line { package, runTest, runTestOn, }: let incusRunTest = config: runTest { runTestOn [ "x86_64-linux" "aarch64-linux" ] { imports = [ ./incus-tests-module.nix ./incus-tests.nix Loading @@ -18,6 +18,8 @@ let }; in { # this is the main test which will test as much as possible # run this for testing incus upgrades, also available in incus package tests all = incusRunTest { name = "all"; appArmor = true; Loading @@ -43,6 +45,7 @@ in }; }; # used in lxc tests to verify container functionality container = incusRunTest { name = "container"; Loading @@ -63,7 +66,7 @@ in network.ovs = true; }; ui = runTest { ui = runTestOn [ "x86_64-linux" "aarch64-linux" ] { imports = [ ./ui.nix ]; _module.args = { inherit package; }; Loading nixos/tests/incus/incus-tests.nix +20 −8 Original line number Diff line number Diff line Loading @@ -5,14 +5,29 @@ ... }: # TODO aarch64 vm filter let cfg = config.tests.incus; instanceScript = lib.foldlAttrs ( # limit building of VMs to these systems as nested virtualization is # required to test VMs, but support for this is poor outside x86 # will print warnings on those systems rather than failing outright vmsEnabled = lib.elem pkgs.stdenv.system [ "x86_64-linux" ]; instanceScript = lib.pipe cfg.instances [ (lib.filterAttrs ( name: instance: let keep = instance.type != "virtual-machine" || vmsEnabled; in lib.warnIf (!keep) '' Skipping virtual-machine ${name} as VMs are disabled on ${pkgs.stdenv.system} '' keep )) (lib.foldlAttrs ( acc: name: instance: acc + instance.testScript ) "" cfg.instances; ) "") ]; in { name = "${cfg.package.name}-${cfg.name}"; Loading @@ -21,9 +36,6 @@ in maintainers = lib.teams.lxc.members; }; # sshBackdoor.enable = true; # enableDebugHook = true; nodes.server = { virtualisation = { cores = 2; Loading Loading
nixos/tests/all-tests.nix +2 −2 Original line number Diff line number Diff line Loading @@ -743,11 +743,11 @@ in immich-vectorchord-reindex = runTest ./web-apps/immich-vectorchord-reindex.nix; incron = runTest ./incron.nix; incus = import ./incus { inherit runTest; inherit runTestOn; package = pkgs.incus; }; incus-lts = import ./incus { inherit runTest; inherit runTestOn; package = pkgs.incus-lts; }; influxdb = runTest ./influxdb.nix; Loading
nixos/tests/incus/default.nix +6 −3 Original line number Diff line number Diff line { package, runTest, runTestOn, }: let incusRunTest = config: runTest { runTestOn [ "x86_64-linux" "aarch64-linux" ] { imports = [ ./incus-tests-module.nix ./incus-tests.nix Loading @@ -18,6 +18,8 @@ let }; in { # this is the main test which will test as much as possible # run this for testing incus upgrades, also available in incus package tests all = incusRunTest { name = "all"; appArmor = true; Loading @@ -43,6 +45,7 @@ in }; }; # used in lxc tests to verify container functionality container = incusRunTest { name = "container"; Loading @@ -63,7 +66,7 @@ in network.ovs = true; }; ui = runTest { ui = runTestOn [ "x86_64-linux" "aarch64-linux" ] { imports = [ ./ui.nix ]; _module.args = { inherit package; }; Loading
nixos/tests/incus/incus-tests.nix +20 −8 Original line number Diff line number Diff line Loading @@ -5,14 +5,29 @@ ... }: # TODO aarch64 vm filter let cfg = config.tests.incus; instanceScript = lib.foldlAttrs ( # limit building of VMs to these systems as nested virtualization is # required to test VMs, but support for this is poor outside x86 # will print warnings on those systems rather than failing outright vmsEnabled = lib.elem pkgs.stdenv.system [ "x86_64-linux" ]; instanceScript = lib.pipe cfg.instances [ (lib.filterAttrs ( name: instance: let keep = instance.type != "virtual-machine" || vmsEnabled; in lib.warnIf (!keep) '' Skipping virtual-machine ${name} as VMs are disabled on ${pkgs.stdenv.system} '' keep )) (lib.foldlAttrs ( acc: name: instance: acc + instance.testScript ) "" cfg.instances; ) "") ]; in { name = "${cfg.package.name}-${cfg.name}"; Loading @@ -21,9 +36,6 @@ in maintainers = lib.teams.lxc.members; }; # sshBackdoor.enable = true; # enableDebugHook = true; nodes.server = { virtualisation = { cores = 2; Loading