2011-09-14 05:59:29 +00:00
|
|
|
source common.sh
|
|
|
|
|
|
|
|
echo "Testing multiple outputs..."
|
|
|
|
|
2011-11-06 06:28:08 +00:00
|
|
|
drvPath=$(nix-instantiate multiple-outputs.nix)
|
2011-09-14 05:59:29 +00:00
|
|
|
|
|
|
|
echo "derivation is $drvPath"
|
|
|
|
|
2011-11-06 06:28:08 +00:00
|
|
|
outPath=$(nix-store -rvv "$drvPath")
|
2011-09-14 05:59:29 +00:00
|
|
|
|
|
|
|
echo "output path is $outPath"
|
|
|
|
|
|
|
|
text=$(cat "$outPath"/file)
|
|
|
|
if test "$text" != "success"; then exit 1; fi
|
|
|
|
|