forked from OSchip/llvm-project
[lldb/Reproducers] Propagate LLDB_CAPTURE_REPRODUCER to the test suite
This commit is contained in:
parent
dfe9a7943b
commit
acda2bc0ad
|
@ -54,6 +54,11 @@ if config.shared_libs:
|
||||||
lit_config.warning("unable to inject shared library path on '{}'".format(
|
lit_config.warning("unable to inject shared library path on '{}'".format(
|
||||||
platform.system()))
|
platform.system()))
|
||||||
|
|
||||||
|
# Propagate LLDB_CAPTURE_REPRODUCER
|
||||||
|
if 'LLDB_CAPTURE_REPRODUCER' in os.environ:
|
||||||
|
config.environment['LLDB_CAPTURE_REPRODUCER'] = os.environ[
|
||||||
|
'LLDB_CAPTURE_REPRODUCER']
|
||||||
|
|
||||||
# Clean the module caches in the test build directory. This is necessary in an
|
# Clean the module caches in the test build directory. This is necessary in an
|
||||||
# incremental build whenever clang changes underneath, so doing it once per
|
# incremental build whenever clang changes underneath, so doing it once per
|
||||||
# lit.py invocation is close enough.
|
# lit.py invocation is close enough.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
# Enable crash reports for the reproducer tests.
|
# Enable crash reports for the reproducer tests.
|
||||||
del config.environment['LLVM_DISABLE_CRASH_REPORT']
|
if 'LLVM_DISABLE_CRASH_REPORT' in config.environment:
|
||||||
del config.environment['LLDB_CAPTURE_REPRODUCER']
|
del config.environment['LLVM_DISABLE_CRASH_REPORT']
|
||||||
|
|
||||||
|
if 'LLDB_CAPTURE_REPRODUCER' in config.environment:
|
||||||
|
del config.environment['LLDB_CAPTURE_REPRODUCER']
|
||||||
|
|
|
@ -38,6 +38,10 @@ config.test_source_root = os.path.dirname(__file__)
|
||||||
# test_exec_root: The root path where tests should be run.
|
# test_exec_root: The root path where tests should be run.
|
||||||
config.test_exec_root = os.path.join(config.lldb_obj_root, 'test')
|
config.test_exec_root = os.path.join(config.lldb_obj_root, 'test')
|
||||||
|
|
||||||
|
# Propagate LLDB_CAPTURE_REPRODUCER
|
||||||
|
if 'LLDB_CAPTURE_REPRODUCER' in os.environ:
|
||||||
|
config.environment['LLDB_CAPTURE_REPRODUCER'] = os.environ[
|
||||||
|
'LLDB_CAPTURE_REPRODUCER']
|
||||||
|
|
||||||
llvm_config.use_default_substitutions()
|
llvm_config.use_default_substitutions()
|
||||||
toolchain.use_lldb_substitutions(config)
|
toolchain.use_lldb_substitutions(config)
|
||||||
|
|
Loading…
Reference in New Issue