diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-06-28T10·42+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-06-28T10·42+0000 |
commit | 91dc023665e22eb5637bf08c405e91ac9060c357 (patch) | |
tree | 566e96b4670653bc9ab68f042e94808dcdcb5b29 /tests | |
parent | b113edeab780216b0590045b932be685d1399e9b (diff) |
* Added a switch `--fallback'. From the manual:
Whenever Nix attempts to realise a derivation for which a closure is already known, but this closure cannot be realised, fall back on normalising the derivation. The most common scenario in which this is useful is when we have registered substitutes in order to perform binary distribution from, say, a network repository. If the repository is down, the realisation of the derivation will fail. When this option is specified, Nix will build the derivation instead. Thus, binary installation falls back on a source installation. This option is not the default since it is generally not desirable for a transient failure in obtaining the substitutes to lead to a full build from source (with the related consumption of resources).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 6 | ||||
-rw-r--r-- | tests/fallback.nix.in (renamed from tests/fall-back.nix.in) | 0 | ||||
-rw-r--r-- | tests/fallback.sh (renamed from tests/fall-back.sh) | 2 | ||||
-rw-r--r-- | tests/verify.sh | 1 |
4 files changed, 5 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 19122cd9556e..9e1d6a19836a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -19,10 +19,10 @@ parallel.sh: parallel.nix build-hook.sh: build-hook.nix substitutes.sh: substitutes.nix substituter.nix substitutes2.sh: substitutes2.nix substituter.nix substituter2.nix -fall-back.sh: fall-back.nix +fallback.sh: fallback.nix TESTS = init.sh simple.sh dependencies.sh locking.sh parallel.sh \ - build-hook.sh substitutes.sh substitutes2.sh + build-hook.sh substitutes.sh substitutes2.sh fallback.sh verify.sh XFAIL_TESTS = @@ -36,4 +36,4 @@ EXTRA_DIST = $(TESTS) \ build-hook.nix.in build-hook.hook.sh \ substitutes.nix.in substituter.nix.in substituter.builder.sh \ substitutes2.nix.in substituter2.nix.in substituter2.builder.sh \ - fall-back.nix.in + fallback.nix.in diff --git a/tests/fall-back.nix.in b/tests/fallback.nix.in index 0575d6940d11..0575d6940d11 100644 --- a/tests/fall-back.nix.in +++ b/tests/fallback.nix.in diff --git a/tests/fall-back.sh b/tests/fallback.sh index e4a39421772b..5799775eb2f8 100644 --- a/tests/fall-back.sh +++ b/tests/fallback.sh @@ -7,7 +7,7 @@ suc=$NIX_STORE_DIR/deadbeafdeadbeafdeadbeafdeadbeaf-s.store (echo $suc && echo $NIX_STORE_DIR/ffffffffffffffffffffffffffffffff.store && echo "/bla" && echo 0) | $TOP/src/nix-store/nix-store --substitute $TOP/src/nix-store/nix-store --successor $storeExpr $suc -outPath=$($TOP/src/nix-store/nix-store -qnf "$storeExpr") +outPath=$($TOP/src/nix-store/nix-store -qnf --fallback "$storeExpr") echo "output path is $outPath" diff --git a/tests/verify.sh b/tests/verify.sh new file mode 100644 index 000000000000..ede3e7d74bea --- /dev/null +++ b/tests/verify.sh @@ -0,0 +1 @@ +$TOP/src/nix-store/nix-store --verify |