| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 |
|
| 19 | |
| 20 | |
| 21 | |
| 22 |
|
| 23 | guix build --version
|
| 24 |
|
| 25 | |
| 26 | |
| 27 |
|
| 28 | if ! guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null
|
| 29 | then
|
| 30 | |
| 31 | exit 77
|
| 32 | fi
|
| 33 |
|
| 34 | orig_drv="`guix build guile-gcrypt -d`"
|
| 35 | latest_drv="`guix build guile-gcrypt --with-branch=guile-gcrypt=main -d`"
|
| 36 | test -n "$latest_drv"
|
| 37 | test "$orig_drv" != "$latest_drv"
|
| 38 |
|
| 39 | |
| 40 | |
| 41 | checkout="`guix gc --references "$latest_drv" | grep guile-gcrypt | grep -v -E '(-builder|\.drv)'`"
|
| 42 | test -d "$checkout"
|
| 43 | test -f "$checkout/COPYING"
|
| 44 |
|
| 45 | orig_drv="`guix build guix -d`"
|
| 46 | latest_drv="`guix build guix --with-branch=guile-gcrypt=main -d`"
|
| 47 | guix gc -R "$latest_drv" | grep guile-gcrypt-git.main
|
| 48 | test "$orig_drv" != "$latest_drv"
|
| 49 |
|
| 50 | v0_1_0_drv="`guix build guix --with-commit=guile-gcrypt=9e3eacdec1d -d`"
|
| 51 | guix gc -R "$v0_1_0_drv" | grep guile-gcrypt-git.9e3eacd
|
| 52 | test "$v0_1_0_drv" != "$latest_drv"
|
| 53 | test "$v0_1_0_drv" != "$orig_drv"
|
| 54 |
|
| 55 | v0_1_0_drv="`guix build guix --with-commit=guile-gcrypt=v0.1.0 -d`"
|
| 56 | guix gc -R "$v0_1_0_drv" | grep guile-gcrypt-0.1.0
|
| 57 | guix gc -R "$v0_1_0_drv" | grep guile-gcrypt-9e3eacd
|
| 58 | test "$v0_1_0_drv" != "$latest_drv"
|
| 59 | test "$v0_1_0_drv" != "$orig_drv"
|
| 60 |
|
| 61 | guix build guix --with-commit=guile-gcrypt=000 -d && false
|
| 62 |
|
| 63 | exit 0
|