diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-11-17 23:06:49 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-11-17 23:14:54 +0100 |
commit | 16ac74033ae9f01e8be81c4f7f1857e13545bc2f (patch) | |
tree | 29476022aebc6f2ed62af2a7b33cc76cf0a29c6b | |
parent | 65209ffabd9245fac78eeb2caf5bcca3e4963937 (diff) | |
download | patches-16ac74033ae9f01e8be81c4f7f1857e13545bc2f.tar patches-16ac74033ae9f01e8be81c4f7f1857e13545bc2f.tar.gz |
tests: Test "guix build /gnu/store/….drv".
* tests/guix-build.sh: Add test for passing "guix build" a .drv.
-rw-r--r-- | tests/guix-build.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh index 52feda9d3a..62cdd5fe14 100644 --- a/tests/guix-build.sh +++ b/tests/guix-build.sh @@ -36,6 +36,12 @@ guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' | \ guix build hello -d | \ grep -e '-hello-[0-9\.]\+\.drv$' +# Passing a .drv. +drv="`guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' -d`" +out="`guix build "$drv"`" +out2="`guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)'`" +test "$out" = "$out2" + # Passing a URI. GUIX_DAEMON_SOCKET="file://$GUIX_STATE_DIRECTORY/daemon-socket/socket" \ guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' |