summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-09-19 11:14:42 +0200
committerLudovic Courtès <ludo@gnu.org>2015-10-10 22:46:15 +0200
commitf3f427c2e930e2fb1a72ff8bb9b4a870edfbf007 (patch)
tree84d2c6c92a505f0387e0ca3e65d99bf5107956f6 /tests
parent23afe939a2282369900e0e7a33405cc613d7a405 (diff)
downloadguix-f3f427c2e930e2fb1a72ff8bb9b4a870edfbf007.tar.gz
guix system: Add '--derivation'.
* guix/scripts/system.scm (perform-action): Add #:derivations-only?
  parameter and honor it.
  (show-help, %options): Add '--derivation'.
  (guix-system): Pass #:derivations-only? to 'perform-action'.
* tests/guix-system.sh: Test it.
* doc/guix.texi (Invoking guix system): Document it.
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-system.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/guix-system.sh b/tests/guix-system.sh
index 4289db2390..d99c9bd07b 100644
--- a/tests/guix-system.sh
+++ b/tests/guix-system.sh
@@ -132,6 +132,12 @@ EOF
 make_user_config "users" "wheel"
 guix system build "$tmpfile" -n       # succeeds
 
+guix system build "$tmpfile" -d	      # succeeds
+guix system build "$tmpfile" -d | grep '\.drv$'
+
+guix system vm "$tmpfile" -d	      # succeeds
+guix system vm "$tmpfile" -d | grep '\.drv$'
+
 make_user_config "group-that-does-not-exist" "users"
 if guix system build "$tmpfile" -n 2> "$errorfile"
 then false