about summary refs log blame commit diff
path: root/tests/multiple-outputs.sh
blob: 8a7ae22364c46ad8321a5d81af1588c82a117fc4 (plain) (tree)
1
2
3
4
5
6
7



                                  
                                              
                              
                                        









                                                                      
              
source common.sh

echo "Testing multiple outputs..."

outPath=$(nix-build multiple-outputs.nix -A b)
echo "output path is $outPath"
[ "$(cat "$outPath"/file)" = "success" ]

# Make sure that nix-build works on derivations with multiple outputs.
nix-build multiple-outputs.nix -A a.first

# Cyclic outputs should be rejected.
if nix-build multiple-outputs.nix -A cyclic; then
    echo "Cyclic outputs incorrectly accepted!"
    exit 1
fi

nix-store --gc