diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-06-24T14·35+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-06-24T14·35+0000 |
commit | a29c8ac51ca813a34eebb497340807e4b274170c (patch) | |
tree | 1d397489f67adc5d74471a592443066f473295e6 /tests/fall-back.sh | |
parent | ec326276217ad5b7761327da567f79bb5cc17f32 (diff) |
* Add a test to check that when we cannot realise a closure
expression, we should invalidate it and go back to the derivation for which it is a successor.
Diffstat (limited to 'tests/fall-back.sh')
-rw-r--r-- | tests/fall-back.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/fall-back.sh b/tests/fall-back.sh new file mode 100644 index 000000000000..a183e12f670c --- /dev/null +++ b/tests/fall-back.sh @@ -0,0 +1,14 @@ +storeExpr=$($TOP/src/nix-instantiate/nix-instantiate fall-back.nix) + +echo "store expr is $storeExpr" + +# Register a non-existant successor. +suc=$NIX_STORE_DIR/deadbeafdeadbeafdeadbeafdeadbeaf-s.store +$TOP/src/nix-store/nix-store --successor $storeExpr $suc + +outPath=$($TOP/src/nix-store/nix-store -qnfvvvvv "$storeExpr") + +echo "output path is $outPath" + +text=$(cat "$outPath"/hello) +if test "$text" != "Hello World!"; then exit 1; fi |