* Refactoring: remove unnecessary variables from the tests.
This commit is contained in:
parent
cd6d02c366
commit
8af7d766f0
33 changed files with 220 additions and 235 deletions
|
@ -3,20 +3,20 @@ source common.sh
|
|||
clearStore
|
||||
|
||||
# Instantiate.
|
||||
drvPath=$($nixinstantiate simple.nix)
|
||||
drvPath=$(nix-instantiate simple.nix)
|
||||
echo "derivation is $drvPath"
|
||||
|
||||
# Find the output path.
|
||||
outPath=$($nixstore -qvv "$drvPath")
|
||||
outPath=$(nix-store -qvv "$drvPath")
|
||||
echo "output path is $outPath"
|
||||
|
||||
echo $outPath > $TEST_ROOT/sub-paths
|
||||
|
||||
export NIX_SUBSTITUTERS=$(pwd)/substituter.sh
|
||||
|
||||
$nixstore -r "$drvPath" --dry-run 2>&1 | grep -q "1.00 MiB.*2.00 MiB"
|
||||
nix-store -r "$drvPath" --dry-run 2>&1 | grep -q "1.00 MiB.*2.00 MiB"
|
||||
|
||||
$nixstore -rvv "$drvPath"
|
||||
nix-store -rvv "$drvPath"
|
||||
|
||||
text=$(cat "$outPath"/hello)
|
||||
if test "$text" != "Hallo Wereld"; then echo "wrong substitute output: $text"; exit 1; fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue