[cfe-dev] Running the Clang tests on windows

John Thompson john.thompson.jtsoftware at gmail.com
Thu Jul 23 16:54:34 PDT 2009


There are problems running the tests on Windows.  Even though the are cmake
files in place to generate project files for them, there are some
Windows-specific problems in this and the underlying Python files.  I did a
little digging into it, and there are some problems with encountered "C:",
and perhaps '/'s ending up in the output script files.  (I hacked the
.vcproj files directly to get rid of the "C:"'s, but then still had other
errors, listed in the enclosed file.)

It's pretty clear being able to run the tests is important for Windows-based
clang developer wannabees like me, so I'd like to get this working.  I'm
prepared to try to do this, but I thought I'd better ping everyone to see if
someone isn't already working on this.  I don't know either Python or cmake,
so if someone better prepared is willing to have a whack at it instead, let
me know soon.
 -John

-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090723/dc615327/attachment.html>
-------------- next part --------------
1>Running Clang regression tests
1>-- Testing: 1366 tests, 2 threads --
1>Testing Time: 0.11s
1>Exception in thread Thread-1:
1>Traceback (most recent call last):
1>  File "C:\Python26\lib\threading.py", line 522, in __bootstrap_inner
1>    self.run()
1>  File "/Tools/llvm/tools/clang/utils/test/MultiTestRunner.py", line 154, in run
1>    self.runTest(item)
1>  File "/Tools/llvm/tools/clang/utils/test/MultiTestRunner.py", line 179, in runTest
1>    output=open(testresults,'w'))
1>  File "C:\Tools\llvm\tools\clang\utils\test\TestRunner.py", line 156, in runOneTest
1>    stderr=subprocess.PIPE)
1>  File "C:\Python26\lib\subprocess.py", line 595, in __init__
1>    errread, errwrite)
1>  File "C:\Python26\lib\subprocess.py", line 821, in _execute_child
1>    startupinfo)
1>WindowsError: [Error 3] The system cannot find the path specified
1>Exception in thread Thread-2:
1>Traceback (most recent call last):
1>  File "C:\Python26\lib\threading.py", line 522, in __bootstrap_inner
1>    self.run()
1>  File "/Tools/llvm/tools/clang/utils/test/MultiTestRunner.py", line 154, in run
1>    self.runTest(item)
1>  File "/Tools/llvm/tools/clang/utils/test/MultiTestRunner.py", line 179, in runTest
1>    output=open(testresults,'w'))
1>  File "C:\Tools\llvm\tools\clang\utils\test\TestRunner.py", line 156, in runOneTest
1>    stderr=subprocess.PIPE)
1>  File "C:\Python26\lib\subprocess.py", line 595, in __init__
1>    errread, errwrite)
1>  File "C:\Python26\lib\subprocess.py", line 821, in _execute_child
1>    startupinfo)
1>WindowsError: [Error 3] The system cannot find the path specified
1>Build log was saved at "file://c:\Tools\llvm\tools\clang\test\clang-test.dir\Debug\BuildLog.htm"
1>clang-test - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 56 up-to-date, 0 skipped ==========
    Total Build Time 0:12


More information about the cfe-dev mailing list