nix-super/tests/timeout.nix

32 lines
506 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
2017-01-19 15:17:57 +02:00
echo "timeout builder entering an infinite loop"
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
'';
};
}