mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
tests: Test "guix build /gnu/store/….drv".
* tests/guix-build.sh: Add test for passing "guix build" a .drv.
This commit is contained in:
parent
65209ffabd
commit
16ac74033a
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,12 @@ guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' | \
|
||||||
guix build hello -d | \
|
guix build hello -d | \
|
||||||
grep -e '-hello-[0-9\.]\+\.drv$'
|
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.
|
# Passing a URI.
|
||||||
GUIX_DAEMON_SOCKET="file://$GUIX_STATE_DIRECTORY/daemon-socket/socket" \
|
GUIX_DAEMON_SOCKET="file://$GUIX_STATE_DIRECTORY/daemon-socket/socket" \
|
||||||
guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)'
|
guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)'
|
||||||
|
|
Loading…
Reference in a new issue