From ea9c35d3cc2ef65643718e696007ba3569099e1e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Mar 2006 15:43:37 +0000 Subject: * Test `nix-store --add' and `nix-store -q --hash'. --- tests/add.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/add.sh (limited to 'tests/add.sh') 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)" -- cgit 1.4.1