Imported Upstream version 5.18.0.234

Former-commit-id: 8071ec1a8c5eaa9be24b41745add19297608001f
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-01-08 08:22:36 +00:00
parent f32dbaf0b2
commit 212f6bafcb
28494 changed files with 359 additions and 3867025 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)