sigil/tests/bash.nix

26 lines
578 B
Nix

{
name = "bash";
machine = { pkgs, ... }: {
genode.init.children.bash = {
package = pkgs.genodePackages.init;
configFile = pkgs.writeText "bash.child.dhall" ''
${
./bash.dhall
} { bash = "${pkgs.bash}", coreutils = "${pkgs.coreutils}" }
'';
extraInputs = with pkgs.genodePackages; [
pkgs.bash
cached_fs_rom
libc
posix
vfs
vfs_pipe
];
};
};
testScript = ''
start_all()
machine.wait_until_serial_output('child "bash" exited with exit value 0')
'';
}