tests: add USB storage test

This commit is contained in:
Emery Hemingway 2021-03-20 19:47:57 +01:00
parent 5006257230
commit 88668e8dd5
2 changed files with 17 additions and 0 deletions

View File

@ -19,6 +19,7 @@ let
./hello.nix
./log.nix
./nim.nix
./usb.nix
./vmm_x86.nix
];

16
tests/usb.nix Normal file
View File

@ -0,0 +1,16 @@
{
name = "usb";
machine = { pkgs, ... }: {
genode.boot.storeBackend = "fs";
hardware.genode.usb.enable = true;
hardware.genode.usb.storage.enable = true;
genode.init.children.hello = {
package = pkgs.hello;
configFile = ./hello.dhall;
};
};
testScript = ''
start_all()
machine.wait_until_serial_output("Hello, world!")
'';
}