<div dir="ltr">Hi Folks, <div><br></div><div>VTK coverage is setup on two dashboard:</div><div> 1) MacLion-Clang-3.0-debug: <a href="http://open.cdash.org/viewCoverage.php?buildid=2920701">http://open.cdash.org/viewCoverage.php?buildid=2920701</a><br>
<div> 2) Ubuntu-Coverage: <a href="http://open.cdash.org/viewCoverage.php?buildid=2921192&status=3">http://open.cdash.org/viewCoverage.php?buildid=2921192&status=3</a></div><div><br></div><div style>Now, if we look at the coverage of the file "vtkRenderingCoreModule.h", we can see that:</div>
<div><br></div><div> - On a Ubuntu dashboard, the file is covered without any issue. See [1]</div><div><br></div><div style> - On a MacOSX dashboard, despite all tests have been executed, the file is not covered at all. Checking the dashboard logs, we can read the following error:</div>
<div style><br></div><div style>// ----------</div><div style>[...]</div><div style><div> Something went wrong</div><div> Cannot find file: [/Volumes/BIGMAC1/Dashboards/MyTests/VTK_BLD_Coverage/Rendering/Core/vtkRenderingCoreModule.h]</div>
<div> in source dir: [/Users/kitware/Dashboards/MyTests/VTK_SRC_Coverage]</div><div> or binary dir: [50]</div><div>[...]</div><div>// ----------<br></div></div><div style><br></div><div style>Seems the binary directory is incorrect. The value "50" is reported. Looking at the source code of CMake, this should corresponds to the BuildDirectory Ctest configuration. [2]</div>
<div style><br></div><div style>I am also wondering if this could justify the low coverage reported by the dashboard despite of the fact all tests have been executed.<br></div><div style><br></div><div style>Before investigating further, does somebody faced a similar issue in the past ? </div>
<div style> Did I miss something in the dashboard script configuration [3] ? </div><div style> Or something wrong in vtk_common.cmake ?</div><div style> Or is there something wrong with CMake ? </div><div style><br></div>
<div style>Thanks,</div><div style>Jc</div><div><br></div><div>[1] <a href="http://open.cdash.org/viewCoverageFile.php?buildid=2921192&fileid=11204252">http://open.cdash.org/viewCoverageFile.php?buildid=2921192&fileid=11204252</a></div>
<div>[2] <a href="https://github.com/Kitware/CMake/blob/61ace1df2616e472d056b302e4269cbf112fb020/Source/CTest/cmCTestCoverageHandler.cxx#L334-335">https://github.com/Kitware/CMake/blob/61ace1df2616e472d056b302e4269cbf112fb020/Source/CTest/cmCTestCoverageHandler.cxx#L334-335</a></div>
<div>[3] <a href="https://gist.github.com/jcfr/5674731">https://gist.github.com/jcfr/5674731</a><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br>
</div></div></div>