summaryrefslogtreecommitdiff
path: root/utils/lit/tests
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-01-31 01:23:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-01-31 01:23:26 +0000
commitc9fd0a57f7ab21e8d48474f862faf896cd196941 (patch)
tree6798ed36125309f8bc249f806be6521d37b916e4 /utils/lit/tests
parent84d3c61c0394b6663cbbe5683b489dc9d698e63f (diff)
downloadllvm-c9fd0a57f7ab21e8d48474f862faf896cd196941.tar.gz
llvm-c9fd0a57f7ab21e8d48474f862faf896cd196941.tar.bz2
llvm-c9fd0a57f7ab21e8d48474f862faf896cd196941.tar.xz
[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
Diffstat (limited to 'utils/lit/tests')
-rw-r--r--utils/lit/tests/lit.cfg1
-rw-r--r--utils/lit/tests/shell-parsing.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/utils/lit/tests/lit.cfg b/utils/lit/tests/lit.cfg
index b32c354fbb..32760ceb27 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 0000000000..f644132f29
--- /dev/null
+++ b/utils/lit/tests/shell-parsing.py
@@ -0,0 +1,3 @@
+# Just run the ShUtil unit tests.
+#
+# RUN: python -m lit.ShUtil