2020-03-14 07:40:02 +08:00
|
|
|
#!@PYTHON_EXECUTABLE@
|
2019-07-24 01:47:08 +08:00
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
2020-02-07 02:27:10 +08:00
|
|
|
dotest_path = '@LLDB_SOURCE_DIR_CONFIGURED@/test/API/dotest.py'
|
|
|
|
build_dir = '@LLDB_TEST_BUILD_DIRECTORY_CONFIGURED@'
|
|
|
|
dotest_args_str = '@LLDB_DOTEST_ARGS_CONFIGURED@'
|
2020-01-11 06:38:19 +08:00
|
|
|
arch = '@LLDB_TEST_ARCH@'
|
2020-02-07 02:27:10 +08:00
|
|
|
executable = '@LLDB_TEST_EXECUTABLE_CONFIGURED@'
|
|
|
|
compiler = '@LLDB_TEST_COMPILER_CONFIGURED@'
|
|
|
|
dsymutil = '@LLDB_TEST_DSYMUTIL_CONFIGURED@'
|
|
|
|
filecheck = '@LLDB_TEST_FILECHECK_CONFIGURED@'
|
|
|
|
lldb_libs_dir = "@LLDB_LIBS_DIR_CONFIGURED@"
|
2020-04-04 10:42:58 +08:00
|
|
|
lldb_build_intel_pt = "@LLDB_BUILD_INTEL_PT@"
|
2019-07-24 01:47:08 +08:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
wrapper_args = sys.argv[1:]
|
|
|
|
dotest_args = dotest_args_str.split(';')
|
|
|
|
# Build dotest.py command.
|
2019-08-29 00:28:58 +08:00
|
|
|
cmd = [sys.executable, dotest_path]
|
2020-01-11 06:38:19 +08:00
|
|
|
cmd.extend(['--arch', arch])
|
2019-07-24 01:47:08 +08:00
|
|
|
cmd.extend(dotest_args)
|
2019-08-30 02:37:05 +08:00
|
|
|
cmd.extend(['--build-dir', build_dir])
|
2020-01-11 06:38:19 +08:00
|
|
|
cmd.extend(['--executable', executable])
|
|
|
|
cmd.extend(['--compiler', compiler])
|
|
|
|
cmd.extend(['--dsymutil', dsymutil])
|
|
|
|
cmd.extend(['--filecheck', filecheck])
|
2020-02-06 07:15:01 +08:00
|
|
|
cmd.extend(['--lldb-libs-dir', lldb_libs_dir])
|
2020-04-04 10:42:58 +08:00
|
|
|
if lldb_build_intel_pt == "1":
|
|
|
|
cmd.extend(['--enable-plugin', 'intel-pt'])
|
2019-07-24 01:47:08 +08:00
|
|
|
cmd.extend(wrapper_args)
|
|
|
|
# Invoke dotest.py and return exit code.
|
|
|
|
print(' '.join(cmd))
|
|
|
|
sys.exit(subprocess.call(cmd))
|