nix-super/tests/functional/timeout.nix

32 lines
502 B
Nix
Raw Normal View History

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