[cfe-commits] r94082 - /cfe/trunk/utils/OptionalTests/lit.cfg
Daniel Dunbar
daniel at zuster.org
Thu Jan 21 09:09:41 PST 2010
Author: ddunbar
Date: Thu Jan 21 11:09:39 2010
New Revision: 94082
URL: http://llvm.org/viewvc/llvm-project?rev=94082&view=rev
Log:
Tweak OptionalTests paths.
Modified:
cfe/trunk/utils/OptionalTests/lit.cfg
Modified: cfe/trunk/utils/OptionalTests/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/OptionalTests/lit.cfg?rev=94082&r1=94081&r2=94082&view=diff
==============================================================================
--- cfe/trunk/utils/OptionalTests/lit.cfg (original)
+++ cfe/trunk/utils/OptionalTests/lit.cfg Thu Jan 21 11:09:39 2010
@@ -14,4 +14,13 @@
config.suffixes = []
# Reset these from the Clang config.
-config.test_source_root = config.test_exec_root = None
+
+# test_source_root: The root path where tests are located.
+config.test_source_root = os.path.dirname(__file__)
+
+# test_exec_root: The root path where tests should be run.
+clang_obj_root = getattr(config, 'clang_obj_root', None)
+if clang_obj_root is not None:
+ config.test_exec_root = os.path.join(clang_obj_root, 'utils',
+ 'OptionalTests')
+
More information about the cfe-commits
mailing list