diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-11-17 17:32:25 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-11-17 17:32:25 +0000 |
commit | 3d38a498404bf842ca479d42d18def1f472a6fb0 (patch) | |
tree | d2d7a67d3a33c835386724a59155b84e7ac2eae9 /tests/binary-patching.sh | |
parent | f69626ed3eb9314bbdf9b0fe5497a0c3a3465d31 (diff) | |
download | guix-3d38a498404bf842ca479d42d18def1f472a6fb0.tar.gz |
* In the download size indication, take binary patches into account.
Hopefully this doesn't slow things down too much.
Diffstat (limited to 'tests/binary-patching.sh')
-rw-r--r-- | tests/binary-patching.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/binary-patching.sh b/tests/binary-patching.sh index 8d7788fb61..26a499727f 100644 --- a/tests/binary-patching.sh +++ b/tests/binary-patching.sh @@ -1,5 +1,7 @@ source common.sh +clearManifests + mkdir -p $TEST_ROOT/cache2 $TEST_ROOT/patches RESULT=$TEST_ROOT/result @@ -29,5 +31,9 @@ $NIX_BIN_DIR/nix-pull file://$TEST_ROOT/manifest2 # To make sure that we're using the patch, delete the full NARs. rm -f $TEST_ROOT/cache2/* +# Make sure that the download size prediction uses the patch rather +# than the full download. +$nixbuild -o $RESULT binary-patching.nix --arg version 2 --dry-run 2>&1 | grep -q "0.01 MiB" + # Now rebuild it. This should use the patch generated above. $nixbuild -o $RESULT binary-patching.nix --arg version 2 |