llvm-for-llvmta/utils/lit/tests/Inputs/shtest-env/env-u.txt

24 lines
687 B
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
# Check and make sure preset environment variable were set in lit.cfg
#
# RUN: %{python} print_environment.py \
# RUN: | FileCheck --check-prefix=CHECK-ENV-PRESET %s
#
# Check single unset of environment variable
#
# RUN: env -u FOO %{python} print_environment.py \
# RUN: | FileCheck --check-prefix=CHECK-ENV-UNSET-1 %s
#
# Check multiple unsets of environment variables
#
# RUN: env -u FOO -u BAR %{python} print_environment.py \
# RUN: | FileCheck --check-prefix=CHECK-ENV-UNSET-MULTIPLE %s
# CHECK-ENV-PRESET: BAR = 2
# CHECK-ENV-PRESET: FOO = 1
# CHECK-ENV-UNSET-1: BAR = 2
# CHECK-ENV-UNSET-1-NOT: FOO
# CHECK-ENV-UNSET-MULTIPLE-NOT: BAR
# CHECK-ENV-UNSET-MULTIPLE-NOT: FOO