[llvm] r205262 - lit: Set a base directory for compiler-rt tests
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Mar 31 16:14:11 PDT 2014
Author: dexonsmith
Date: Mon Mar 31 18:14:10 2014
New Revision: 205262
URL: http://llvm.org/viewvc/llvm-project?rev=205262&view=rev
Log:
lit: Set a base directory for compiler-rt tests
Setting this parameter enables llvm-lit to run on source directories for
compiler-rt test suites that implement magic in their lit.cfg.
<rdar://problem/16458307>
Modified:
llvm/trunk/utils/llvm-lit/llvm-lit.in
Modified: llvm/trunk/utils/llvm-lit/llvm-lit.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-lit/llvm-lit.in?rev=205262&r1=205261&r2=205262&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-lit/llvm-lit.in (original)
+++ llvm/trunk/utils/llvm-lit/llvm-lit.in Mon Mar 31 18:14:10 2014
@@ -34,6 +34,11 @@ if os.path.exists(lld_obj_root):
builtin_parameters['lld_site_config'] = \
os.path.join(lld_obj_root, 'test', 'lit.site.cfg')
+compilerrt_obj_root = os.path.join(llvm_obj_root, 'projects', 'compiler-rt')
+if os.path.exists(compilerrt_obj_root):
+ builtin_parameters['compilerrt_site_basedir'] = \
+ os.path.join(compilerrt_obj_root, 'test')
+
if __name__=='__main__':
import lit
lit.main(builtin_parameters)
More information about the llvm-commits
mailing list