From 52bf9b86bb79369b7f7b5b8a5726b83ee154da6a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 25 Jan 2005 11:18:03 +0000 Subject: * In nix-store: added query `--referers-closure' that returns the closure of the referers relation rather than the references relation, i.e., the set of all paths that directly or indirectly refer to the given path. Note that contrary to the references closure this set is not fixed; it can change as paths are added to or removed from the store. --- tests/dependencies.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/dependencies.sh b/tests/dependencies.sh index fe4aa0c3c960..56cb1e4c38d4 100644 --- a/tests/dependencies.sh +++ b/tests/dependencies.sh @@ -20,4 +20,7 @@ echo "$deps" | grep -q "$outPath" if echo "$deps" | grep -q "dependencies-input-1"; then exit 1; fi # Input-2 is retained. -echo "$deps" | grep -q "dependencies-input-2" +input2OutPath=$(echo "$deps" | grep "dependencies-input-2") + +# The referers closure of input-2 should include outPath. +$TOP/src/nix-store/nix-store -q --referers-closure "$input2OutPath" | grep "$outPath" -- cgit 1.4.1