how to run a single test?

Is it possible to run a single clang test? How?

-Dawn

AMDG

dawn@burble.org wrote:

Is it possible to run a single clang test? How?
  
You can pass the file name to lit.py

In Christ,
Steven Watanabe

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

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 :slight_smile:
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 :slight_smile:

-Dawn

Sure, feel free to fix it, just commit to clang/www and the webpage autoupdates.

-Chris

Done :slight_smile: rev 112972.

-Dawn

So, that's how that works. I was wondering if it would be possible to easily update the C++0x status chart. I'm guessing that's the approved method?