diff options
Diffstat (limited to 'tests/export-graph.sh')
-rw-r--r-- | tests/export-graph.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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" |