diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-10 14:38:19 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-10 14:40:17 -0800 |
commit | 7ce92dc0b4bcc1044052a06df3f07a94eb890823 (patch) | |
tree | e05a5ae54c6934a2e3a9cb4b29307cffc9495174 /lldb/utils | |
parent | a9052b4dfc1b25bd58480668d221365495fa9101 (diff) | |
download | llvm-7ce92dc0b4bcc1044052a06df3f07a94eb890823.tar.gz |
[lldb/Test] Bypass LLDB_TEST_COMMON_ARGS for certain dotest args (NFC)
Rather than serializing every argument through LLDB_TEST_COMMON_ARGS, we
can pass some of them directly using their CMake variable. Although this
does introduce some code duplication between lit's site config and the
lldb-dotest utility, it also means that it becomes easier to override
these values (WIP).
Diffstat (limited to 'lldb/utils')
-rwxr-xr-x | lldb/utils/lldb-dotest/lldb-dotest.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/utils/lldb-dotest/lldb-dotest.in b/lldb/utils/lldb-dotest/lldb-dotest.in index 2032e2159d94..bab3f8baa98d 100755 --- a/lldb/utils/lldb-dotest/lldb-dotest.in +++ b/lldb/utils/lldb-dotest/lldb-dotest.in @@ -5,14 +5,24 @@ import sys dotest_path = '@LLDB_SOURCE_DIR@/test/API/dotest.py' build_dir = '@LLDB_TEST_BUILD_DIRECTORY@' dotest_args_str = '@LLDB_DOTEST_ARGS@' +arch = '@LLDB_TEST_ARCH@' +executable = '@LLDB_TEST_EXECUTABLE@' +compiler = '@LLDB_TEST_COMPILER@' +dsymutil = '@LLDB_TEST_DSYMUTIL@' +filecheck = '@LLDB_TEST_FILECHECK@' if __name__ == '__main__': wrapper_args = sys.argv[1:] dotest_args = dotest_args_str.split(';') # Build dotest.py command. cmd = [sys.executable, dotest_path] + cmd.extend(['--arch', arch]) cmd.extend(dotest_args) cmd.extend(['--build-dir', build_dir]) + cmd.extend(['--executable', executable]) + cmd.extend(['--compiler', compiler]) + cmd.extend(['--dsymutil', dsymutil]) + cmd.extend(['--filecheck', filecheck]) cmd.extend(wrapper_args) # Invoke dotest.py and return exit code. print(' '.join(cmd)) |