1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

* Regression test for the `exportReferencesGraph'

derivation attribute.
This commit is contained in:
Eelco Dolstra 2009-03-17 16:33:48 +00:00
parent 33ecb42991
commit 2d5114452d
8 changed files with 69 additions and 33 deletions

9
tests/export-graph.sh Normal file
View file

@ -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"