mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 07:32:36 +00:00
22af9c63f3
This renames llvm-dotest to lldb-dotest and makes it a custom target so you can run `ninja lldb-dotest` to rebuild whatever is necessary before rerunning the tests. Differential revision: https://reviews.llvm.org/D44473 llvm-svn: 327519
15 lines
466 B
Python
Executable File
15 lines
466 B
Python
Executable File
#!/usr/bin/env python
|
|
import sys
|
|
import os
|
|
|
|
dotest_path = '@LLDB_SOURCE_DIR@/test/dotest.py'
|
|
dotest_args = '@LLDB_DOTEST_ARGS_STR@'
|
|
|
|
if __name__ == '__main__':
|
|
# FIXME: It would be nice if we can mimic the approach taken by llvm-lit
|
|
# and pass a python configuration straight to dotest, rather than going
|
|
# through the operating system.
|
|
command = '{} -q {} {}'.format(dotest_path, dotest_args, ' '.join(
|
|
sys.argv[1:]))
|
|
os.system(command)
|