tests: Add 'with-derivation-substitute' and use it.
authorLudovic Courtès <ludo@gnu.org>
Mon, 2 Feb 2015 10:24:24 +0000 (11:24 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 2 Feb 2015 11:46:35 +0000 (12:46 +0100)
commite6c8839c180b88a9ef9e68af8acc3148099e286b
treee2bba56486a3eb8954f3af88618c75a68ab1e3f7
parent6eebbab5624f213a298afb1baed28cec026b2727
tests: Add 'with-derivation-substitute' and use it.

* guix/tests.scm (%substitute-directory): New variable.
  (call-with-derivation-narinfo): Use it.
  (call-with-derivation-substitute): New procedure.
  (with-derivation-substitute): New macro.
* tests/store.scm ("substitute"): Use 'with-derivation-substitute'.
  ("substitute, corrupt output hash"): Likewise.
.dir-locals.el
guix/tests.scm
tests/store.scm