From cdc68a268ce96acf39abf37c360ab1a58d6cdb17 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Fri, 22 May 2026 11:54:05 +1000 Subject: [PATCH] nixos/tests: add simple-container nixosTests.simple-vm but using an nspawn container --- nixos/tests/all-tests.nix | 1 + nixos/tests/simple-container.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 nixos/tests/simple-container.nix diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 644dfc90e7e7..f4308311858c 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -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; diff --git a/nixos/tests/simple-container.nix b/nixos/tests/simple-container.nix new file mode 100644 index 000000000000..269853423651 --- /dev/null +++ b/nixos/tests/simple-container.nix @@ -0,0 +1,11 @@ +{ + name = "simple-container"; + + containers.machine = { }; + + testScript = '' + start_all() + machine.wait_for_unit("multi-user.target") + machine.shutdown() + ''; +}