summaryrefslogtreecommitdiffstats
path: root/lldb/utils/lldb-dotest/lldb-dotest.in
blob: 18a73ae0b1eb3d60eaa167da05098c4028aefe48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
import subprocess
import sys

dotest_path = '@LLDB_SOURCE_DIR@/test/dotest.py'
dotest_args_str = '@LLDB_DOTEST_ARGS@'

if __name__ == '__main__':
    wrapper_args = sys.argv[1:]
    dotest_args = dotest_args_str.split(';')
    # Build dotest.py command.
    cmd = [sys.executable, dotest_path, '-q']
    cmd.extend(dotest_args)
    cmd.extend(wrapper_args)
    # Invoke dotest.py and return exit code.
    print(' '.join(cmd))
    sys.exit(subprocess.call(cmd))
OpenPOWER on IntegriCloud