[cfe-dev] Running regression tests from Windows command line

Alistair Low alistair at codeplay.com
Thu Oct 21 12:10:38 PDT 2010


Thanks, that works now. I don't think I had Python in the path the last 
time I ran CMake. I get Access Denied errors now when lit tries to run a 
test but I'm sure that's a Windows problem that I can solve easily.

Thanks for all the help,
Alistair

On 21/10/2010 19:41, Francois Pichet wrote:
> Hi,
>
> On Windows, the easiest way to generate the "lit.site.cfg" file is to use CMake.
>
> Go to your llvm root directory and type this:
> CMake -G "Visual Studio 9 2008"
>
> Or if you prefer using VS 2010:
> CMake -G "Visual Studio 10"
>
> This should generate the lit.site.cfg in clang/test. Make sure python
> is in your path. (I am using Python 2.7 if that matters)
> Then you compile the llvm.sln solution and after you should be able to
> run the lit test from the command line.
>
>
> On Thu, Oct 21, 2010 at 2:13 PM, Alistair Low<alistair at codeplay.com>  wrote:
>> Thanks for your answer - I have gnuwin32 installed so that's ok. However,
>> when I run the command below I get the following output:
>>
>> lit.py: lit.cfg:74: fatal: No site specific configuration available!
>>
>> I can see that there is a file named lit.site.cfg.in in
>> llvm/tools/clang/test, so I assume that something should configure that to
>> produce the lit.site.cfg. Am I supposed to run something to do that for me,
>> or do I need to configure it manually?
>>
>> Thanks for your help,
>> Alistair
>>
>> On 21/10/2010 18:32, Francois Pichet wrote:
>>>
>>> To run the clang test regression I installed this:
>>> http://getgnuwin32.sourceforge.net/
>>> It is needed for the grep utility I believe.
>>> You don't need cygwin, you don't need to do "configure" or "make test"
>>> on Windows.
>>>
>>> Just use this command:
>>> python lit.py -sv  D:/Dev/llvm/llvm_trunk/tools/clang/test/
>>> --param=build_config=Release
>>>
>>>
>>> On Thu, Oct 21, 2010 at 8:56 AM, Alistair Low<alistair at codeplay.com>
>>>   wrote:
>>>>
>>>> Hi,
>>>>
>>>> I'm now trying to run the clang regression tests from the command line
>>>> using lit.py under Windows. However, I need to run 'make test' to
>>>> generate the site-specific configuration file, and I need to run
>>>> 'configure' to do that. How are people doing that under Windows? Do I
>>>> need to install Cygwin just for this one command?
>>>>
>>>> Best regards,
>>>> Alistair Low
>>>> _______________________________________________
>>>> cfe-dev mailing list
>>>> cfe-dev at cs.uiuc.edu
>>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>>>
>>



More information about the cfe-dev mailing list