mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* Finally, a test for the binary patch functionality.
This commit is contained in:
parent
bf658f016f
commit
a07c68f05e
5 changed files with 56 additions and 3 deletions
15
tests/binary-patching.nix
Normal file
15
tests/binary-patching.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ version }:
|
||||
|
||||
with import ./config.nix;
|
||||
|
||||
mkDerivation {
|
||||
name = "foo-${toString version}";
|
||||
builder = builtins.toFile "builder.sh"
|
||||
''
|
||||
mkdir $out
|
||||
seq 1 1000000 > $out/foo
|
||||
${if version == 2 then ''
|
||||
echo bla >> $out/foo
|
||||
'' else ""}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue