2
0
genodepkgs/tests/bash.nix
Emery Hemingway 301214c0cb tests/bash: test rsync
The clang bash seems to be bad.
2020-11-21 18:35:46 +01:00

31 lines
741 B
Nix

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