2018-03-05 18:03:44 +08:00
|
|
|
#!/usr/bin/env python
|
2018-03-21 19:13:56 +08:00
|
|
|
import subprocess
|
2018-03-05 18:03:44 +08:00
|
|
|
import sys
|
|
|
|
|
|
|
|
dotest_path = '@LLDB_SOURCE_DIR@/test/dotest.py'
|
2018-03-21 19:13:56 +08:00
|
|
|
dotest_args_str = '@LLDB_DOTEST_ARGS@'
|
2018-03-05 18:03:44 +08:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2018-03-21 19:13:56 +08:00
|
|
|
wrapper_args = sys.argv[1:]
|
|
|
|
dotest_args = dotest_args_str.split(';')
|
|
|
|
# Build dotest.py command.
|
2019-02-15 15:41:17 +08:00
|
|
|
cmd = [sys.executable, dotest_path, '-q']
|
2018-03-21 19:13:56 +08:00
|
|
|
cmd.extend(dotest_args)
|
|
|
|
cmd.extend(wrapper_args)
|
2018-04-02 18:44:36 +08:00
|
|
|
# Invoke dotest.py and return exit code.
|
2019-04-03 09:26:38 +08:00
|
|
|
print(' '.join(cmd))
|
2018-04-02 18:44:36 +08:00
|
|
|
sys.exit(subprocess.call(cmd))
|