From fac6f8aac0802be4481e7dab53d4875ca8b60ee0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 26 Feb 2014 18:00:46 +0100 Subject: Test nix-store -q --roots --- tests/gc.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/gc.sh b/tests/gc.sh index a375a35c2..0adb05bf1 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 -- cgit v1.2.3