mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
* Add a test for unsafeDiscardOutputDependency. Not really related to
multiple outputs, but good to have anyway.
This commit is contained in:
parent
179409b911
commit
4be5a2c096
2 changed files with 16 additions and 0 deletions
|
@ -14,6 +14,12 @@ drvPath2=$(nix-instantiate multiple-outputs.nix -A c)
|
|||
grep -q 'multiple-outputs-a.drv",\["first","second"\]' $drvPath
|
||||
grep -q 'multiple-outputs-b.drv",\["out"\]' $drvPath
|
||||
|
||||
# While we're at it, test the ‘unsafeDiscardOutputDependency’ primop.
|
||||
outPath=$(nix-build multiple-outputs.nix -A d)
|
||||
drvPath=$(cat $outPath/drv)
|
||||
outPath=$(nix-store -q $drvPath)
|
||||
! [ -e "$outPath" ]
|
||||
|
||||
# Do a build of something that depends on a derivation with multiple
|
||||
# outputs.
|
||||
echo "building b..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue