[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Unit / lit.cfg.py
blob406018c3f89c27270c0d44ca4fd707a3a3ac5551
1 # -*- Python -*-
3 # Configuration file for the 'lit' test runner.
5 import os
7 import lit.formats
9 # name: The name of this test suite.
10 config.name = 'flang-Unit'
12 # suffixes: A list of file extensions to treat as test files.
13 config.suffixes = []
15 # test_source_root: The root path where unit test binaries are located.
16 # test_exec_root: The root path where tests should be run.
17 config.test_source_root = os.path.join(config.flang_obj_root, 'unittests')
18 config.test_exec_root = config.test_source_root
20 # testFormat: The test format to use to interpret tests.
21 config.test_format = lit.formats.GoogleTest(config.llvm_build_mode, 'Tests')
23 # Tweak the PATH to include the tools dir.
24 path = os.path.pathsep.join((config.flang_tools_dir, config.llvm_tools_dir, config.environment['PATH']))
25 config.environment['PATH'] = path
27 path = os.path.pathsep.join((config.flang_libs_dir, config.llvm_libs_dir,
28 config.environment.get('LD_LIBRARY_PATH','')))
29 config.environment['LD_LIBRARY_PATH'] = path
31 # Propagate PYTHON_EXECUTABLE into the environment
32 #config.environment['PYTHON_EXECUTABLE'] = sys.executable
34 # To modify the default target triple for flang tests.
35 if config.flang_test_triple:
36 config.target_triple = config.flang_test_triple
37 config.environment[config.llvm_target_triple_env] = config.flang_test_triple