Debian Codegraph @

test/blackbox-tests/test-cases/stanzas/env/env-variables/precedence.t/run.t

raw
1 Environment variables defined in (env) are set during execution.
2
3 They can be set from the workspace:
4
5 $ dune exec ./printenv.exe VARIABLE_FROM_WORKSPACE
6 VARIABLE_FROM_WORKSPACE=value1
7
8 From a (context) stanza in the workspace:
9
10 $ dune exec ./printenv.exe VARIABLE_FROM_CONTEXT
11 VARIABLE_FROM_CONTEXT=value2
12
13 When a variable is set from both a context and a global one, the context one is
14 used.
15
16 $ dune exec ./printenv.exe VARIABLE_FROM_BOTH
17 VARIABLE_FROM_BOTH=from_workspace