mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
* Refactor a bit so that more tests can be added.
This commit is contained in:
parent
b5363810bb
commit
46e42c92c1
5 changed files with 26 additions and 36 deletions
|
@ -2,14 +2,6 @@ source common.sh
|
|||
|
||||
echo "Testing multiple outputs..."
|
||||
|
||||
drvPath=$(nix-instantiate multiple-outputs.nix)
|
||||
|
||||
echo "derivation is $drvPath"
|
||||
|
||||
outPath=$(nix-store -rvv "$drvPath")
|
||||
|
||||
outPath=$(nix-build multiple-outputs.nix -A b)
|
||||
echo "output path is $outPath"
|
||||
|
||||
text=$(cat "$outPath"/file)
|
||||
if test "$text" != "success"; then exit 1; fi
|
||||
|
||||
[ "$(cat "$outPath"/file)" = "success" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue