nix-super/tests/multiple-outputs.sh

16 lines
279 B
Bash
Raw Normal View History

source common.sh
echo "Testing multiple outputs..."
drvPath=$(nix-instantiate multiple-outputs.nix)
echo "derivation is $drvPath"
outPath=$(nix-store -rvv "$drvPath")
echo "output path is $outPath"
text=$(cat "$outPath"/file)
if test "$text" != "success"; then exit 1; fi