about summary refs log tree commit diff
path: root/tests/multiple-outputs.sh
blob: d4185c55bcc890c59d1c39d519d71afa643b2b4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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

clearStore