summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-03-25 10:34:27 +0100
committerLudovic Courtès <ludo@gnu.org>2015-03-25 10:46:22 +0100
commit2c74fde00e4e721c6a73646935ab0cfe19dd9188 (patch)
treeec1660e4c859c0232d94ff0048bde63a80978d03
parentc3a450fb49da41f1225353d2ca2e652daae36939 (diff)
Rename 'guix substitute-binary' to 'guix substitute'.
* guix/scripts/substitute-binary.scm: Rename to... * guix/scripts/substitute.scm: ... this. Adjust module name, entry point, comments, and help string accordingly. * nix/scripts/substitute-binary.in: Rename to... * nix/scripts/substitute.in: ... this. * pre-inst-env.in (NIX_SUBSTITUTERS): Adjust accordingly. * tests/substitute-binary.scm: Rename to... * tests/substitute.scm: ... this. Adjust references to (guix scripts substitute) accordingly. * guix/ui.scm (show-guix-help)[internal?]: Change "substitute-binary" to "substitute". * Makefile.am (MODULES, SCM_TESTS): Adjust to file renames. * daemon.am (nodist_pkglibexec_SCRIPTS): Likewise. * config-daemon.ac: Likewise. * guix/tests.scm (call-with-derivation-narinfo): Adjust comments and docstring.
-rw-r--r--.gitignore2
-rw-r--r--Makefile.am4
-rw-r--r--config-daemon.ac4
-rw-r--r--daemon.am2
-rwxr-xr-xguix/scripts/substitute.scm (renamed from guix/scripts/substitute-binary.scm)12
-rw-r--r--guix/tests.scm4
-rw-r--r--guix/ui.scm2
-rw-r--r--nix/scripts/substitute-binary.in11
-rw-r--r--nix/scripts/substitute.in11
-rw-r--r--pre-inst-env.in2
-rw-r--r--tests/store.scm10
-rw-r--r--tests/substitute.scm (renamed from tests/substitute-binary.scm)56
12 files changed, 60 insertions, 60 deletions
diff --git a/.gitignore b/.gitignore
index 3ec36366e3f..eaa7dbd51a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -96,7 +96,7 @@ stamp-h[0-9]
96/doc/guix.tp 96/doc/guix.tp
97/doc/guix.vr 97/doc/guix.vr
98/doc/guix.vrs 98/doc/guix.vrs
99/nix/scripts/substitute-binary 99/nix/scripts/substitute
100/doc/images/bootstrap-graph.png 100/doc/images/bootstrap-graph.png
101/doc/images/bootstrap-graph.eps 101/doc/images/bootstrap-graph.eps
102/guix-register 102/guix-register
diff --git a/Makefile.am b/Makefile.am
index 882ab8e27bb..4a1f8d0a887 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -96,7 +96,7 @@ MODULES = \
96 guix/scripts/gc.scm \ 96 guix/scripts/gc.scm \
97 guix/scripts/hash.scm \ 97 guix/scripts/hash.scm \
98 guix/scripts/pull.scm \ 98 guix/scripts/pull.scm \
99 guix/scripts/substitute-binary.scm \ 99 guix/scripts/substitute.scm \
100 guix/scripts/authenticate.scm \ 100 guix/scripts/authenticate.scm \
101 guix/scripts/refresh.scm \ 101 guix/scripts/refresh.scm \
102 guix/scripts/system.scm \ 102 guix/scripts/system.scm \
@@ -162,7 +162,7 @@ SCM_TESTS = \
162 tests/pk-crypto.scm \ 162 tests/pk-crypto.scm \
163 tests/pki.scm \ 163 tests/pki.scm \
164 tests/sets.scm \ 164 tests/sets.scm \
165 tests/substitute-binary.scm \ 165 tests/substitute.scm \
166 tests/builders.scm \ 166 tests/builders.scm \
167 tests/derivations.scm \ 167 tests/derivations.scm \
168 tests/ui.scm \ 168 tests/ui.scm \
diff --git a/config-daemon.ac b/config-daemon.ac
index 5f83d45a4cb..fb80c754c9c 100644
--- a/config-daemon.ac
+++ b/config-daemon.ac
@@ -133,8 +133,8 @@ if test "x$guix_build_daemon" = "xyes"; then
133 133
134 AC_CONFIG_FILES([nix/scripts/list-runtime-roots], 134 AC_CONFIG_FILES([nix/scripts/list-runtime-roots],
135 [chmod +x nix/scripts/list-runtime-roots]) 135 [chmod +x nix/scripts/list-runtime-roots])
136 AC_CONFIG_FILES([nix/scripts/substitute-binary], 136 AC_CONFIG_FILES([nix/scripts/substitute],
137 [chmod +x nix/scripts/substitute-binary]) 137 [chmod +x nix/scripts/substitute])
138 AC_CONFIG_FILES([nix/scripts/guix-authenticate], 138 AC_CONFIG_FILES([nix/scripts/guix-authenticate],
139 [chmod +x nix/scripts/guix-authenticate]) 139 [chmod +x nix/scripts/guix-authenticate])
140 AC_CONFIG_FILES([nix/scripts/offload], 140 AC_CONFIG_FILES([nix/scripts/offload],
diff --git a/daemon.am b/daemon.am
index 59636068614..9d6516ae6c4 100644
--- a/daemon.am
+++ b/daemon.am
@@ -165,7 +165,7 @@ nix/libstore/schema.sql.hh: nix/libstore/schema.sql
165 165
166nodist_pkglibexec_SCRIPTS = \ 166nodist_pkglibexec_SCRIPTS = \
167 nix/scripts/list-runtime-roots \ 167 nix/scripts/list-runtime-roots \
168 nix/scripts/substitute-binary 168 nix/scripts/substitute
169 169
170if BUILD_DAEMON_OFFLOAD 170if BUILD_DAEMON_OFFLOAD
171 171
diff --git a/guix/scripts/substitute-binary.scm b/guix/scripts/substitute.scm
index e797c6d40bc..e99c29945c1 100755
--- a/guix/scripts/substitute-binary.scm
+++ b/guix/scripts/substitute.scm
@@ -17,7 +17,7 @@
17;;; You should have received a copy of the GNU General Public License 17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. 18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 19
20(define-module (guix scripts substitute-binary) 20(define-module (guix scripts substitute)
21 #:use-module (guix ui) 21 #:use-module (guix ui)
22 #:use-module (guix store) 22 #:use-module (guix store)
23 #:use-module (guix utils) 23 #:use-module (guix utils)
@@ -53,7 +53,7 @@
53 #:export (narinfo-signature->canonical-sexp 53 #:export (narinfo-signature->canonical-sexp
54 read-narinfo 54 read-narinfo
55 write-narinfo 55 write-narinfo
56 guix-substitute-binary)) 56 guix-substitute))
57 57
58;;; Comment: 58;;; Comment:
59;;; 59;;;
@@ -675,7 +675,7 @@ PORT. REPORT-PROGRESS is a two-argument procedure such as that returned by
675;;; 675;;;
676 676
677(define (show-help) 677(define (show-help)
678 (display (_ "Usage: guix substitute-binary [OPTION]... 678 (display (_ "Usage: guix substitute [OPTION]...
679Internal tool to substitute a pre-built binary to a local build.\n")) 679Internal tool to substitute a pre-built binary to a local build.\n"))
680 (display (_ " 680 (display (_ "
681 --query report on the availability of substitutes for the 681 --query report on the availability of substitutes for the
@@ -761,7 +761,7 @@ found."
761 ;; daemon. 761 ;; daemon.
762 "http://hydra.gnu.org"))) 762 "http://hydra.gnu.org")))
763 763
764(define (guix-substitute-binary . args) 764(define (guix-substitute . args)
765 "Implement the build daemon's substituter protocol." 765 "Implement the build daemon's substituter protocol."
766 (mkdir-p %narinfo-cache-directory) 766 (mkdir-p %narinfo-cache-directory)
767 (maybe-remove-expired-cached-narinfo) 767 (maybe-remove-expired-cached-narinfo)
@@ -882,7 +882,7 @@ substituter disabled~%")
882 882
883 (every (compose zero? cdr waitpid) pids)))) 883 (every (compose zero? cdr waitpid) pids))))
884 (("--version") 884 (("--version")
885 (show-version-and-exit "guix substitute-binary")) 885 (show-version-and-exit "guix substitute"))
886 (("--help") 886 (("--help")
887 (show-help)) 887 (show-help))
888 (opts 888 (opts
@@ -893,4 +893,4 @@ substituter disabled~%")
893;;; eval: (put 'with-timeout 'scheme-indent-function 1) 893;;; eval: (put 'with-timeout 'scheme-indent-function 1)
894;;; End: 894;;; End:
895 895
896;;; substitute-binary.scm ends here 896;;; substitute.scm ends here
diff --git a/guix/tests.scm b/guix/tests.scm
index 0896e842dac..080ee9cc74c 100644
--- a/guix/tests.scm
+++ b/guix/tests.scm
@@ -126,7 +126,7 @@ Deriver: ~a~%"
126(define* (call-with-derivation-narinfo drv thunk 126(define* (call-with-derivation-narinfo drv thunk
127 #:key (sha256 (make-bytevector 32 0))) 127 #:key (sha256 (make-bytevector 32 0)))
128 "Call THUNK in a context where fake substituter data, as read by 'guix 128 "Call THUNK in a context where fake substituter data, as read by 'guix
129substitute-binary', has been installed for DRV. SHA256 is the hash of the 129substitute', has been installed for DRV. SHA256 is the hash of the
130expected output of DRV." 130expected output of DRV."
131 (let* ((output (derivation->output-path drv)) 131 (let* ((output (derivation->output-path drv))
132 (dir (%substitute-directory)) 132 (dir (%substitute-directory))
@@ -178,7 +178,7 @@ CONTENTS."
178 (lambda () 178 (lambda ()
179 (let ((hash (call-with-input-file (string-append dir "/example.nar") 179 (let ((hash (call-with-input-file (string-append dir "/example.nar")
180 port-sha256))) 180 port-sha256)))
181 ;; Create fake substituter data, to be read by `substitute-binary'. 181 ;; Create fake substituter data, to be read by 'guix substitute'.
182 (call-with-derivation-narinfo drv 182 (call-with-derivation-narinfo drv
183 thunk 183 thunk
184 #:sha256 (or sha256 hash)))) 184 #:sha256 (or sha256 hash))))
diff --git a/guix/ui.scm b/guix/ui.scm
index ae37c8e6ca0..4929f935908 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -815,7 +815,7 @@ parameter of 'args-fold'."
815 815
816(define (show-guix-help) 816(define (show-guix-help)
817 (define (internal? command) 817 (define (internal? command)
818 (member command '("substitute-binary" "authenticate" "offload"))) 818 (member command '("substitute" "authenticate" "offload")))
819 819
820 (format #t (_ "Usage: guix COMMAND ARGS... 820 (format #t (_ "Usage: guix COMMAND ARGS...
821Run COMMAND with ARGS.\n")) 821Run COMMAND with ARGS.\n"))
diff --git a/nix/scripts/substitute-binary.in b/nix/scripts/substitute-binary.in
deleted file mode 100644
index 48d7bb8ff10..00000000000
--- a/nix/scripts/substitute-binary.in
+++ /dev/null
@@ -1,11 +0,0 @@
1#!@SHELL@
2# A shorthand for "guix substitute-binary", for use by the daemon.
3
4if test "x$GUIX_UNINSTALLED" = "x"
5then
6 prefix="@prefix@"
7 exec_prefix="@exec_prefix@"
8 exec "@bindir@/guix" substitute-binary "$@"
9else
10 exec guix substitute-binary "$@"
11fi
diff --git a/nix/scripts/substitute.in b/nix/scripts/substitute.in
new file mode 100644
index 00000000000..5a2eeb7259a
--- /dev/null
+++ b/nix/scripts/substitute.in
@@ -0,0 +1,11 @@
1#!@SHELL@
2# A shorthand for "guix substitute", for use by the daemon.
3
4if test "x$GUIX_UNINSTALLED" = "x"
5then
6 prefix="@prefix@"
7 exec_prefix="@exec_prefix@"
8 exec "@bindir@/guix" substitute "$@"
9else
10 exec guix substitute "$@"
11fi
diff --git a/pre-inst-env.in b/pre-inst-env.in
index ef9a3ce3c32..fe56da69448 100644
--- a/pre-inst-env.in
+++ b/pre-inst-env.in
@@ -44,7 +44,7 @@ export PATH
44# Daemon helpers. 44# Daemon helpers.
45 45
46NIX_ROOT_FINDER="$abs_top_builddir/nix/scripts/list-runtime-roots" 46NIX_ROOT_FINDER="$abs_top_builddir/nix/scripts/list-runtime-roots"
47NIX_SUBSTITUTERS="$abs_top_builddir/nix/scripts/substitute-binary" 47NIX_SUBSTITUTERS="$abs_top_builddir/nix/scripts/substitute"
48NIX_BUILD_HOOK="$abs_top_builddir/nix/scripts/offload" 48NIX_BUILD_HOOK="$abs_top_builddir/nix/scripts/offload"
49NIX_LIBEXEC_DIR="@abs_top_builddir@/nix/scripts" # for 'guix-authenticate' 49NIX_LIBEXEC_DIR="@abs_top_builddir@/nix/scripts" # for 'guix-authenticate'
50 50
diff --git a/tests/store.scm b/tests/store.scm
index 9ed78be0854..8e929bbc4d2 100644
--- a/tests/store.scm
+++ b/tests/store.scm
@@ -367,7 +367,7 @@
367 (with-store s 367 (with-store s
368 (let* ((d (package-derivation s %bootstrap-guile (%current-system))) 368 (let* ((d (package-derivation s %bootstrap-guile (%current-system)))
369 (o (derivation->output-path d))) 369 (o (derivation->output-path d)))
370 ;; Create fake substituter data, to be read by `substitute-binary'. 370 ;; Create fake substituter data, to be read by 'guix substitute'.
371 (with-derivation-narinfo d 371 (with-derivation-narinfo d
372 ;; Remove entry from the local cache. 372 ;; Remove entry from the local cache.
373 (false-if-exception 373 (false-if-exception
@@ -375,7 +375,7 @@
375 "/guix/substitute-binary/" 375 "/guix/substitute-binary/"
376 (store-path-hash-part o)))) 376 (store-path-hash-part o))))
377 377
378 ;; Make sure `substitute-binary' correctly communicates the above 378 ;; Make sure 'guix substitute' correctly communicates the above
379 ;; data. 379 ;; data.
380 (set-build-options s #:use-substitutes? #t) 380 (set-build-options s #:use-substitutes? #t)
381 (and (has-substitutes? s o) 381 (and (has-substitutes? s o)
@@ -439,7 +439,7 @@
439 (with-derivation-substitute d c 439 (with-derivation-substitute d c
440 (sha256 => (make-bytevector 32 0)) ;select a hash that doesn't match C 440 (sha256 => (make-bytevector 32 0)) ;select a hash that doesn't match C
441 441
442 ;; Make sure we use `substitute-binary'. 442 ;; Make sure we use 'guix substitute'.
443 (set-build-options s 443 (set-build-options s
444 #:use-substitutes? #t 444 #:use-substitutes? #t
445 #:fallback? #f) 445 #:fallback? #f)
@@ -464,9 +464,9 @@
464 #:guile-for-build 464 #:guile-for-build
465 (package-derivation s %bootstrap-guile (%current-system)))) 465 (package-derivation s %bootstrap-guile (%current-system))))
466 (o (derivation->output-path d))) 466 (o (derivation->output-path d)))
467 ;; Create fake substituter data, to be read by `substitute-binary'. 467 ;; Create fake substituter data, to be read by 'guix substitute'.
468 (with-derivation-narinfo d 468 (with-derivation-narinfo d
469 ;; Make sure we use `substitute-binary'. 469 ;; Make sure we use 'guix substitute'.
470 (set-build-options s #:use-substitutes? #t) 470 (set-build-options s #:use-substitutes? #t)
471 (and (has-substitutes? s o) 471 (and (has-substitutes? s o)
472 (guard (c ((nix-protocol-error? c) 472 (guard (c ((nix-protocol-error? c)
diff --git a/tests/substitute-binary.scm b/tests/substitute.scm
index 7c1204c1ab1..5697592423d 100644
--- a/tests/substitute-binary.scm
+++ b/tests/substitute.scm
@@ -1,6 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Nikita Karetnikov <nikita@karetnikov.org> 2;;; Copyright © 2014 Nikita Karetnikov <nikita@karetnikov.org>
3;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> 3;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
4;;; 4;;;
5;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
6;;; 6;;;
@@ -17,8 +17,8 @@
17;;; You should have received a copy of the GNU General Public License 17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. 18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 19
20(define-module (test-substitute-binary) 20(define-module (test-substitute)
21 #:use-module (guix scripts substitute-binary) 21 #:use-module (guix scripts substitute)
22 #:use-module (guix base64) 22 #:use-module (guix base64)
23 #:use-module (guix hash) 23 #:use-module (guix hash)
24 #:use-module (guix serialization) 24 #:use-module (guix serialization)
@@ -95,7 +95,7 @@ version identifier.."
95 95
96 96
97 97
98(test-begin "substitute-binary") 98(test-begin "substitute")
99 99
100(test-quit "not a number" 100(test-quit "not a number"
101 "signature version" 101 "signature version"
@@ -156,7 +156,7 @@ a file for NARINFO."
156 (cute write-file 156 (cute write-file
157 (string-append narinfo-directory "/example.out") <>)) 157 (string-append narinfo-directory "/example.out") <>))
158 158
159 (set! (@@ (guix scripts substitute-binary) 159 (set! (@@ (guix scripts substitute)
160 %allow-unauthenticated-substitutes?) 160 %allow-unauthenticated-substitutes?)
161 #f)) 161 #f))
162 thunk 162 thunk
@@ -166,8 +166,8 @@ a file for NARINFO."
166(define-syntax-rule (with-narinfo narinfo body ...) 166(define-syntax-rule (with-narinfo narinfo body ...)
167 (call-with-narinfo narinfo (lambda () body ...))) 167 (call-with-narinfo narinfo (lambda () body ...)))
168 168
169;; Transmit these options to 'guix substitute-binary'. 169;; Transmit these options to 'guix substitute'.
170(set! (@@ (guix scripts substitute-binary) %cache-url) 170(set! (@@ (guix scripts substitute) %cache-url)
171 (getenv "GUIX_BINARY_SUBSTITUTE_URL")) 171 (getenv "GUIX_BINARY_SUBSTITUTE_URL"))
172 172
173(test-equal "query narinfo without signature" 173(test-equal "query narinfo without signature"
@@ -180,7 +180,7 @@ a file for NARINFO."
180 (with-input-from-string (string-append "have " (%store-prefix) 180 (with-input-from-string (string-append "have " (%store-prefix)
181 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo") 181 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
182 (lambda () 182 (lambda ()
183 (guix-substitute-binary "--query")))))))) 183 (guix-substitute "--query"))))))))
184 184
185(test-equal "query narinfo with invalid hash" 185(test-equal "query narinfo with invalid hash"
186 ;; The hash in the signature differs from the hash of %NARINFO. 186 ;; The hash in the signature differs from the hash of %NARINFO.
@@ -195,7 +195,7 @@ a file for NARINFO."
195 (with-input-from-string (string-append "have " (%store-prefix) 195 (with-input-from-string (string-append "have " (%store-prefix)
196 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo") 196 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
197 (lambda () 197 (lambda ()
198 (guix-substitute-binary "--query")))))))) 198 (guix-substitute "--query"))))))))
199 199
200(test-equal "query narinfo signed with authorized key" 200(test-equal "query narinfo signed with authorized key"
201 (string-append (%store-prefix) "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo") 201 (string-append (%store-prefix) "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
@@ -209,7 +209,7 @@ a file for NARINFO."
209 (with-input-from-string (string-append "have " (%store-prefix) 209 (with-input-from-string (string-append "have " (%store-prefix)
210 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo") 210 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
211 (lambda () 211 (lambda ()
212 (guix-substitute-binary "--query")))))))) 212 (guix-substitute "--query"))))))))
213 213
214(test-equal "query narinfo signed with unauthorized key" 214(test-equal "query narinfo signed with unauthorized key"
215 "" ; not substitutable 215 "" ; not substitutable
@@ -225,15 +225,15 @@ a file for NARINFO."
225 (with-input-from-string (string-append "have " (%store-prefix) 225 (with-input-from-string (string-append "have " (%store-prefix)
226 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo") 226 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
227 (lambda () 227 (lambda ()
228 (guix-substitute-binary "--query")))))))) 228 (guix-substitute "--query"))))))))
229 229
230(test-quit "substitute, no signature" 230(test-quit "substitute, no signature"
231 "lacks a signature" 231 "lacks a signature"
232 (with-narinfo %narinfo 232 (with-narinfo %narinfo
233 (guix-substitute-binary "--substitute" 233 (guix-substitute "--substitute"
234 (string-append (%store-prefix) 234 (string-append (%store-prefix)
235 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo") 235 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
236 "foo"))) 236 "foo")))
237 237
238(test-quit "substitute, invalid hash" 238(test-quit "substitute, invalid hash"
239 "hash" 239 "hash"
@@ -241,10 +241,10 @@ a file for NARINFO."
241 (with-narinfo (string-append %narinfo "Signature: " 241 (with-narinfo (string-append %narinfo "Signature: "
242 (signature-field "different body") 242 (signature-field "different body")
243 "\n") 243 "\n")
244 (guix-substitute-binary "--substitute" 244 (guix-substitute "--substitute"
245 (string-append (%store-prefix) 245 (string-append (%store-prefix)
246 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo") 246 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
247 "foo"))) 247 "foo")))
248 248
249(test-quit "substitute, unauthorized key" 249(test-quit "substitute, unauthorized key"
250 "unauthorized" 250 "unauthorized"
@@ -253,10 +253,10 @@ a file for NARINFO."
253 %narinfo 253 %narinfo
254 #:public-key %wrong-public-key) 254 #:public-key %wrong-public-key)
255 "\n") 255 "\n")
256 (guix-substitute-binary "--substitute" 256 (guix-substitute "--substitute"
257 (string-append (%store-prefix) 257 (string-append (%store-prefix)
258 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo") 258 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
259 "foo"))) 259 "foo")))
260 260
261(test-equal "substitute, authorized key" 261(test-equal "substitute, authorized key"
262 "Substitutable data." 262 "Substitutable data."
@@ -265,15 +265,15 @@ a file for NARINFO."
265 (dynamic-wind 265 (dynamic-wind
266 (const #t) 266 (const #t)
267 (lambda () 267 (lambda ()
268 (guix-substitute-binary "--substitute" 268 (guix-substitute "--substitute"
269 (string-append (%store-prefix) 269 (string-append (%store-prefix)
270 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo") 270 "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
271 "substitute-retrieved") 271 "substitute-retrieved")
272 (call-with-input-file "substitute-retrieved" get-string-all)) 272 (call-with-input-file "substitute-retrieved" get-string-all))
273 (lambda () 273 (lambda ()
274 (false-if-exception (delete-file "substitute-retrieved")))))) 274 (false-if-exception (delete-file "substitute-retrieved"))))))
275 275
276(test-end "substitute-binary") 276(test-end "substitute")
277 277
278 278
279(exit (= (test-runner-fail-count (test-runner-current)) 0)) 279(exit (= (test-runner-fail-count (test-runner-current)) 0))