OSDN Git Service

[lit] Run the ShUtil tests as part of the test suite.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 31 Jan 2013 01:23:26 +0000 (01:23 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 31 Jan 2013 01:23:26 +0000 (01:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174018 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/tests/lit.cfg
utils/lit/tests/shell-parsing.py [new file with mode: 0644]

index b32c354..32760ce 100644 (file)
@@ -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 (file)
index 0000000..f644132
--- /dev/null
@@ -0,0 +1,3 @@
+# Just run the ShUtil unit tests.
+#
+# RUN: python -m lit.ShUtil