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).
This commit is contained in:
parent
a6ca68a70c
commit
6f1743b1a5
6 changed files with 30 additions and 17 deletions
|
@ -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" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue