2020-11-08 17:25:35 +01:00
|
|
|
{
|
|
|
|
name = "bash";
|
|
|
|
machine = { pkgs, ... }: {
|
|
|
|
genode.init.children.bash = {
|
|
|
|
configFile = pkgs.writeText "bash.child.dhall" ''
|
|
|
|
${
|
|
|
|
./bash.dhall
|
2020-11-27 11:59:49 +01:00
|
|
|
} { bash = "${pkgs.bash}", coreutils = "${pkgs.coreutils}" }
|
2020-11-08 17:25:35 +01:00
|
|
|
'';
|
|
|
|
inputs = with pkgs.genodePackages; [
|
2020-11-27 11:59:49 +01:00
|
|
|
pkgs.bash
|
2020-11-08 17:25:35 +01:00
|
|
|
cached_fs_rom
|
|
|
|
libc
|
|
|
|
posix
|
|
|
|
vfs
|
|
|
|
vfs_pipe
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
testScript = ''
|
|
|
|
start_all()
|
|
|
|
machine.wait_until_serial_output('child "bash" exited with exit value 0')
|
|
|
|
'';
|
|
|
|
}
|