lix/tests/functional/timeout.nix

32 lines
502 B
Nix
Raw Permalink Normal View History

with import ./config.nix;
2017-01-19 13:17:57 +00:00
{
infiniteLoop = mkDerivation {
name = "timeout";
buildCommand = ''
touch $out
echo "'timeout' builder entering an infinite loop"
2017-01-19 13:17:57 +00:00
while true ; do echo -n .; done
'';
};
silent = mkDerivation {
name = "silent";
buildCommand = ''
touch $out
2017-01-19 13:17:57 +00:00
sleep 60
'';
};
closeLog = mkDerivation {
name = "silent";
buildCommand = ''
touch $out
exec > /dev/null 2>&1
sleep 1000000000
'';
};
}