diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2019-12-04 22:54:05 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2019-12-12 17:56:58 +0100 |
| commit | 044277f610b02c3821afa0afdc2b2b140bb92cb4 (patch) | |
| tree | 917c85294781ed74dbd9d895acb8889c06c4287f /tests/guix-archive.sh | |
| parent | 12c1afcdbdc984c760d00932bce64288b385bbc9 (diff) | |
guix archive: Add '--list'.
* guix/scripts/archive.scm (show-help, %options): Add '--list'.
(list-contents): New procedure.
(guix-archive): Honor the '--list' option.
* tests/guix-archive.sh: Test it.
* doc/guix.texi (Invoking guix archive): Document it.
Diffstat (limited to 'tests/guix-archive.sh')
| -rw-r--r-- | tests/guix-archive.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/guix-archive.sh b/tests/guix-archive.sh index fdaeb98ad2b..4c5eea05cf1 100644 --- a/tests/guix-archive.sh +++ b/tests/guix-archive.sh | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # GNU Guix --- Functional package management for GNU | 1 | # GNU Guix --- Functional package management for GNU |
| 2 | # Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> | 2 | # Copyright © 2013, 2014, 2015, 2019 Ludovic Courtès <ludo@gnu.org> |
| 3 | # | 3 | # |
| 4 | # This file is part of GNU Guix. | 4 | # This file is part of GNU Guix. |
| 5 | # | 5 | # |
| @@ -74,5 +74,10 @@ guix archive -x "$tmpdir" < "$archive" | |||
| 74 | test -x "$tmpdir/bin/guile" | 74 | test -x "$tmpdir/bin/guile" |
| 75 | test -d "$tmpdir/lib/guile" | 75 | test -d "$tmpdir/lib/guile" |
| 76 | 76 | ||
| 77 | # Check '--list'. | ||
| 78 | guix archive -t < "$archive" | grep "^D /share/guile" | ||
| 79 | guix archive -t < "$archive" | grep "^x /bin/guile" | ||
| 80 | guix archive -t < "$archive" | grep "^r /share/guile.*/boot-9\.scm" | ||
| 81 | |||
| 77 | if echo foo | guix archive --authorize | 82 | if echo foo | guix archive --authorize |
| 78 | then false; else true; fi | 83 | then false; else true; fi |
