[cfe-dev] How to run test on Windows?

NAKAMURA Takumi geek4civic at gmail.com
Mon Aug 15 16:26:52 PDT 2011


2011/8/16 Nikola Smiljanic <popizdeh at gmail.com>:
> I'm having some trouble with this. The documentation says: The cmake build
> tool is set up to create Visual Studio project files for running the tests,
> "clang-test" being the root. Therefore, to run the test from Visual Studio,
> right-click the clang-test project and select "Build".
> I don't see this project anywhere? There is a filter called Clang tests with
> 4 projects (ASTTests, BasicTests, ClangUnitTests, FrontendTests).
> ClangUnitTests can't be run, and other 3 projects run 9 tests in total.

I guess your cmake does not find python. Try to set PYTHON_EXECUTABLE
explicitly on cmake.
(Do you use cmake-gui.exe?)

> Trying to run from command line:
> python D:\Projects\llvm\utils\lit\lit.py -sv --no-progress-bar
> --param=build_config=Debug
> D:\Projects\llvm\tools\clang\test\Sema\warn-freestanding-complex.c
> gives:
> lit.py: LitConfig.py:99: note: Unable to find 'bash.exe'.
> lit.py: lit.cfg:87: fatal: No site specific configuration available!
> What am I doing wrong?

You would also need --param clang_site_config=\path\to\lit.site.cfg

...Takumi




More information about the cfe-dev mailing list