nixos/tests: add simple-container, nixos/release{,-small}: add nixosTests.simple-container (#522886)
This commit is contained in:
@@ -172,6 +172,7 @@ let
|
||||
rebuildCountByKernel = lib.mapAttrs (
|
||||
kernel: kernelRebuilds: lib.length kernelRebuilds
|
||||
) rebuildsByKernel;
|
||||
rebuildNames = extractPackageNames diffAttrs.rebuilds;
|
||||
in
|
||||
writeText "changed-paths.json" (
|
||||
builtins.toJSON {
|
||||
@@ -188,7 +189,8 @@ let
|
||||
kernel: rebuilds: lib.nameValuePair "10.rebuild-${kernel}-stdenv" (lib.elem "stdenv" rebuilds)
|
||||
) rebuildsByKernel
|
||||
// {
|
||||
"10.rebuild-nixos-tests" = lib.elem "nixosTests.simple" (extractPackageNames diffAttrs.rebuilds);
|
||||
"10.rebuild-nixos-tests" =
|
||||
lib.elem "nixosTests.simple-container" rebuildNames || lib.elem "nixosTests.simple-vm" rebuildNames;
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
@@ -108,6 +108,8 @@ in
|
||||
tweak (
|
||||
(removeAttrs nixpkgsJobs blacklist)
|
||||
// {
|
||||
nixosTests = lib.filterAttrs (name: _: name == "simple") nixosJobs.tests;
|
||||
nixosTests = lib.filterAttrs (
|
||||
name: _: name == "simple-container" || name == "simple-vm"
|
||||
) nixosJobs.tests;
|
||||
}
|
||||
)
|
||||
|
||||
@@ -99,7 +99,8 @@ async function checkTargetBranch({ github, context, core, dry }) {
|
||||
...Object.values(changed.rebuildCountByKernel),
|
||||
)
|
||||
const rebuildsAllTests =
|
||||
changed.attrdiff.changed.includes('nixosTests.simple')
|
||||
changed.attrdiff.changed.includes('nixosTests.simple-container') ||
|
||||
changed.attrdiff.changed.includes('nixosTests.simple-vm')
|
||||
|
||||
// https://github.com/NixOS/nixpkgs/pull/481205#issuecomment-3790123921
|
||||
// These should go to staging-nixos instead of master,
|
||||
|
||||
@@ -202,7 +202,8 @@ rec {
|
||||
(onFullSupported "nixos.tests.proxy")
|
||||
(onFullSupported "nixos.tests.sddm.default")
|
||||
(onFullSupported "nixos.tests.shadow")
|
||||
(onFullSupported "nixos.tests.simple")
|
||||
(onFullSupported "nixos.tests.simple-container")
|
||||
(onFullSupported "nixos.tests.simple-vm")
|
||||
(onFullSupported "nixos.tests.sway")
|
||||
(onFullSupported "nixos.tests.switchTest")
|
||||
(onFullSupported "nixos.tests.udisks2")
|
||||
|
||||
@@ -67,7 +67,8 @@ rec {
|
||||
php
|
||||
predictable-interface-names
|
||||
proxy
|
||||
simple
|
||||
simple-container
|
||||
simple-vm
|
||||
;
|
||||
latestKernel = {
|
||||
inherit (nixos'.tests.latestKernel)
|
||||
@@ -165,7 +166,8 @@ rec {
|
||||
"nixos.tests.predictable-interface-names.unpredictable"
|
||||
"nixos.tests.predictable-interface-names.unpredictableNetworkd"
|
||||
"nixos.tests.proxy"
|
||||
"nixos.tests.simple"
|
||||
"nixos.tests.simple-container"
|
||||
"nixos.tests.simple-vm"
|
||||
"nixpkgs.jdk"
|
||||
"nixpkgs.tests.stdenv.tests-stdenv-gcc-stageCompare"
|
||||
"nixpkgs.opensshTest"
|
||||
|
||||
@@ -1508,7 +1508,8 @@ in
|
||||
shoko = import ./shoko.nix { inherit runTest; };
|
||||
signal-desktop = runTest ./signal-desktop.nix;
|
||||
silverbullet = runTest ./silverbullet.nix;
|
||||
simple = runTest ./simple.nix;
|
||||
simple-container = runTest ./simple-container.nix;
|
||||
simple-vm = runTest ./simple-vm.nix;
|
||||
sing-box = runTest ./sing-box.nix;
|
||||
sks = runTest ./sks.nix;
|
||||
slimserver = runTest ./slimserver.nix;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
nixosTests.simple, but with skipTypeCheck.
|
||||
nixosTests.simple-vm, but with skipTypeCheck.
|
||||
This catches regressions in the wiring, e.g.
|
||||
https://github.com/NixOS/nixpkgs/pull/511225
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
name = "simple-container";
|
||||
|
||||
containers.machine = { };
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.shutdown()
|
||||
'';
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
name = "simple";
|
||||
name = "simple-vm";
|
||||
|
||||
nodes.machine = { };
|
||||
|
||||
Reference in New Issue
Block a user