diff --git a/utils/lit/tests/lit.cfg b/utils/lit/tests/lit.cfg index b32c354fbb4..32760ceb273 100644 --- a/utils/lit/tests/lit.cfg +++ b/utils/lit/tests/lit.cfg @@ -23,6 +23,7 @@ config.test_exec_root = config.test_source_root config.target_triple = None src_root = os.path.join(config.test_source_root, '..') +config.environment['PYTHONPATH'] = src_root config.substitutions.append(('%{src_root}', src_root)) config.substitutions.append(('%{inputs}', os.path.join( src_root, 'tests', 'Inputs'))) diff --git a/utils/lit/tests/shell-parsing.py b/utils/lit/tests/shell-parsing.py new file mode 100644 index 00000000000..f644132f29d --- /dev/null +++ b/utils/lit/tests/shell-parsing.py @@ -0,0 +1,3 @@ +# Just run the ShUtil unit tests. +# +# RUN: python -m lit.ShUtil