1f3b0ede7d
recursive outputs are properly rejected. * Add a (also failing) test for "nix-build -A <output-name>".
19 lines
449 B
Bash
19 lines
449 B
Bash
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
|