about summary refs log tree commit diff
path: root/tests/hash.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T12·51+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T12·51+0000
commit84c4631221bc65643830173b4affe58b0dc58202 (patch)
tree19093aff12bbb33e1b377a2fdec688965e42029e /tests/hash.sh
parenta4c63c6e8e161d55778b797e566d9eca7c47f34f (diff)
* Simplification.
Diffstat (limited to 'tests/hash.sh')
-rw-r--r--tests/hash.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hash.sh b/tests/hash.sh
index fbbf1a761e..c6232539c2 100644
--- a/tests/hash.sh
+++ b/tests/hash.sh
@@ -2,7 +2,7 @@ source common.sh
 
 try () {
     echo -n "$2" > $TEST_ROOT/vector
-    hash=$($TOP/src/nix-hash/nix-hash $EXTRA --flat --type "$1" $TEST_ROOT/vector)
+    hash=$($nixhash $EXTRA --flat --type "$1" $TEST_ROOT/vector)
     if test "$hash" != "$3"; then
         echo "hash $1, expected $3, got $hash"
         exit 1
@@ -28,7 +28,7 @@ try sha256 "abc" "1b8m03r63zqhnjf7l5wnldhh7c134ap5vpj0850ymkq1iyzicy5s"
 EXTRA=
 
 try2 () {
-    hash=$($TOP/src/nix-hash/nix-hash --type "$1" $TEST_ROOT/hash-path)
+    hash=$($nixhash --type "$1" $TEST_ROOT/hash-path)
     if test "$hash" != "$2"; then
         echo "hash $1, expected $2, got $hash"
         exit 1