tvl-depot/tests/export-graph.sh

10 lines
252 B
Bash
Raw Normal View History

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"