X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flit.cfg;h=2383d8fe7980b202ddf68a5d865a919bc3c543f7;hb=7787800481ad854eed5d976778dd493eb49bfaf9;hp=6bc170cdf944afd7cff1dc49e7989a2f18eabdca;hpb=f86186ee244f3c938d04e0fccfa702410698c47b;p=oota-llvm.git diff --git a/test/lit.cfg b/test/lit.cfg index 6bc170cdf94..2383d8fe798 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -141,6 +141,29 @@ for line in open(os.path.join(config.llvm_obj_root, 'test', 'site.exp')): if m: site_exp[m.group(1)] = m.group(2) +# Provide target_triple for use in XFAIL and XTARGET. +config.target_triple = site_exp['target_triplet'] + +# When running under valgrind, we mangle '-vg' or '-vg_leak' onto the end of the +# triple so we can check it with XFAIL and XTARGET. +config.target_triple += lit.valgrindTriple + +# Process jit implementation option +jit_impl_cfg = lit.params.get('jit_impl', None) +if jit_impl_cfg == 'mcjit': + # When running with mcjit, mangle -mcjit into target triple + # and add -use-mcjit flag to lli invocation + if 'i686' in config.target_triple: + config.target_triple += jit_impl_cfg + '-ia32' + elif 'x86_64' in config.target_triple: + config.target_triple += jit_impl_cfg + '-ia64' + else: + config.target_triple += jit_impl_cfg + + config.substitutions.append( ('%lli', 'lli -use-mcjit') ) +else: + config.substitutions.append( ('%lli', 'lli') ) + # Add substitutions. for sub in ['link', 'shlibext', 'ocamlopt', 'llvmshlibdir']: config.substitutions.append(('%' + sub, site_exp[sub])) @@ -164,12 +187,12 @@ for pattern in [r"\bbugpoint\b(?!-)", r"(?