lix/tests/timeout.nix

29 lines
455 B
Nix
Raw Normal View History

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