blob: 2873479282c666bebdb378b4b078559d7115da04 [file] [log] [blame]
# -*- Python -*-
# Configuration file for the 'lit' test runner.
import os
import lit.formats
# name: The name of this test suite.
config.name = 'lldb-Suite'
# suffixes: A list of file extensions to treat as test files.
config.suffixes = ['.py']
# test_source_root: The root path where tests are located.
# test_exec_root: The root path where tests should be run.
config.test_source_root = os.path.join(config.lldb_src_root, 'packages','Python','lldbsuite','test')
config.test_exec_root = config.test_source_root
# Build dotest command.
dotest_cmd = [config.dotest_path, '-q']
dotest_cmd.extend(config.dotest_args_str.split(';'))
# Load LLDB test format.
sys.path.append(os.path.join(config.lldb_src_root, "lit", "Suite"))
import lldbtest
# testFormat: The test format to use to interpret tests.
config.test_format = lldbtest.LLDBTest(dotest_cmd)