summaryrefslogtreecommitdiff
path: root/tests/guix-package.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2018-09-18 10:21:28 +0200
committerLudovic Courtès <ludo@gnu.org>2018-09-21 17:04:37 +0200
commit811b21fb15d36b06fde994ca7ef5916a9a19f250 (patch)
tree4dd6c27925dab39c7b6373cf97cca258813e56e2 /tests/guix-package.sh
parent2e6d64e122ad2745154a38122785895d1b66c2ff (diff)
profiles: 'packages->manifest' now accepts inferior packages.
* guix/profiles.scm (packages->manifest)[inferiors-loaded?]: New variable. [inferior->entry]: New procedure. Accept inferior packages when INFERIORS-LOADED? is true. * tests/guix-package.sh: Add test using a manifest with an inferior. * tests/inferior.scm ("packages->manifest"): New test.
Diffstat (limited to 'tests/guix-package.sh')
-rw-r--r--tests/guix-package.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh
index cef3b3452e3..f7dfbfad002 100644
--- a/tests/guix-package.sh
+++ b/tests/guix-package.sh
@@ -358,6 +358,21 @@ EOF
358guix package --bootstrap -m "$module_dir/manifest.scm" 358guix package --bootstrap -m "$module_dir/manifest.scm"
359guix package -I | grep guile 359guix package -I | grep guile
360test `guix package -I | wc -l` -eq 1 360test `guix package -I | wc -l` -eq 1
361guix package --rollback --bootstrap
362
363# Applying a manifest file with inferior packages.
364cat > "$module_dir/manifest.scm"<<EOF
365(use-modules (guix inferior))
366
367(define i
368 (open-inferior "$abs_top_srcdir" #:command "scripts/guix"))
369
370(let ((guile (car (lookup-inferior-packages i "guile-bootstrap"))))
371 (packages->manifest (list guile)))
372EOF
373guix package --bootstrap -m "$module_dir/manifest.scm"
374guix package -I | grep guile
375test `guix package -I | wc -l` -eq 1
361 376
362# Error reporting. 377# Error reporting.
363cat > "$module_dir/manifest.scm"<<EOF 378cat > "$module_dir/manifest.scm"<<EOF