about summary refs log blame commit diff
path: root/tests/add.sh
blob: 83092b26c1432b58033730d0643a4ede8c96b5ce (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                 
                                                                
source common.sh

file=./add.sh

path=$($nixstore --add $file)

echo $path

hash=$($nixstore -q --hash $path)

echo $hash

test "$hash" = "sha256:$($nixhash --type sha256 --base32 $file)"