From c9fd0a57f7ab21e8d48474f862faf896cd196941 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 31 Jan 2013 01:23:26 +0000 Subject: [PATCH] [lit] Run the ShUtil tests as part of the test suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174018 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/lit/tests/lit.cfg | 1 + utils/lit/tests/shell-parsing.py | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 utils/lit/tests/shell-parsing.py 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