diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-18T17·36+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-18T17·36+0000 |
commit | 28972864879a63c4110211d9852b692672869a2a (patch) | |
tree | b7dc88b7a10f2f65aea0cbe553d985ddb6f3f67f /tests | |
parent | e530e0a35041b3135b521f1b2dbc21fabfb00d47 (diff) |
* Unify exportReferencesGraph and exportBuildReferencesGraph, and make
sure that it works as expected when you pass it a derivation. That is, we have to make sure that all build-time dependencies are built, and that they are all in the input closure (otherwise remote builds might fail, for example). This is ensured at instantiation time by adding all derivations and their sources to inputDrvs and inputSrcs.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/export-graph.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/export-graph.nix b/tests/export-graph.nix index d65ad8c143cb..3a0b0368d6ca 100644 --- a/tests/export-graph.nix +++ b/tests/export-graph.nix @@ -4,12 +4,13 @@ rec { printRefs = '' + echo $exportReferencesGraph while read path; do read drv read nrRefs echo "$path has $nrRefs references" echo "$path" >> $out - for ((n = 0; n < $nrRefs; n++)); do read ref; echo "ref $ref"; done + for ((n = 0; n < $nrRefs; n++)); do read ref; echo "ref $ref"; test -e "$ref"; done done < refs ''; @@ -22,7 +23,7 @@ rec { buildGraph = mkDerivation { name = "dependencies"; builder = builtins.toFile "build-graph-builder" "${printRefs}"; - exportBuildReferencesGraph = ["refs" (import ./dependencies.nix).drvPath]; + exportReferencesGraph = ["refs" (import ./dependencies.nix).drvPath]; }; } |