mirror of
https://github.com/NixOS/nix
synced 2025-07-08 11:03:54 +02:00
* Test nix-store --add' and
nix-store -q --hash'.
This commit is contained in:
parent
30d051ff14
commit
ea9c35d3cc
2 changed files with 17 additions and 4 deletions
13
tests/add.sh
Normal file
13
tests/add.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
source common.sh
|
||||
|
||||
file=./add.sh
|
||||
|
||||
path=$($nixstore --add $file)
|
||||
|
||||
echo $path
|
||||
|
||||
hash=$($nixstore -q --hash $path)
|
||||
|
||||
echo $hash
|
||||
|
||||
test "$hash" = "sha256:$(nix-hash --type sha256 --base32 $file)"
|
Loading…
Add table
Add a link
Reference in a new issue