Imported Upstream version 5.18.0.207

Former-commit-id: 3b152f462918d427ce18620a2cbe4f8b79650449
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-11-17 08:23:10 +00:00
parent 8e12397d70
commit eb85e2fc17
28480 changed files with 72 additions and 3866936 deletions

View File

@ -1,9 +0,0 @@
# RUN: %{python} %s
from __future__ import print_function
import sys
print("Running infinite loop")
sys.stdout.flush() # Make sure the print gets flushed so it appears in lit output.
while True:
pass

View File

@ -1,32 +0,0 @@
# -*- Python -*-
import os
import sys
import lit.formats
config.name = 'per_test_timeout'
shellType = lit_config.params.get('external', '1')
if shellType == '0':
lit_config.note('Using internal shell')
externalShell = False
else:
lit_config.note('Using external shell')
externalShell = True
configSetTimeout = lit_config.params.get('set_timeout', '0')
if configSetTimeout == '1':
# Try setting the max individual test time in the configuration
lit_config.maxIndividualTestTime = 1
config.test_format = lit.formats.ShTest(execute_external=externalShell)
config.suffixes = ['.py']
config.test_source_root = os.path.dirname(__file__)
config.test_exec_root = config.test_source_root
config.target_triple = '(unused)'
src_root = os.path.join(config.test_source_root, '..')
config.environment['PYTHONPATH'] = src_root
config.substitutions.append(('%{python}', sys.executable))

View File

@ -1,24 +0,0 @@
# RUN: %{python} %s quick
# RUN: %{python} %s slow
from __future__ import print_function
import time
import sys
if len(sys.argv) != 2:
print("Wrong number of args")
sys.exit(1)
mode = sys.argv[1]
if mode == 'slow':
print("Running in slow mode")
sys.stdout.flush() # Make sure the print gets flushed so it appears in lit output.
time.sleep(6)
sys.exit(0)
elif mode == 'quick':
print("Running in quick mode")
sys.exit(0)
else:
print("Unrecognised mode {}".format(mode))
sys.exit(1)

View File

@ -1,4 +0,0 @@
# RUN: %{python} %s
from __future__ import print_function
print("short program")

View File

@ -1,9 +0,0 @@
# RUN: %{python} %s
from __future__ import print_function
import time
import sys
print("Running slow program")
sys.stdout.flush() # Make sure the print gets flushed so it appears in lit output.
time.sleep(6)