summaryrefslogtreecommitdiff
path: root/tests/guix-build.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2017-04-21 11:39:49 +0200
committerLudovic Courtès <ludo@gnu.org>2017-04-21 17:23:37 +0200
commit1397b422e254929de1805aaf1d0759cd5da6a60b (patch)
treeca37bb9b955a3f11b10c07905c35b078e0e3f641 /tests/guix-build.sh
parent031e6087c4c30b00f31824d269cfbf67a7c54f31 (diff)
store: 'GUIX_DAEMON_SOCKET' can now be a URI.
* guix/store.scm (%daemon-socket-file): Rename to... (%daemon-socket-uri): ... this. (connect-to-daemon): New procedure. (open-connection): Rename 'file' to 'uri'. Use 'connect-to-daemon' instead of 'open-unix-domain-socket'. * guix/tests.scm (open-connection-for-tests): Rename 'file' to 'uri'. * tests/guix-build.sh: Add tests. * tests/store.scm ("open-connection with file:// URI"): New tests.
Diffstat (limited to 'tests/guix-build.sh')
-rw-r--r--tests/guix-build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh
index ab911b72104..9494e7371f5 100644
--- a/tests/guix-build.sh
+++ b/tests/guix-build.sh
@@ -36,6 +36,14 @@ guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' | \
36guix build hello -d | \ 36guix build hello -d | \
37 grep -e '-hello-[0-9\.]\+\.drv$' 37 grep -e '-hello-[0-9\.]\+\.drv$'
38 38
39# Passing a URI.
40GUIX_DAEMON_SOCKET="file://$NIX_STATE_DIR/daemon-socket/socket" \
41guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)'
42
43( if GUIX_DAEMON_SOCKET="weird://uri" \
44 guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)'; \
45 then exit 1; fi )
46
39# Check --sources option with its arguments 47# Check --sources option with its arguments
40module_dir="t-guix-build-$$" 48module_dir="t-guix-build-$$"
41mkdir "$module_dir" 49mkdir "$module_dir"