2019-07-24 01:47:08 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
2019-10-10 04:30:54 +08:00
|
|
|
dotest_path = '@LLDB_SOURCE_DIR@/test/API/dotest.py'
|
2019-08-30 02:37:05 +08:00
|
|
|
build_dir = '@LLDB_TEST_BUILD_DIRECTORY@'
|
2019-07-24 01:47:08 +08:00
|
|
|
dotest_args_str = '@LLDB_DOTEST_ARGS@'
|
2020-01-11 06:38:19 +08:00
|
|
|
arch = '@LLDB_TEST_ARCH@'
|
|
|
|
executable = '@LLDB_TEST_EXECUTABLE@'
|
|
|
|
compiler = '@LLDB_TEST_COMPILER@'
|
|
|
|
dsymutil = '@LLDB_TEST_DSYMUTIL@'
|
|
|
|
filecheck = '@LLDB_TEST_FILECHECK@'
|
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])
|
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))
|