diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2013-02-27 23:16:00 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2013-02-27 23:16:00 +0100 |
| commit | ba8b732d209a891455ef08b81125796dab797435 (patch) | |
| tree | d2abdf96ed3798e9c046a847fa3eea04721ca32c /tests/guix-gc.sh | |
| parent | fae31edcec43c93a996a1872c68d1c540af0068f (diff) | |
guix gc: Add `--references' and `--referrers'.
* guix/scripts/gc.scm (show-help): Update.
(%options): Add `--references' and `--referrers'.
(guix-gc)[symlink-target, store-directory]: New procedures.
Handle the `list-references' and `list-referrers' actions.
* tests/guix-gc.sh: Add tests for `--references'.
* doc/guix.texi (Invoking guix gc): Document `--references' and
`--referrers'.
Diffstat (limited to 'tests/guix-gc.sh')
| -rw-r--r-- | tests/guix-gc.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/guix-gc.sh b/tests/guix-gc.sh index a90d085ab2e..eac9d82e898 100644 --- a/tests/guix-gc.sh +++ b/tests/guix-gc.sh | |||
| @@ -25,6 +25,18 @@ guix gc --version | |||
| 25 | trap "rm -f guix-gc-root" EXIT | 25 | trap "rm -f guix-gc-root" EXIT |
| 26 | rm -f guix-gc-root | 26 | rm -f guix-gc-root |
| 27 | 27 | ||
| 28 | # Check the references of a .drv. | ||
| 29 | drv="`guix build guile-bootstrap -d`" | ||
| 30 | out="`guix build guile-bootstrap`" | ||
| 31 | test -f "$drv" && test -d "$out" | ||
| 32 | |||
| 33 | guix gc --references "$drv" | grep -e -bash | ||
| 34 | guix gc --references "$out" | ||
| 35 | guix gc --references "$out/bin/guile" | ||
| 36 | |||
| 37 | if guix gc --references /dev/null; | ||
| 38 | then false; else true; fi | ||
| 39 | |||
| 28 | # Add then reclaim a .drv file. | 40 | # Add then reclaim a .drv file. |
| 29 | drv="`guix build idutils -d`" | 41 | drv="`guix build idutils -d`" |
| 30 | test -f "$drv" | 42 | test -f "$drv" |
