mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixos/tests: add simple-container
nixosTests.simple-vm but using an nspawn container
This commit is contained in:
@@ -1508,6 +1508,7 @@ in
|
||||
shoko = import ./shoko.nix { inherit runTest; };
|
||||
signal-desktop = runTest ./signal-desktop.nix;
|
||||
silverbullet = runTest ./silverbullet.nix;
|
||||
simple-container = runTest ./simple-container.nix;
|
||||
simple-vm = runTest ./simple-vm.nix;
|
||||
sing-box = runTest ./sing-box.nix;
|
||||
sks = runTest ./sks.nix;
|
||||
|
||||
11
nixos/tests/simple-container.nix
Normal file
11
nixos/tests/simple-container.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
name = "simple-container";
|
||||
|
||||
containers.machine = { };
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.shutdown()
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user