llvm-project/llvm/test/FileCheck/lit.local.cfg

19 lines
533 B
INI

import lit
# Use lit's internal shell to help guarantee test portability.
config.test_format = lit.formats.ShTest(execute_external=False)
# Unset environment variables that the FileCheck tests
# expect not to be set.
file_check_expected_unset_vars = [
'FILECHECK_DUMP_INPUT_ON_FAILURE',
'FILECHECK_OPTS',
]
for env_var in file_check_expected_unset_vars:
if env_var in config.environment:
lit_config.note('Removing {} from environment for FileCheck tests'.format(
env_var)
)
config.environment.pop(env_var)