[llvm-dev] LLVM-LIT config documentation?

Roel Jordans via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 15 02:03:07 PST 2016


Hi Kevin,

I ran into a similar problem a while ago and fixed it mostly by taking 
bits from the existing lit.cfg and some info from the LIT command guide [1].

 From this I found that this is a somewhat minimal lit.cfg could look like:
---------------------------------------------------------------
import lit.formats

# Lit configuration
config.name = "FOO"
config.test_format = lit.formats.ShTest("0")
config.suffixes = {".c"}
config.target_triple = ""
---------------------------------------------------------------

I hope this will get you going.

Cheers,
  Roel

[1] http://llvm.org/docs/CommandGuide/lit.html#test-suites

On 14/01/16 23:57, Kevin Hu via llvm-dev wrote:
> Dear all,
>
> Recently I've considering using LIT for my benchmark testing framework,
> and the only reference for LLVM-LIT is the man page and some READMEs. I
> don't find any documentations on config, which seems to be quite
> important to the tool. If I use lit outside LLVM source tree and use on
> my own test files, LIT marks them as 'unresolved'.
>
> So are there any documentations I can find about using LIT for my own
> benchmarks? Thanks in advance.
>
> Regards,
> Kevin
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>


More information about the llvm-dev mailing list