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) | |
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 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)' | \ | |||
| 36 | guix build hello -d | \ | 36 | guix build hello -d | \ |
| 37 | grep -e '-hello-[0-9\.]\+\.drv$' | 37 | grep -e '-hello-[0-9\.]\+\.drv$' |
| 38 | 38 | ||
| 39 | # Passing a .drv. | ||
| 40 | drv="`guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' -d`" | ||
| 41 | out="`guix build "$drv"`" | ||
| 42 | out2="`guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)'`" | ||
| 43 | test "$out" = "$out2" | ||
| 44 | |||
| 39 | # Passing a URI. | 45 | # Passing a URI. |
| 40 | GUIX_DAEMON_SOCKET="file://$GUIX_STATE_DIRECTORY/daemon-socket/socket" \ | 46 | GUIX_DAEMON_SOCKET="file://$GUIX_STATE_DIRECTORY/daemon-socket/socket" \ |
| 41 | guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' | 47 | guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' |
