nix-gh/tests/add.sh
Eelco Dolstra 1bdceb421f * Doh!
2006-03-01 16:52:55 +00:00

14 lines
188 B
Bash

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)"