aboutsummaryrefslogtreecommitdiff
# GNU Guix --- Functional package management for GNU
# Copyright © 2018, 2022 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 'guix describe'.
#

guix describe --version

tmpfile="t-guix-describe-$$"
trap "rm -f $tmpfile" EXIT
rm -f "$tmpfile"

if [ -d "$abs_top_srcdir/.git" ]
then
    # Since we're in a Git checkout, we can at least check that these things
    # work.
    guix describe | grep -i "checkout"
    if git --version > /dev/null 2>&1
    then
	result="`guix describe | grep commit: | cut -d : -f 2-`"
	commit="`git log | head -1 | cut -c 7-`"
	test "x$result" = "x$commit"
    fi
    guix describe -f channels
    case "`guix describe -f channels | grep url`" in
	*"(url \"$abs_top_srcdir/\")") true;;
	*) false;;
    esac
else
    exit 77
fi
1-07tests: git-http: Avoid race condition....Ludovic Courtès 2020-11-06tests: mpd: Remove race condition; use default MPD configuration....Ludovic Courtès 2020-11-06tests: docker-system: Increase VM memory....Ludovic Courtès 2020-11-05services: Remove imports of (ice-9 …) modules....Ludovic Courtès 2020-11-03system: reconfigure: Use the disk-installer if provided....Mathieu Othacehe 2020-10-30installer: Use UUIDs in the 'swap-devices' field....Ludovic Courtès 2020-10-26tests: Fix nss-mdns test....Mathieu Othacehe 2020-10-20services: databases: Don't specify a default postgresql version....Christopher Baines 2020-10-20tests: monitoring: Use (service postgresql-service-type)....Christopher Baines 2020-10-13installer: Add Emacs EXWM desktop environment....Jan (janneke) Nieuwenhuizen 2020-10-05services: guix: Add guix-build-coordinator-service-type....Christopher Baines 2020-10-01services: hurd-vm: Resurrect system-test by using raw disk-image....Jan (janneke) Nieuwenhuizen 2020-09-30system: image: Add image-type support....Mathieu Othacehe 2020-09-29services: hurd-vm: Add system test....Ludovic Courtès 2020-09-10tests: nfs: Improve "nfs-root-fs"....Danny Milosavljevic 2020-09-10tests: install: Fix gui-installed-desktop-os-encrypted test....Mathieu Othacehe 2020-09-07tests: nfs: Improve "nfs-root-fs"....Danny Milosavljevic 2020-09-07tests: Add "nfs-root-fs" system test....Stefan 2020-07-22services: nix: Fix sandbox....Oleg Pykhalov 2020-07-19services: ganeti: Use TLS on the remote API by default....Marius Bakke 2020-07-17tests: docker-system: Use guile-3.0....Jakub Kądziołka 2020-07-16services: Add ganeti....Marius Bakke 2020-07-15tests: zabbix: Fix typo in comment....Oleg Pykhalov 2020-07-13gnu: tests: Fix unbound variable....Julien Lepiller 2020-07-11tests: networking: Use 'net.ifnames=0' for the Open vSwitch test....Marius Bakke