From 2d5114452d8a8f73c858f9beb6bfaafe35e7bf9a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Mar 2009 16:33:48 +0000 Subject: * Regression test for the `exportReferencesGraph' derivation attribute. --- tests/export-graph.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/export-graph.sh (limited to 'tests/export-graph.sh') diff --git a/tests/export-graph.sh b/tests/export-graph.sh new file mode 100644 index 000000000..f31bc75ab --- /dev/null +++ b/tests/export-graph.sh @@ -0,0 +1,9 @@ +source common.sh + +clearStore +clearProfiles + +outPath=$($nixbuild ./export-graph.nix) + +test $(nix-store -q --references ./result | wc -l) = 2 || fail "bad nr of references" +nix-store -q --references ./result | grep -q input-2 || fail "missing reference" -- cgit v1.2.3