1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

Add DummyStore (dummy://)

DummyStore does not allow building or adding paths. This is useful for
evaluation tests when you don't want to initialize a "proper" store.
This commit is contained in:
Eelco Dolstra 2020-08-24 18:54:16 +02:00
parent d0690bc311
commit 6a67e57019
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 61 additions and 1 deletions

View file

@ -1,6 +1,7 @@
source common.sh
export TEST_VAR=foo # for eval-okay-getenv.nix
export NIX_REMOTE=dummy://
nix-instantiate --eval -E 'builtins.trace "Hello" 123' 2>&1 | grep -q Hello
(! nix-instantiate --show-trace --eval -E 'builtins.addErrorContext "Hello" 123' 2>&1 | grep -q Hello)