1
0
Fork 0
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:
Eelco Dolstra 2006-03-01 13:25:08 +00:00
parent 458820df6c
commit e48bd8c8b5
7 changed files with 41 additions and 8 deletions

View file

@ -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