aboutsummaryrefslogtreecommitdiff
# GNU Guix --- Functional package management for GNU
# Copyright © 2019, 2020 Ludovic Courtès <ludo@gnu.org>
#
# This file is part of GNU Guix.
#
# GNU Guix is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# GNU Guix is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

#
# Test the `guix package' aliases.
#

guix install --version

readlink_base ()
{
    basename `readlink "$1"`
}

profile="t-profile-$$"
rm -f "$profile"

trap 'rm -f "$profile" "$profile-"[0-9]*' EXIT

guix install --bootstrap guile-bootstrap -p "$profile"
test -x "$profile/bin/guile"

# Make sure '-r' isn't passed as-is to 'guix package'.
guix install -r guile-bootstrap -p "$profile" --bootstrap && false
test -x "$profile/bin/guile"

# Use a package transformation option and make sure it's recorded.
guix install --bootstrap guile-bootstrap -p "$profile" \
     --with-input=libreoffice=inkscape
test -x "$profile/bin/guile"
grep "libreoffice=inkscape" "$profile/manifest"

guix upgrade --version
guix upgrade -n
guix upgrade gui.e -n
guix upgrade foo bar -n

guix remove --version
guix remove --bootstrap guile-bootstrap -p "$profile"
test ! -x "$profile/bin/guile"
test `guix package -p "$profile" -I | wc -l` -eq 0

guix remove -p "$profile" this-is-not-installed --bootstrap && false

guix remove -i guile-bootstrap -p "$profile" --bootstrap && false

guix search '\<board\>' game | grep '^name: gnubg'

guix show --version
guix show guile
guix show python@3 | grep "^name: python"

# "python@2" exists but is deprecated; make sure it doesn't show up.
guix show python@2 && false

# Specifying multiple packages.
output="`guix show sed grep | grep ^name:`"
test "$output" = "name: sed
name: grep"
't exist, install all of *.dic. Ludovic Courtès 2017-12-09gnu: aspell-dict-en: Update to 2017.08.24-0....* gnu/packages/aspell.scm (aspell-dict-en): Update to 2017.08.24-0. Efraim Flashner 2017-12-09gnu: aspell.scm: Alphabetize dictionaries....* gnu/packages/aspell.scm: Reorder the dictionaries alphabetically. Efraim Flashner 2017-11-10gnu: Fix hunspell-dict-en-* dictionary installation....* gnu/packages/aspell.scm (aspell-word-list)[arguments]: Install the .dic file for all hunspell dictionaries. Kei Kebreau 2017-10-27gnu: Add Catalan dictionary for Aspell....Hola! * gnu/packages/aspell.scm (aspell-dict-ca): New variable. Ludovic Courtès 2017-10-27gnu: Add hunspell-dict-en*....* gnu/packages/aspell.scm (aspell-word-list): New procedure. (define-word-list-dictionary): New macro. (hunspell-dict-en, hunspell-dict-en-au, hunspell-dict-en-ca) (hunspell-dict-en-gb, hunspell-dict-en-gb-ize, hunspell-dict-en-us): New variables. Ludovic Courtès 2017-10-03Update e-mail for Theodoros Foradis....* .mailmap: Add entry. * gnu/packages/aspell.scm: Replace theodoros.for@openmailbox.org with current address. * gnu/packages/compression.scm: Likewise. * gnu/packages/electronics.scm: Likewise. * gnu/packages/engineering.scm: Likewise. * gnu/packages/fpga.scm: Likewise. * gnu/packages/graphviz.scm: Likewise. * gnu/packages/guile.scm: Likewise. * gnu/packages/libusb.scm: Likewise. * gnu/packages/maths.scm: Likewise. * gnu/packages/messaging.scm: Likewise. * gnu/packages/uml.scm: Likewise. * gnu/packages/wxwidgets.scm: Likewise. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Theodoros Foradis 2017-08-08gnu: aspell-dict-en: Update to 2017.01.22-0....Add missing copyright line for 2016. * gnu/packages/aspell.scm (aspell-dict-en): Update to 2017.01.22-0. Tobias Geerinckx-Rice 2017-05-17gnu: aspell: 'dict-dir' set to ~/.guix-profile/lib/aspell or $ASPELL_DICT_DIR....See <https://bugs.gnu.org/25836> for background. * gnu/packages/patches/aspell-default-dict-dir.patch: New file. * gnu/packages/aspell.scm (aspell)[source](patches): New field. [native-search-paths]: New field. * gnu/local.mk (dist_patch_DATA): Add it. Ludovic Courtès 2017-04-23gnu: Add aspell-dict-pt-br....* gnu/packages/aspell.scm (aspell-dict-pt-br): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Daniel Pimentel