summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2021-10-01 11:14:58 +0200
committerLudovic Courtès <ludo@gnu.org>2021-10-25 15:29:42 +0200
commit23f99f1a299ed0e19d926a0f719980b3c151c9c0 (patch)
treef56edca4e0577685bdaf65469d9470f0e748915a /tests
parentfb368f4e760777e399aa58b08b89df1832fda8ba (diff)
downloadguix-23f99f1a299ed0e19d926a0f719980b3c151c9c0.tar.gz
profiles: Add 'package->development-manifest'.
* guix/profiles.scm (package->development-manifest): New procedure.
* guix/scripts/environment.scm (input->manifest-entry)
(package-environment-inputs): Remove.
* guix/scripts/environment.scm (options/resolve-packages): Use
'package->development-manifest' instead of 'package-environment-inputs'.
* tests/profiles.scm ("package->development-manifest"): New test.
Diffstat (limited to 'tests')
-rw-r--r--tests/profiles.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/profiles.scm b/tests/profiles.scm
index 06a0387221..cac5b73347 100644
--- a/tests/profiles.scm
+++ b/tests/profiles.scm
@@ -265,6 +265,13 @@
            (manifest-transaction-removal-candidate? guile-2.0.9 t)
            (null? install) (null? downgrade) (null? upgrade)))))
 
+(test-assert "package->development-manifest"
+  (let ((manifest (package->development-manifest packages:hello)))
+    (every (lambda (name)
+             (manifest-installed? manifest
+                                  (manifest-pattern (name name))))
+           '("gcc" "binutils" "glibc" "coreutils" "grep" "sed"))))
+
 (test-assertm "profile-derivation"
   (mlet* %store-monad
       ((entry ->   (package->manifest-entry %bootstrap-guile))