aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-05-14 21:11:57 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-05-20 12:13:04 -0400
commit1b6764477fda1a71f0ed377546f49adf2e36e5cb (patch)
tree6b5287296f1f0b34e50680907495916c65aee446 /tests
parent8404ed5c3e3a36958dc0427531b21ae14b6398aa (diff)
downloadguix-1b6764477fda1a71f0ed377546f49adf2e36e5cb.tar
guix-1b6764477fda1a71f0ed377546f49adf2e36e5cb.tar.gz
package: Add --manifest option.
* guix/scripts/package.scm (show-help): Add help text. (%options): Add manifest option. (guix-package): Add manifest option handler. * doc/guix.texi ("Invoking guix package"): Document it. * tests/guix-package.sh: Add test.
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-package.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh
index d420b8076d..26a5e9d1a2 100644
--- a/tests/guix-package.sh
+++ b/tests/guix-package.sh
@@ -242,3 +242,15 @@ export GUIX_BUILD_OPTIONS
available2="`guix package -A | sort`"
test "$available2" = "$available"
guix package -I
+
+unset GUIX_BUILD_OPTIONS
+
+# Applying a manifest file
+cat > "$module_dir/manifest.scm"<<EOF
+(use-package-modules bootstrap)
+
+(packages->manifest (list %bootstrap-guile))
+EOF
+guix package --bootstrap -m "$module_dir/manifest.scm"
+guix package -I | grep guile
+test `guix package -I | wc -l` -eq 1