nix/tests/functional/timeout.nix
Eelco Dolstra f29e7867a9 Revert "Merge pull request #11826 from DeterminateSystems/revert-11804"
This reverts commit aeffdeffc8, reversing
changes made to 723fdeb4f1.
2024-11-11 15:21:34 +01:00

32 lines
502 B
Nix

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