nix-super/tests/add.sh

14 lines
188 B
Bash
Raw Normal View History

source common.sh
file=./add.sh
path=$($nixstore --add $file)
echo $path
hash=$($nixstore -q --hash $path)
echo $hash
2006-03-01 18:52:55 +02:00
test "$hash" = "sha256:$($nixhash --type sha256 --base32 $file)"