guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/05: tests: Test "guix build /gnu/store/….drv".


From: guix-commits
Subject: 04/05: tests: Test "guix build /gnu/store/….drv".
Date: Sun, 17 Nov 2019 17:15:02 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 16ac74033ae9f01e8be81c4f7f1857e13545bc2f
Author: Ludovic Courtès <address@hidden>
Date:   Sun Nov 17 23:06:49 2019 +0100

    tests: Test "guix build /gnu/store/….drv".
    
    * tests/guix-build.sh: Add test for passing "guix build" a .drv.
---
 tests/guix-build.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/guix-build.sh b/tests/guix-build.sh
index 52feda9..62cdd5f 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)'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]