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
>Maxim Cournoyer 2022-10-07marionette: Make marionette-screen-text private....Maxim Cournoyer 2022-09-16marionette: Avoid read error when wait-for-file file is empty....Christopher Baines 2022-09-16marionette: Make it easier to debug REPL read failures....Christopher Baines 2022-08-28build: marionette: Add support for Tesseract OCR....Maxim Cournoyer 2022-08-28marionette: Improve the error message of 'wait-for-screen-text'....Maxim Cournoyer 2022-08-11build: marionette: Adjust QEMU Info manual reference....Maxim Cournoyer 2022-08-09tests: Add qemu-guest-agent system test....Timotej Lazar 2022-05-22marionette: Add #:address parameter to 'wait-for-tcp-port'....Ludovic Courtès 2021-12-23Remove VM generation dead-code....Mathieu Othacehe 2021-09-26marionette: Print a line when a test succeeds....Ludovic Courtès 2021-09-26marionette: 'system-test-runner' can create output directory....Ludovic Courtès 2021-09-26marionette: 'system-test-runner' dumps test log upon failure....Ludovic Courtès 2021-09-25tests: Adjust to SRFI-64 as found in Guile 3.0.7....Ludovic Courtès 2020-02-22marionette: Provide portable US-layout keystrokes for "<" and ">"....Ludovic Courtès 2020-02-22marionette: 'wait-for' procedures no longer leak a port....Ludovic Courtès 2019-05-15marionette: Add braces to the keystrokes....Ludovic Courtès 2018-08-28marionette: Add wait-for-unix-socket....Chris Marusich 2018-08-28marionette: Add support for QEMU's "quit" command....Chris Marusich 2018-06-01marionette: Add 'wait-for-tcp-port'....Ludovic Courtès 2018-02-19marionette: Use QEMU's "VM channel" mechanism....Ludovic Courtès