diff options
Diffstat (limited to 'tests/add.sh')
-rw-r--r-- | tests/add.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/add.sh b/tests/add.sh new file mode 100644 index 000000000000..b6ae3ebea4ea --- /dev/null +++ b/tests/add.sh @@ -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)" |