2005-01-28 21:36:46 +01:00
|
|
|
storeExpr=$($TOP/src/nix-instantiate/nix-instantiate gc-concurrent.nix)
|
|
|
|
outPath=$($TOP/src/nix-store/nix-store -q $storeExpr)
|
|
|
|
|
2005-01-31 11:27:25 +01:00
|
|
|
ls -l test-tmp/state/temproots
|
|
|
|
|
2005-01-28 21:36:46 +01:00
|
|
|
|
|
|
|
# Start a build in the background.
|
|
|
|
$TOP/src/nix-store/nix-store -rvv "$storeExpr" &
|
|
|
|
pid=$!
|
|
|
|
|
|
|
|
# Run the garbage collector while the build is running.
|
|
|
|
sleep 2
|
2005-01-31 11:27:25 +01:00
|
|
|
$NIX_BIN_DIR/nix-collect-garbage -vvvvv
|
2005-01-28 21:36:46 +01:00
|
|
|
|
|
|
|
# Wait for the build to finish.
|
|
|
|
echo waiting for pid $pid to finish...
|
|
|
|
wait $pid
|
|
|
|
|
|
|
|
# Check that the root and its dependencies haven't been deleted.
|
|
|
|
cat $outPath/foobar
|
|
|
|
cat $outPath/input-2/bar
|