| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 |
|
| 19 | |
| 20 | |
| 21 | |
| 22 |
|
| 23 | guix install --version
|
| 24 |
|
| 25 | readlink_base ()
|
| 26 | {
|
| 27 | basename `readlink "$1"`
|
| 28 | }
|
| 29 |
|
| 30 | profile="t-profile-$$"
|
| 31 | rm -f "$profile"
|
| 32 |
|
| 33 | trap 'rm -f "$profile" "$profile-"[0-9]*' EXIT
|
| 34 |
|
| 35 | guix install --bootstrap guile-bootstrap -p "$profile"
|
| 36 | test -x "$profile/bin/guile"
|
| 37 |
|
| 38 | |
| 39 | guix install -r guile-bootstrap -p "$profile" --bootstrap && false
|
| 40 | test -x "$profile/bin/guile"
|
| 41 |
|
| 42 | |
| 43 | guix install --bootstrap guile-bootstrap -p "$profile" \
|
| 44 | --with-input=libreoffice=inkscape
|
| 45 | test -x "$profile/bin/guile"
|
| 46 | grep "libreoffice=inkscape" "$profile/manifest"
|
| 47 |
|
| 48 | guix upgrade --version
|
| 49 | guix upgrade -n
|
| 50 | guix upgrade gui.e -n
|
| 51 | guix upgrade foo bar -n
|
| 52 |
|
| 53 | guix remove --version
|
| 54 | guix remove --bootstrap guile-bootstrap -p "$profile"
|
| 55 | test ! -x "$profile/bin/guile"
|
| 56 | test `guix package -p "$profile" -I | wc -l` -eq 0
|
| 57 |
|
| 58 | guix remove -p "$profile" this-is-not-installed --bootstrap && false
|
| 59 |
|
| 60 | guix remove -i guile-bootstrap -p "$profile" --bootstrap && false
|
| 61 |
|
| 62 | guix search '\<board\>' game | grep '^name: gnubg'
|
| 63 |
|
| 64 | guix show --version
|
| 65 | guix show guile
|
| 66 | guix show python@3 | grep "^name: python"
|
| 67 |
|
| 68 | |
| 69 | guix show python@2 && false
|
| 70 |
|
| 71 | |
| 72 | output="`guix show sed grep | grep ^name:`"
|
| 73 | test "$output" = "name: sed
|
| 74 | name: grep"
|