summaryrefslogtreecommitdiff
path: root/tests/guix-build.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-11-17 23:06:49 +0100
committerLudovic Courtès <ludo@gnu.org>2019-11-17 23:14:54 +0100
commit16ac74033ae9f01e8be81c4f7f1857e13545bc2f (patch)
tree29476022aebc6f2ed62af2a7b33cc76cf0a29c6b /tests/guix-build.sh
parent65209ffabd9245fac78eeb2caf5bcca3e4963937 (diff)
tests: Test "guix build /gnu/store/….drv".
* tests/guix-build.sh: Add test for passing "guix build" a .drv.
Diffstat (limited to 'tests/guix-build.sh')
-rw-r--r--tests/guix-build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh
index 52feda9d3aa..62cdd5fe14b 100644
--- a/tests/guix-build.sh
+++ b/tests/guix-build.sh
@@ -36,6 +36,12 @@ 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 .drv.
40drv="`guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' -d`"
41out="`guix build "$drv"`"
42out2="`guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)'`"
43test "$out" = "$out2"
44
39# Passing a URI. 45# Passing a URI.
40GUIX_DAEMON_SOCKET="file://$GUIX_STATE_DIRECTORY/daemon-socket/socket" \ 46GUIX_DAEMON_SOCKET="file://$GUIX_STATE_DIRECTORY/daemon-socket/socket" \
41guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' 47guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)'