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:
parent
cc3b93c991
commit
90ee1e3fe3
3 changed files with 24 additions and 7 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue