mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
Add a test for multiple outputs
This currently fails. Yay test-driven development!
This commit is contained in:
parent
c172d16b00
commit
8f28a3ba25
5 changed files with 54 additions and 1 deletions
15
tests/multiple-outputs.sh
Normal file
15
tests/multiple-outputs.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
source common.sh
|
||||
|
||||
echo "Testing multiple outputs..."
|
||||
|
||||
drvPath=$($nixinstantiate multiple-outputs.nix)
|
||||
|
||||
echo "derivation is $drvPath"
|
||||
|
||||
outPath=$($nixstore -rvv "$drvPath")
|
||||
|
||||
echo "output path is $outPath"
|
||||
|
||||
text=$(cat "$outPath"/file)
|
||||
if test "$text" != "success"; then exit 1; fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue