diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-27T16·16-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-27T16·16-0400 |
commit | 73acb8b836affe5dfade9dd6e3339ad2f9191add (patch) | |
tree | 756e59c48da948362ba4371f4fe2b5bbdb1c35fe /tests/substituter.sh | |
parent | fbf59d95f66012349fdcd2b60f34b9efb32e6319 (diff) |
Let build.cc verify the expected hash of a substituter's output
Since SubstitutionGoal::finished() in build.cc computes the hash anyway, we can prevent the inefficiency of computing the hash twice by letting the substituter tell Nix about the expected hash, which can then verify it.
Diffstat (limited to 'tests/substituter.sh')
-rwxr-xr-x | tests/substituter.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/substituter.sh b/tests/substituter.sh index a6bdacfd66f7..885655760e05 100755 --- a/tests/substituter.sh +++ b/tests/substituter.sh @@ -29,6 +29,7 @@ if test $1 = "--query"; then elif test $1 = "--substitute"; then mkdir $2 echo "Hallo Wereld" > $2/hello + echo # no expected hash else echo "unknown substituter operation" exit 1 |