mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
* A test for multiple and/or failing substitutes.
This commit is contained in:
parent
66c7f34759
commit
8052aef486
5 changed files with 80 additions and 5 deletions
|
@ -10,13 +10,17 @@ echo "output path is $outPath"
|
|||
subExpr=$($TOP/src/nix-instantiate/nix-instantiate substituter.nix)
|
||||
echo "store expr is $subExpr"
|
||||
|
||||
regSub() {
|
||||
(echo $1 && echo $2 && echo "/substituter" && echo 3 && echo $outPath && echo Hallo && echo Wereld) | $TOP/src/nix-store/nix-store --substitute
|
||||
}
|
||||
|
||||
# Register a fake successor, and a substitute for it.
|
||||
suc=$NIX_STORE_DIR/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-s.store
|
||||
(echo $suc && echo $subExpr && echo "/substituter" && echo 3 && echo $outPath && echo Hallo && echo Wereld) | $TOP/src/nix-store/nix-store --substitute
|
||||
regSub $suc $subExpr
|
||||
$TOP/src/nix-store/nix-store --successor $storeExpr $suc
|
||||
|
||||
# Register a substitute for the output path.
|
||||
(echo $outPath && echo $subExpr && echo "/substituter" && echo 3 && echo $outPath && echo Hallo && echo Wereld) | $TOP/src/nix-store/nix-store --substitute
|
||||
regSub $outPath $subExpr
|
||||
|
||||
|
||||
$TOP/src/nix-store/nix-store -rvvvvv "$storeExpr"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue