diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2018-03-27 14:16:19 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2018-03-27 14:51:44 +0200 |
| commit | 8980eea5ab6f89e7649d9abf0be2a9d49156f7d2 (patch) | |
| tree | 4f9788709a42f67bd11117b4b91660454b128eca /tests/guix-gc.sh | |
| parent | b06a70e05dc6252a3ecb28db5898de7ebc110973 (diff) | |
guix gc: Add '--derivers'.
* guix/scripts/gc.scm (show-help, %options): Add '--derivers'.
(guix-gc): Handle 'list-derivers'.
* tests/guix-gc.sh: Add test.
* doc/guix.texi (Invoking guix gc): Document it.
Diffstat (limited to 'tests/guix-gc.sh')
| -rw-r--r-- | tests/guix-gc.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/guix-gc.sh b/tests/guix-gc.sh index efbc7e759cc..ef2d9543b72 100644 --- a/tests/guix-gc.sh +++ b/tests/guix-gc.sh | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # GNU Guix --- Functional package management for GNU | 1 | # GNU Guix --- Functional package management for GNU |
| 2 | # Copyright © 2013, 2015, 2017 Ludovic Courtès <ludo@gnu.org> | 2 | # Copyright © 2013, 2015, 2017, 2018 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 | # |
| @@ -54,6 +54,9 @@ guix gc --references "$out/bin/guile" | |||
| 54 | if guix gc --references /dev/null; | 54 | if guix gc --references /dev/null; |
| 55 | then false; else true; fi | 55 | then false; else true; fi |
| 56 | 56 | ||
| 57 | # Check derivers. | ||
| 58 | guix gc --derivers "$out" | grep "$drv" | ||
| 59 | |||
| 57 | # Add then reclaim a .drv file. | 60 | # Add then reclaim a .drv file. |
| 58 | drv="`guix build idutils -d`" | 61 | drv="`guix build idutils -d`" |
| 59 | test -f "$drv" | 62 | test -f "$drv" |
