[llvm-dev] LLVM-LIT config documentation?

serge guelton via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 15 02:08:53 PST 2016


On Fri, Jan 15, 2016 at 11:03:07AM +0100, Roel Jordans via llvm-dev wrote:
> 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 = ""
> ---------------------------------------------------------------

You can have a look to the lit config we setup for our llvm dev tutorial last year:

    https://github.com/quarkslab/llvm-dev-meeting-tutorial-2015/blob/master/Tests/lit.cfg.in

It's slightly more complicated than the one above, but there's a decent
ratio of comments in it too ;-)


More information about the llvm-dev mailing list