diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-11-04T15·31+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-11-04T15·37+0100 |
commit | 6f1743b1a5116ca57a60b481ee4083c891b7a334 (patch) | |
tree | e18f095051d8126b7f782355f2deba529faa2770 /tests/fixed.sh | |
parent | a6ca68a70c3bc0b2e6abad70346c99642a896f9f (diff) |
Support SHA-512 hashes
Fixes #679. Note: on x86_64, SHA-512 is considerably faster than SHA-256 (198 MB/s versus 131 MB/s).
Diffstat (limited to 'tests/fixed.sh')
-rw-r--r-- | tests/fixed.sh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/fixed.sh b/tests/fixed.sh index ed0d06dd29cb..cac3f0be91b0 100644 --- a/tests/fixed.sh +++ b/tests/fixed.sh @@ -40,13 +40,10 @@ echo "Hello World!" > $TEST_ROOT/fixed/foo ln -s foo $TEST_ROOT/fixed/bar out2=$(nix-store --add $TEST_ROOT/fixed) -echo $out2 -test "$out" = "$out2" || exit 1 +[ "$out" = "$out2" ] out3=$(nix-store --add-fixed --recursive sha256 $TEST_ROOT/fixed) -echo $out3 -test "$out" = "$out3" || exit 1 +[ "$out" = "$out3" ] out4=$(nix-store --print-fixed-path --recursive sha256 "1ixr6yd3297ciyp9im522dfxpqbkhcw0pylkb2aab915278fqaik" fixed) -echo $out4 -test "$out" = "$out4" || exit 1 +[ "$out" = "$out4" ] |