nixos/tests/qemu-vm-volatile-root: init

nikstur cc3a3c40 b6212732

Changed files
+18
nixos
+1
nixos/tests/all-tests.nix
···
pulseaudio = discoverTests (import ./pulseaudio.nix);
qboot = handleTestOn ["x86_64-linux" "i686-linux"] ./qboot.nix {};
qemu-vm-restrictnetwork = handleTest ./qemu-vm-restrictnetwork.nix {};
quorum = handleTest ./quorum.nix {};
quake3 = handleTest ./quake3.nix {};
qownnotes = handleTest ./qownnotes.nix {};
···
pulseaudio = discoverTests (import ./pulseaudio.nix);
qboot = handleTestOn ["x86_64-linux" "i686-linux"] ./qboot.nix {};
qemu-vm-restrictnetwork = handleTest ./qemu-vm-restrictnetwork.nix {};
+
qemu-vm-volatile-root = runTest ./qemu-vm-volatile-root.nix;
quorum = handleTest ./quorum.nix {};
quake3 = handleTest ./quake3.nix {};
qownnotes = handleTest ./qownnotes.nix {};
+17
nixos/tests/qemu-vm-volatile-root.nix
···
···
+
# Test that the root filesystem is a volatile tmpfs.
+
+
{ lib, ... }:
+
+
{
+
name = "qemu-vm-volatile-root";
+
+
meta.maintainers = with lib.maintainers; [ nikstur ];
+
+
nodes.machine = _: {
+
virtualisation.diskImage = null;
+
};
+
+
testScript = ''
+
machine.succeed("findmnt --kernel --types tmpfs /")
+
'';
+
}