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:
parent
33ecb42991
commit
2d5114452d
8 changed files with 69 additions and 33 deletions
9
tests/export-graph.sh
Normal file
9
tests/export-graph.sh
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue