Debian Codegraph @

llvm/utils/lit/tests/Inputs/shtest-env-positive/env-i.txt

raw
1 ## Tests env command for clearing the environment
2
3 ## Check and make sure preset environment variable were set in lit.cfg.
4 #
5 # RUN: env | FileCheck --check-prefix=CHECK-ENV-PRESET %s
6 ## Check clearing the entire environment.
7 #
8 # RUN: env -i | FileCheck --check-prefix=CHECK-ENV-CLEAR-1 %s
9 #
10 ## Check setting a variable in a clear environment.
11 #
12 # RUN: env -i BAZ=3 | FileCheck --check-prefix=CHECK-ENV-ONE-1 %s
13 #
14
15 # CHECK-ENV-PRESET: BAR = 2
16 # CHECK-ENV-PRESET: FOO = 1
17
18 # CHECK-ENV-CLEAR-NOT: BAR
19 # CHECK-ENV-CLEAR-NOT: FOO
20
21 # CHECK-ENV-ONE-NOT: BAR
22 # CHECK-ENV-ONE: BAZ = 3
23 # CHECK-ENV-ONE-NOT: FOO