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

Nikola Smiljanic popizdeh at gmail.com
Mon Aug 15 23:52:19 PDT 2011


Made some progress. lit.site.cfg is generated by cmake and is located inside
build\test.

Python in my path
LLVM_LIT_TOOLS_DIR set to C:\GnuWin32\bin
LIT_TOOLS_ARGS set to -sv --no-progress-bar --param=build_config=Debug
--param=clang_site_config=D:\Projects\build\test\lit.site.cfg

Visual Studio project clang-test is present and runs the tests.

Testing on the command line is still giving me some trouble. It seems to be
working except that it can't find any tests (also tried
format-strings-fixit.c and warn-unused-parameters.c)?
python llvm\utils\lit\lit.py -sv --no-progress-bar
--param=build_config=Debug --param=clang_site_config=build\test\lit.site.cfg
llvm\tools\clang\test\Sema\wchar.c

gives:
lit.py: LitConfig.py:99: note: Unable to find 'bash.exe'.
lit.py: LitConfig.py:99: note: Unable to find 'bash.exe'.
lit.py: main.py:517: warning: input
'llvm\\tools\\clang\\test\\Sema\\wchar.c' contained no tests
-- Testing: 0 tests, 2 threads --

Testing Time: 0.00s

1 warning(s) in tests.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110816/b697157c/attachment.html>


More information about the cfe-dev mailing list