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"
...* etc/teams.scm (go): Add regex search for any golang files. Change-Id: Ia6c95d8d49863de0381a907ca6309fa22d22927e Sharlatan Hellseher 2024-02-05teams: mozilla: Add tor-browsers.scm....* etc/teams.scm (mozilla): Add "gnu/packages/tor-browsers.scm". Change-Id: Id3aa1fe641c612000319a4ea4b236285f8d3b599 Clément Lassieur 2024-02-03teams: Add Mark H Weaver to the ‘mozilla’ team....* etc/teams.scm (Mark H Weaver): Add to the ‘mozilla’ team. Mark H Weaver 2024-01-30teams: go: Add golang-xyz.scm to scope....* etc/teams.scm (go): Add "gnu/packages/golang-xyz.scm". Change-Id: I580eadf52b631c6582e256a2900786b53483a466 Sharlatan Hellseher 2024-01-28teams: go: Add more related files to the scope....* etc/teams.scm (go): Add "gnu/packages/configuration-management.scm", "gnu/packages/golang-crypto.scm", "gnu/packages/golang-web.scm", "gnu/packages/syncthing.scm", "gnu/packages/terraform.scm". Sort list alphabetically. Change-Id: I56ce5bd21e487e5dbe2d84aa1d83e3239268fb71 Sharlatan Hellseher 2024-01-24teams: Remove Efraim Flashner from the science team....* etc/teams.scm (Efraim Flashner): Remove science team. Change-Id: I790fe329cde11fcb4b706b01b9aa59ad29d8c874 Efraim Flashner 2024-01-16teams: Add Wilko Meyer to kernel....* etc/teams.scm: Add Wilko Meyer. Change-Id: Ia7b85a090a4d8e81689bd137e1d12cb3708aa760 Signed-off-by: Leo Famulari <leo@famulari.name> Wilko Meyer 2024-01-14teams: Add Vivien Kraus....* etc/teams.scm.in ("Vivien Kraus"): New member. Change-Id: Iab2c9300f3e1e604fb2ee539a7eb05e7a3f54776 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-12teams: Add entry for Sharlatan Hellseher....* etc/teams.scm ("Sharlatan Hellseher"): New member. Change-Id: I05f1442e90799e182feb153f45191e789c05461b Sharlatan Hellseher 2024-01-05teams: Add ‘core-packages’ team....* etc/teams.scm (bootstrap): Add “gnu/packages/commencement.scm”. (core-packages): New team. (Ludovic Courtès): Add to ‘core-packages’ team. Change-Id: I25f22d436a4dc9bf4c8f577f94cc178cbaa80768 Ludovic Courtès 2023-12-22teams: mozilla: Add icecat-extension.scm and browser-extensions.scm....* etc/teams.scm (mozilla): Add "gnu/build/icecat-extension.scm" and "gnu/packages/browser-extensions.scm". Change-Id: Id59fb307256e5870b3c19f0b7c41446775a57d9e Clément Lassieur 2023-12-20teams: Add entry for Clément Lassieur....* etc/teams.scm ("Clément Lassieur"): New member. Change-Id: If6456d9496f59b0a26608ad5e55aa8fdfb8af492 Clément Lassieur 2023-11-20teams: Include golang-check.scm in the go team....* etc/teams.scm (go): Add gnu/packages/golang-check.scm to scope. Change-Id: Ifc90eb0c3fc5d716b605e7e3e100a38431498a2c Signed-off-by: Christopher Baines <mail@cbaines.net> Benjamin 2023-11-12teams: Add Ekaitz Zarraga to bootstrap and zig....* etc/teams.scm: Add Ekaitz Zarraga. Change-Id: Idda2ffbc15adc3725bcd1600988582f0d4c2766a Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Ekaitz Zarraga 2023-11-12teams: Add Zig team....* etc/teams.scm (zig): New team for the zig programming language, packages and build system. Change-Id: I96f9ced1ad04b1cd9041c53aa8c86fe29014ccd1 Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Ekaitz Zarraga 2023-11-01teams.scm: Add file-local variable prop line for the mode....This tells Emacs to use the scheme-mode to edit the file. * etc/teams.scm (mode): New file-local variable. Change-Id: I9a48f552e831317402673d95cf6c1de506d388b5 Maxim Cournoyer 2023-10-27teams: Add myself to audio team....Message-ID: <cfad42ecdcd190893699ef28d42b35b706729bcd.1698355699.git.gabriel@erlikon.ch> In-Reply-To: <81d0877b2cb39164563dfbf2c551f1c99aad75ed.1698355699.git.gabriel@erlikon.ch> References: <81d0877b2cb39164563dfbf2c551f1c99aad75ed.1698355699.git.gabriel@erlikon.ch> From: Gabriel Wicki <gabriel@erlikon.ch> Date: Tue, 2 May 2023 16:47:41 +0200 Subject: [PATCH 2/2] teams: Add Gabriel Wicki. * etc/teams.scm.in ("Gabriel Wicki"): New member. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Gabriel Wicki 2023-10-27teams: Add audio team....Message-ID: <81d0877b2cb39164563dfbf2c551f1c99aad75ed.1698355699.git.gabriel@erlikon.ch> From: Gabriel Wicki <gabriel@erlikon.ch> Date: Tue, 2 May 2023 16:38:15 +0200 Subject: [PATCH 1/2] teams: Add audio team. * etc/teams.scm.in (audio): Add team. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Gabriel Wicki 2023-10-22teams: Adjust shebang to use 'guix repl'....This ensures the correct Guix dependencies are always available for the script. * etc/teams.scm.in: Rename to... * etc/teams.scm: ... this. Adjust shebang. * .gitignore: No longer ignore it. * configure.ac: Do not process it with AC_CONFIG_FILES. Reported-by: Clément Lassieur <clement@lassieur.org> Fixes: https://issues.guix.gnu.org/66605 Change-Id: I7a01750c6c5f0696b6c36b1e6caa9389d9e6822c Maxim Cournoyer