From 8052aef4866e236ef0bb5d5675bbae330abb9b9b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 24 Jun 2004 12:56:24 +0000 Subject: * A test for multiple and/or failing substitutes. --- tests/substitutes.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/substitutes.sh') diff --git a/tests/substitutes.sh b/tests/substitutes.sh index ea214a8a8..7b236249b 100644 --- a/tests/substitutes.sh +++ b/tests/substitutes.sh @@ -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" -- cgit v1.2.3