mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #238848 from nikstur/qemu-vm-volatile-root
nixos/tests/qemu-vm-volatile-root: init
This commit is contained in:
commit
73710c4a5b
2 changed files with 18 additions and 0 deletions
|
@ -646,6 +646,7 @@ in {
|
|||
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
Normal file
17
nixos/tests/qemu-vm-volatile-root.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
# 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 /")
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue