summaryrefslogtreecommitdiff
path: root/tests/guix-build.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-10-09 18:52:37 +0200
committerLudovic Courtès <ludo@gnu.org>2018-10-09 18:54:12 +0200
commitb33e191c86b7638517ea838b63a54d031a033554 (patch)
tree46c73cb4a9c6f224de06278e02112ba68f6eb2b6 /tests/guix-build.sh
parent64965a068d82d1730097e61f6443a8812051934b (diff)
guix build: '-f' accepts file-like objects.
* guix/scripts/build.scm (options->things-to-build)[validate-type]: Check for 'file-like?'. (options->derivations): Accept 'file-like?'. * tests/guix-build.sh: Add a test with 'computed-file'. * doc/guix.texi (Additional Build Options): Mention file-like objects.
Diffstat (limited to 'tests/guix-build.sh')
-rw-r--r--tests/guix-build.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh
index 92e7299321b..7842ce87c62 100644
--- a/tests/guix-build.sh
+++ b/tests/guix-build.sh
@@ -221,6 +221,10 @@ guix build -e "(begin
221guix build -e '#~(mkdir #$output)' -d 221guix build -e '#~(mkdir #$output)' -d
222guix build -e '#~(mkdir #$output)' -d | grep 'gexp\.drv' 222guix build -e '#~(mkdir #$output)' -d | grep 'gexp\.drv'
223 223
224# Same with a file-like object.
225guix build -e '(computed-file "foo" #~(mkdir #$output))' -d
226guix build -e '(computed-file "foo" #~(mkdir #$output))' -d | grep 'foo\.drv'
227
224# Building from a package file. 228# Building from a package file.
225cat > "$module_dir/package.scm"<<EOF 229cat > "$module_dir/package.scm"<<EOF
226(use-modules (gnu)) 230(use-modules (gnu))