mirror of
https://github.com/NixOS/nix
synced 2025-07-07 18:31:49 +02:00
* Add a test for nix-log2xml.
This commit is contained in:
parent
458820df6c
commit
e48bd8c8b5
7 changed files with 41 additions and 8 deletions
|
@ -4,7 +4,8 @@ drvPath=$($nixinstantiate dependencies.nix)
|
|||
outPath=$($nixstore -rvv "$drvPath")
|
||||
|
||||
# Set a GC root.
|
||||
ln -s $outPath "$NIX_STATE_DIR"/gcroots/foo
|
||||
rm -f "$NIX_STATE_DIR"/gcroots/foo
|
||||
ln -sf $outPath "$NIX_STATE_DIR"/gcroots/foo
|
||||
|
||||
$NIX_BIN_DIR/nix-collect-garbage
|
||||
|
||||
|
@ -14,3 +15,5 @@ cat $outPath/input-2/bar
|
|||
|
||||
# Check that the derivation has been GC'd.
|
||||
if cat $drvPath > /dev/null; then false; fi
|
||||
|
||||
rm "$NIX_STATE_DIR"/gcroots/foo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue