guix describe: Adjust test to latest changes.
[jackhill/guix/guix.git] / tests / guix-shell-export-manifest.sh
index cbb90f0..6c42c40 100644 (file)
@@ -46,6 +46,17 @@ cat "$manifest.second"
 
 cmp "$manifest" "$manifest.second"
 
+# Manifest for a profile.
+guix shell --bootstrap guile-bootstrap -r "$tmpdir/profile" -- \
+     guile --version
+test -x "$tmpdir/profile/bin/guile"
+guix shell -p "$tmpdir/profile" --export-manifest > "$manifest.second"
+guix shell --export-manifest guile-bootstrap > "$manifest"
+cat "$manifest.second"
+cmp "$manifest" "$manifest.second"
+
+rm "$tmpdir/profile"
+
 # Combining manifests.
 guix shell --export-manifest -m "$manifest" gash gash-utils \
      > "$manifest.second"
@@ -55,9 +66,10 @@ guix build -m "$manifest.second" -d | \
     grep "$(guix build gash -d)"
 
 # Package transformation option.
-guix shell --export-manifest guile guix --with-latest=guile-json > "$manifest"
+guix shell --export-manifest guile guix \
+     --with-input=guile-json@3=guile-json > "$manifest"
 grep 'options->transformation' "$manifest"
-grep '(with-latest . "guile-json")' "$manifest"
+grep '(with-input . "guile-json@3=guile-json")' "$manifest"
 
 # Development manifest.
 guix shell --export-manifest -D guile git > "$manifest"
@@ -68,6 +80,11 @@ guix build -m "$manifest" -d | \
 guix build -m "$manifest" -d | \
     grep "$(guix build git -d)"
 
+guix shell --export-manifest -D guile -D python-itsdangerous > "$manifest"
+guix build -m "$manifest" -d | grep "$(guix build libffi -d)"
+guix build -m "$manifest" -d | \
+    grep "$(guix build -e '(@ (gnu packages python) python)' -d)"
+
 # Test various combinations to make sure generated code uses interfaces
 # correctly.
 for options in                                 \