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

Aaron Ballman aaron at aaronballman.com
Mon Aug 15 20:57:29 PDT 2011


On Mon, Aug 15, 2011 at 6:26 PM, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
> 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

I still get no luck when I try it.

C:\Users\Aaron Ballman\Desktop\llvm\build>bash
bash-3.1$ exit
exit

C:\Users\Aaron Ballman\Desktop\llvm\build>python ..\llvm\utils\lit\lit.py -sv --
no-progress-bar --param=build_config=Debug --param clang_site=tools\clang\test\l
it.site.cfg ..\llvm\tools\clang\test\Sema\warn-freestanding-complex.c
lit.py: LitConfig.py:99: note: Unable to find 'bash.exe'.
lit.py: lit.cfg:87: fatal: No site specific configuration available!

So I can run bash (it's definitely on my PATH and working), but
LitConfig.py still cannot locate it for some reason.

~Aaron




More information about the cfe-dev mailing list