aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-11-24 22:58:22 +0100
committerLudovic Courtès <ludo@gnu.org>2024-12-01 20:14:15 +0100
commita6334223719bf6b2695d2dc0e75dbfe69e901bd7 (patch)
treef59a0ab9330478e64f26d873566c558a1c26a67e /tests
parentbc3c89a475bfef0e7485538a9728c23d356de6bf (diff)
downloadguix-a6334223719bf6b2695d2dc0e75dbfe69e901bd7.tar
guix-a6334223719bf6b2695d2dc0e75dbfe69e901bd7.tar.gz
guix build: Add ‘--development’ option.
* guix/scripts/build.scm (show-help, %options): Add ‘-D’. (options->things-to-build): Change ‘append-map’ to a loop. Honor ‘-D’. * tests/guix-build.sh: Add test. * doc/guix.texi (Additional Build Options): Document it. Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I99227aadfe861e43c001a4872292bd687b37f5d4
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-build.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh
index 36eac2b7e0..3637bcdeb3 100644
--- a/tests/guix-build.sh
+++ b/tests/guix-build.sh
@@ -190,6 +190,11 @@ test `guix build -d --sources=transitive foo \
| grep -e 'foo\.tar\.gz' -e 'bar\.tar\.gz' -e 'bar\.dat' \
| wc -l` -eq 3
+# Building the inputs.
+guix build -D hello -n
+test `guix build -D hello -d \
+ | grep -e 'glibc.*\.drv$' -e 'gcc.*\.drv$' -e 'binutils.*\.drv$' \
+ | wc -l` -ge 3
# Unbound variable in thunked field.
cat > "$module_dir/foo.scm" <<EOF