diff options
author | 宋文武 <iyzsong@member.fsf.org> | 2023-08-17 18:38:23 +0800 |
---|---|---|
committer | 宋文武 <iyzsong@member.fsf.org> | 2023-08-17 18:38:23 +0800 |
commit | 0ffbdf34567aedb0ae6cef6b869370a415cfaa65 (patch) | |
tree | 76425d441657ffbc6cfe996144cda706eb997a12 /tests/guix-time-machine.sh | |
parent | d9320de5aa9b77adf5fa31c6429ec8eb08c24458 (diff) | |
parent | 1b2d43fe016848ea2ec16ff18cbc14340944fc4e (diff) | |
download | guix-0ffbdf34567aedb0ae6cef6b869370a415cfaa65.tar.gz guix-0ffbdf34567aedb0ae6cef6b869370a415cfaa65.zip |
Merge remote-tracking branch 'origin/master' into kde-updates
Diffstat (limited to 'tests/guix-time-machine.sh')
-rw-r--r-- | tests/guix-time-machine.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/guix-time-machine.sh b/tests/guix-time-machine.sh new file mode 100644 index 0000000000..8b62ef75ea --- /dev/null +++ b/tests/guix-time-machine.sh @@ -0,0 +1,28 @@ +# GNU Guix --- Functional package management for GNU +# Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com> +# +# 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 time-machine' command-line utility. +# + +guix time-machine --version + +# Visiting a commit older than v1.0.0 fails. +! guix time-machine --commit=v0.15.0 + +exit 0 |