summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-06-14 22:37:24 +0200
committerLudovic Courtès <ludo@gnu.org>2014-06-14 22:55:59 +0200
commit56b821069722c6341e9079299d90ae1cdfe9a916 (patch)
tree31207af9b6ec534010dd03b89f661b93eb936b3a /tests
parenta83c6a6471b0f1950ab5c53acb278e1b88d51c11 (diff)
downloadpatches-56b821069722c6341e9079299d90ae1cdfe9a916.tar
patches-56b821069722c6341e9079299d90ae1cdfe9a916.tar.gz
guix build: Allow gexps to be passed to '-e'.
* guix/ui.scm (%guix-user-module): New variable. (read/eval): Pass it as the second argument to 'eval'. * guix/scripts/build.scm (options/resolve-packages): Add case for 'gexp?'. * tests/guix-build.sh: Add tests. * doc/guix.texi (Invoking guix build): Document '-e gexp'. guxi build: Allow gexps to be passed to '-e'. * guix/ui.scm (%guix-user-module): New variable. (read/eval): Pass it as the second argument to 'eval'. * guix/scripts/build.scm (options/resolve-packages): Add case for 'gexp?'. * tests/guix-build.sh: Add tests. * doc/guix.texi (Invoking guix build): Document '-e gexp'.
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-build.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh
index e0c774d055..7c6594775a 100644
--- a/tests/guix-build.sh
+++ b/tests/guix-build.sh
@@ -80,3 +80,7 @@ guix build -e "(begin
(gexp->derivation \"test\"
(gexp (mkdir (ungexp output))))))" \
--dry-run
+
+# Running a gexp.
+guix build -e '#~(mkdir #$output)' -d
+guix build -e '#~(mkdir #$output)' -d | grep 'gexp\.drv'