about summary refs log blame commit diff
path: root/tests/timeout.nix
blob: 540fba934ff689f7e182c625c236ddd6bfc47dfd (plain) (tree)
1
2

                         
















                                                            







                           
 
with import ./config.nix;

{

  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
    '';
  };

  closeLog = mkDerivation {
    name = "silent";
    buildCommand = ''
      exec > /dev/null 2>&1
      sleep 1000000000
    '';
  };

}