Imported Upstream version 6.10.0.49

Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-01-16 16:38:04 +00:00
parent d94e79959b
commit 468663ddbb
48518 changed files with 2789335 additions and 61176 deletions

View File

@ -0,0 +1,23 @@
# 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

View File

@ -0,0 +1,15 @@
# Check for simple one environment variable setting
#
# RUN: env A_FOO=999 %{python} print_environment.py \
# RUN: | FileCheck --check-prefix=CHECK-ENV-1 %s
#
# Check for multiple environment variable settings
#
# RUN: env A_FOO=1 B_BAR=2 C_OOF=3 %{python} print_environment.py \
# RUN: | FileCheck --check-prefix=CHECK-ENV-MULTIPLE %s
# CHECK-ENV-1: A_FOO = 999
# CHECK-ENV-MULTIPLE: A_FOO = 1
# CHECK-ENV-MULTIPLE: B_BAR = 2
# CHECK-ENV-MULTIPLE: C_OOF = 3

View File

@ -0,0 +1,9 @@
import lit.formats
config.name = 'shtest-env'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()
config.test_source_root = None
config.test_exec_root = None
config.environment['FOO'] = '1'
config.environment['BAR'] = '2'
config.substitutions.append(('%{python}', sys.executable))

View File

@ -0,0 +1,18 @@
# Check for setting and removing one environment variable
#
# RUN: env A_FOO=999 -u FOO %{python} print_environment.py \
# RUN: | FileCheck --check-prefix=CHECK-ENV-1 %s
#
# Check for setting/unsetting multiple environment variables
#
# RUN: env A_FOO=1 -u FOO B_BAR=2 -u BAR C_OOF=3 %{python} print_environment.py \
# RUN: | FileCheck --check-prefix=CHECK-ENV-MULTIPLE %s
# CHECK-ENV-1: A_FOO = 999
# CHECK-ENV-1-NOT: FOO
# CHECK-ENV-MULTIPLE: A_FOO = 1
# CHECK-ENV-MULTIPLE-NOT: BAR
# CHECK-ENV-MULTIPLE: B_BAR = 2
# CHECK-ENV-MULTIPLE: C_OOF = 3
# CHECK-ENV-MULTIPLE-NOT: FOO

View File

@ -0,0 +1,8 @@
#!/usr/bin/env python
import os
sorted_environment = sorted(os.environ.items())
for name,value in sorted_environment:
print name,'=',value

View File

@ -0,0 +1,3 @@
# Check the env command
#
# RUN: %{lit} -a -v %{inputs}/shtest-env