diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26 18:00:46 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26 18:00:46 +0100 |
commit | fac6f8aac0802be4481e7dab53d4875ca8b60ee0 (patch) | |
tree | 2ea9239b43150a917f446b1e9ebccd26edfa0645 /tests | |
parent | 84143c4bd80b38a44443e06f1c8c33dc212ccef7 (diff) | |
download | guix-fac6f8aac0802be4481e7dab53d4875ca8b60ee0.tar.gz |
Test nix-store -q --roots
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gc.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gc.sh b/tests/gc.sh index a375a35c2e..0adb05bf17 100644 --- a/tests/gc.sh +++ b/tests/gc.sh @@ -7,6 +7,8 @@ outPath=$(nix-store -rvv "$drvPath") rm -f "$NIX_STATE_DIR"/gcroots/foo ln -sf $outPath "$NIX_STATE_DIR"/gcroots/foo +[ "$(nix-store -q --roots $outPath)" = "$NIX_STATE_DIR"/gcroots/foo ] + nix-store --gc --print-roots | grep $outPath nix-store --gc --print-live | grep $outPath nix-store --gc --print-dead | grep $drvPath |