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 @@
; RUN: polly-isl-test

View File

@@ -0,0 +1,45 @@
# -*clang- Python -*-
import os
import platform
import re
import lit.formats
import lit.util
# Configuration file for the 'lit' test runner.
# name: The name of this test suite.
config.name = 'Polly - isl unit tests'
# testFormat: The test format to use to interpret tests.
#
# For now we require '&&' between commands, until they get globally killed and
# the test runner updated.
execute_external = platform.system() != 'Windows'
config.test_format = lit.formats.ShTest(execute_external)
# suffixes: A list of file extensions to treat as test files.
config.suffixes = ['.sh']
# test_source_root: The root path where tests are located.
config.test_source_root = os.path.dirname(__file__)
# test_exec_root: The root path where tests should be run.
polly_obj_root = getattr(config, 'polly_obj_root', None)
if polly_obj_root is not None:
config.test_exec_root = os.path.join(polly_obj_root, 'test')
# Set llvm_{src,obj}_root for use by others.
config.llvm_src_root = getattr(config, 'llvm_src_root', None)
config.llvm_obj_root = getattr(config, 'llvm_obj_root', None)
# Tweak the PATH to ensure that built files are the ones executed.
bin_dir = getattr(config, 'bin_dir', None)
if bin_dir is None:
lit_config.fatal('No executable dir set!')
path = os.path.pathsep.join((bin_dir, config.environment['PATH']))
config.environment['PATH'] = path
config.environment['srcdir'] = os.path.join(config.test_source_root,
'../../lib/External/isl')

View File

@@ -0,0 +1,10 @@
@LIT_SITE_CFG_IN_HEADER@
import sys
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
config.polly_obj_root = "@POLLY_BINARY_DIR@"
config.bin_dir = "@CMAKE_RUNTIME_OUTPUT_DIRECTORY@"
# Let the main config do the real work.
lit_config.load_config(config, "@POLLY_SOURCE_DIR@/test/UnitIsl/lit.cfg")