lix/tests/export-graph.sh
Eelco Dolstra 2d5114452d * Regression test for the `exportReferencesGraph'
derivation attribute.
2009-03-17 16:33:48 +00:00

10 lines
252 B
Bash

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"