1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-12 14:55:09 +02:00

Add a test for --max-silent-time

This commit is contained in:
Eelco Dolstra 2017-01-19 14:17:57 +01:00
parent cc3b93c991
commit 90ee1e3fe3
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 24 additions and 7 deletions

View file

@ -1,6 +1,20 @@
with import ./config.nix;
mkDerivation {
name = "timeout";
builder = ./timeout.builder.sh;
{
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
'';
};
}