[cfe-dev] how to run a single test?

dawn at burble.org dawn at burble.org
Thu Sep 2 17:29:52 PDT 2010


Thanks for all the tips.  Now I see this *is* documented here
http://clang.llvm.org/hacking.html but only under the Windows Visual
Studio section!  I test on Linux so I wasn't looking there :-)
How about just putting the bits starting with "To run all the tests from
the command line" into a common section titled "Running the tests from
the command line"?  Docs are much more useful when you can find the
info in them :-)

-Dawn

On Wed, Sep 01, 2010 at 09:16:31PM -0700, Chris Lattner wrote:
> 
> On Sep 1, 2010, at 8:30 PM, Francois Pichet wrote:
> 
> > For example to test ../Sema/init.c on Windows I use:
> > 
> > python D:/Dev/llvm/llvm_trunk/utils/lit/lit.py -sv --no-progress-bar
> > D:/Dev/llvm/llvm_trunk/tools/clang/test/Sema/init.c
> > --param=build_config=Release
> 
> I have "lit" aliased to "~/llvm/utils/lit/lit.py -v" which allows me to just type "lit test/Sema/init.c".
> 
> -Chris



More information about the cfe-dev mailing list