add failing test

This commit is contained in:
zimbatm 2020-08-25 18:13:35 +02:00
parent dad23f2092
commit d953a4ee09
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
3 changed files with 25 additions and 3 deletions

View file

@ -2,14 +2,17 @@
{ size ? 1 # MB
, num ? 10 # count
, currentTime ? builtins.currentTime
, noChroot ? false
}:
with import <nixpkgs> {};
let
drv = i: runCommand "${toString currentTime}-${toString i}" {} ''
drv = i: runCommand "${toString currentTime}-${toString i}" {
__noChroot = noChroot;
} ''
dd if=/dev/zero of=$out bs=${toString size}MB count=1
'';
in writeText "empty-${toString num}-${toString size}MB" ''
${lib.concatMapStringsSep "" drv (lib.range 1 num)}
''
''