forked from lix-project/lix
Test CA derivation input caching
This commit is contained in:
parent
02e0001fc0
commit
4db0010a93
|
@ -9,10 +9,13 @@ testDerivation () {
|
||||||
local derivationPath=$1
|
local derivationPath=$1
|
||||||
local commonArgs=("--experimental-features" "ca-derivations" "./content-addressed.nix" "-A" "$derivationPath" "--no-out-link")
|
local commonArgs=("--experimental-features" "ca-derivations" "./content-addressed.nix" "-A" "$derivationPath" "--no-out-link")
|
||||||
local out1=$(nix-build "${commonArgs[@]}" --arg seed 1)
|
local out1=$(nix-build "${commonArgs[@]}" --arg seed 1)
|
||||||
local out2=$(nix-build "${commonArgs[@]}" --arg seed 2)
|
local out2=$(nix-build "${commonArgs[@]}" --arg seed 2 "${extraArgs[@]}")
|
||||||
test $out1 == $out2
|
test $out1 == $out2
|
||||||
}
|
}
|
||||||
|
|
||||||
testDerivation root
|
testDerivation root
|
||||||
|
# The seed only changes the root derivation, and not it's output, so the
|
||||||
|
# dependent derivations should only need to be built once.
|
||||||
|
extaArgs=(-j0)
|
||||||
testDerivation dependent
|
testDerivation dependent
|
||||||
testDerivation transitivelyDependent
|
testDerivation transitivelyDependent
|
||||||
|
|
Loading…
Reference in a new issue