"No such file or directory" is probably looking for a non-existent CTEST_COVERAGE_COMMAND.<div><br></div><div>Try setting CTEST_COVERAGE_COMMAND to "/usr/bin/gcov" in your new style script instead of putting a COVERAGE_COMMAND entry in the initial cache. With the new style script, ctest does not rely on entries in the CMakeCache.txt file.<br>
<br></div><div>I am using new style scripts with Bullseye on Windows (although not nightly) and when I set CTEST_COVERAGE_COMMAND, my new style scripts work ok...</div><div><br></div><div><br><div class="gmail_quote">On Mon, Dec 22, 2008 at 10:47 AM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="Wj3C7c">On Mon, Dec 22, 2008 at 4:44 PM, Mathieu Malaterre<br>
<<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>> wrote:<br>
> On Mon, Dec 22, 2008 at 4:36 PM, Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>> wrote:<br>
>> Mathieu Malaterre wrote:<br>
>>><br>
>>> On Mon, Dec 22, 2008 at 4:17 PM, Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> Blezek, Daniel J. wrote:<br>
>>>>><br>
>>>>> Hi,<br>
>>>>><br>
>>>>> We're ramping up our testing using CDash, CTest, and CMake. I started<br>
>>>>> a<br>
>>>>> coverage build but get no coverage information. I'm not sure how to<br>
>>>>> debug<br>
>>>>> ctest as it doesn't produce coverage information properly. Long post,<br>
>>>>> sorry.<br>
>>><br>
>>> Dan,<br>
>>><br>
>>> I am also experiencing the same issue here (gdcm dashboard). What I<br>
>>> found out is simply doing:<br>
>>><br>
>>> cat dashboard.sh<br>
>>> ...<br>
>>> ctest -S main_dashboard_with_coverage.cmake<br>
>>> # extra steps to submit coverage properly (almost):<br>
>>> cd $HOME/Dashboards/MyTests/gdcm-2-0-nightly-cov<br>
>>> make NightlyCoverage && make NightlySubmit<br>
>>> ...<br>
>>><br>
>>> not nice, but at least give the results I was looking for<br>
>>> (coverage). Until someone with lots of free time, figure out the real<br>
>>> issue, I'll continue this way.<br>
>>><br>
>><br>
>> CMake, and several other projects at Kitware are submitting coverage just<br>
>> fine.... Exactly what is in the main_dashboard_with_coverage.cmake that<br>
>> does not work???<br>
>><br>
><br>
> Here you go.<br>
> <a href="http://www.cdash.org/CDash/viewNotes.php?buildid=235370" target="_blank">http://www.cdash.org/CDash/viewNotes.php?buildid=235370</a><br>
><br>
> I do not remember all the details, but I *think* gcov was complaining<br>
> about some files not being found. While the second time I would be<br>
> running make *Coverage, it would work.<br>
<br>
</div></div>I forgot I was redirecting the output of the ctest script to a file.<br>
Here is the part that looks suspicious (from yesterday dashboard).<br>
<br>
Run dashboard with model Nightly<br>
Source directory: /home/mmalaterre/Dashboards/MyTests/gdcm-2-0<br>
Build directory: /home/mmalaterre/Dashboards/MyTests/gdcm-2-0-nightly-cov<br>
Reading ctest configuration file:<br>
/home/mmalaterre/Dashboards/MyTests/gdcm-2-0/CTestConfig.cmake<br>
Site: zorglub<br>
Build name: GDCM2-0-Linux-gcc43-Coverage-SVN<br>
Determine Nightly Start Time<br>
Specified time: 21:00:00 EDT<br>
Use Nightly tag: 20081222-0100<br>
Updating the repository<br>
First perform the initial checkout: /usr/bin/svn co<br>
<a href="https://gdcm.svn.sourceforge.net/svnroot/gdcm/branches/gdcm-2-0gdcm-2-0" target="_blank">https://gdcm.svn.sourceforge.net/svnroot/gdcm/branches/gdcm-2-0<br>
gdcm-2-0</a><br>
Perform checkout in directory: /home/mmalaterre/Dashboards/MyTests<br>
Updating the repository: /home/mmalaterre/Dashboards/MyTests/gdcm-2-0<br>
Use SVN repository type<br>
Determine Nightly Start Time<br>
Specified time: 21:00:00 EDT<br>
Old revision of repository is: 4949<br>
Current revision of repository is: 4941<br>
Gathering version information (each . represents one updated file):<br>
Project is up-to-date<br>
Configure project<br>
Each . represents 1024 bytes of output<br>
.... Size of output: 3K<br>
Build project<br>
Each symbol represents 1024 bytes of output.<br>
'!' represents an error and '*' a warning.<br>
.................................................. Size: 50K<br>
.. Size of output: 51K<br>
0 Compiler errors<br>
0 Compiler warnings<br>
Test project /home/mmalaterre/Dashboards/MyTests/gdcm-2-0-nightly-cov<br>
1/138 Testing TestVersion Passed<br>
2/138 Testing TestTesting Passed<br>
3/138 Testing TestSwapper Passed<br>
4/138 Testing TestByteSwap Passed<br>
5/138 Testing TestString Passed<br>
6/138 Testing TestString2 Passed<br>
7/138 Testing TestTerminal Passed<br>
8/138 Testing TestFilenameGenerator Passed<br>
9/138 Testing TestObject Passed<br>
10/138 Testing TestSmartPointer Passed<br>
11/138 Testing TestSwapCode Passed<br>
12/138 Testing TestSystem Passed<br>
13/138 Testing TestTrace Passed<br>
14/138 Testing TestUnpacker12Bits Passed<br>
15/138 Testing TestDirectory Passed<br>
16/138 Testing TestFilename Passed<br>
17/138 Testing TestDictEntry Passed<br>
18/138 Testing TestDict Passed<br>
19/138 Testing TestGlobal Passed<br>
20/138 Testing TestUIDs Passed<br>
21/138 Testing TestDicts Passed<br>
22/138 Testing TestGroupDict Passed<br>
23/138 Testing TestTagToType Passed<br>
24/138 Testing TestSOPClassUIDToIOD Passed<br>
25/138 Testing TestAttribute Passed<br>
26/138 Testing TestAttribute7 Passed<br>
27/138 Testing TestLO Passed<br>
28/138 Testing TestCSAElement Passed<br>
29/138 Testing TestPreamble Passed<br>
30/138 Testing TestLCNumeric Passed<br>
31/138 Testing TestReader Passed<br>
32/138 Testing TestWriter Passed<br>
33/138 Testing TestWriter2 ***Exception: Other<br>
34/138 Testing TestCSAHeader Passed<br>
35/138 Testing TestByteSwapFilter Passed<br>
36/138 Testing TestBasicOffsetTable Passed<br>
37/138 Testing TestComposite Passed<br>
38/138 Testing TestDataSet Passed<br>
39/138 Testing TestVRDS Passed<br>
40/138 Testing TestElement Passed<br>
41/138 Testing TestFileMetaInformation Passed<br>
42/138 Testing TestFile Passed<br>
43/138 Testing TestFileSet Passed<br>
44/138 Testing TestFragment Passed<br>
45/138 Testing TestSequenceOfFragments Passed<br>
46/138 Testing TestSequenceOfItems Passed<br>
47/138 Testing TestTag Passed<br>
48/138 Testing TestPrivateTag Passed<br>
49/138 Testing TestTransferSyntax Passed<br>
50/138 Testing TestMediaStorage Passed<br>
51/138 Testing TestVL Passed<br>
52/138 Testing TestVM Passed<br>
53/138 Testing TestVR Passed<br>
54/138 Testing TestElement2 Passed<br>
55/138 Testing TestElement4 Passed<br>
56/138 Testing TestElement5 Passed<br>
57/138 Testing TestReader2 Passed<br>
58/138 Testing TestReader3 Passed<br>
59/138 Testing TestTableReader Passed<br>
60/138 Testing TestTable Passed<br>
61/138 Testing TestTableEntry Passed<br>
62/138 Testing TestType Passed<br>
63/138 Testing TestModule Passed<br>
64/138 Testing TestModules Passed<br>
65/138 Testing TestModuleEntry Passed<br>
66/138 Testing TestNestedModuleEntries Passed<br>
67/138 Testing TestIODEntry Passed<br>
68/138 Testing TestIOD Passed<br>
69/138 Testing TestIODs Passed<br>
70/138 Testing TestDefs Passed<br>
71/138 Testing TestPatient Passed<br>
72/138 Testing TestSeries Passed<br>
73/138 Testing TestStudy Passed<br>
74/138 Testing TestDefinedTerms Passed<br>
75/138 Testing TestEnumeratedValues Passed<br>
76/138 Testing TestAnonymizer Passed<br>
77/138 Testing TestFileExplicitFilter Passed<br>
78/138 Testing TestImageFragmentSplitter Passed<br>
79/138 Testing TestTagPath Passed<br>
80/138 Testing TestOrientation Passed<br>
81/138 Testing TestIconImage Passed<br>
82/138 Testing TestImageHelper Passed<br>
83/138 Testing TestImageToImageFilter Passed<br>
84/138 Testing TestImageChangeTransferSyntax ***Exception: Other<br>
85/138 Testing TestImageChangePhotometricInte Passed<br>
86/138 Testing TestImageChangePhotometricInte***Failed<br>
87/138 Testing TestImageChangeTransferSyntax2***Exception: Other<br>
88/138 Testing TestImageChangeTransferSyntax3***Exception: Other<br>
89/138 Testing TestImageChangeTransferSyntax4***Exception: Other<br>
90/138 Testing TestImageChangeTransferSyntax6***Exception: Other<br>
91/138 Testing TestImageChangeTransferSyntax7***Exception: Other<br>
92/138 Testing TestImageApplyLookupTable Passed<br>
93/138 Testing TestImageChangePlanarConfigura Passed<br>
94/138 Testing TestCoder Passed<br>
95/138 Testing TestDecoder Passed<br>
96/138 Testing TestRescaler Passed<br>
97/138 Testing TestDumper Passed<br>
98/138 Testing TestDictPrinter Passed<br>
99/138 Testing TestApplicationEntity Passed<br>
100/138 Testing TestStringFilter Passed<br>
101/138 Testing TestUIDGenerator Passed<br>
102/138 Testing TestPrinter ***Exception: Other<br>
103/138 Testing TestPrint Passed<br>
104/138 Testing TestSorter Passed<br>
105/138 Testing TestImageReader ***Failed<br>
106/138 Testing TestDirectionCosines Passed<br>
107/138 Testing TestImageWriter ***Failed<br>
108/138 Testing TestCodec Passed<br>
109/138 Testing TestPDFCodec Passed<br>
110/138 Testing TestRLECodec Passed<br>
111/138 Testing TestAudioCodec Passed<br>
112/138 Testing TestImage Passed<br>
113/138 Testing TestPhotometricInterpretation Passed<br>
114/138 Testing TestLookupTable Passed<br>
115/138 Testing TestOverlay Passed<br>
116/138 Testing TestCurve Passed<br>
117/138 Testing TestPixelFormat Passed<br>
118/138 Testing TestPersonName Passed<br>
119/138 Testing TestImageCodec Passed<br>
120/138 Testing TestImageConverter Passed<br>
121/138 Testing TestJPEGCodec Passed<br>
122/138 Testing TestRAWCodec Passed<br>
123/138 Testing TestDICOMDIR Passed<br>
124/138 Testing TestWaveform Passed<br>
125/138 Testing TestFiducials Passed<br>
126/138 Testing TestEncapsulatedDocument Passed<br>
127/138 Testing TestSpectroscopy Passed<br>
128/138 Testing TestScanner Passed<br>
129/138 Testing TestIPPSorter Passed<br>
130/138 Testing TestCopyDataSet Passed<br>
131/138 Testing TestUIDGenerator2 Passed<br>
132/138 Testing TestvtkGDCMImageReader Passed<br>
133/138 Testing TestvtkGDCMImageReader2 Passed<br>
134/138 Testing TestvtkGDCMImageReader4 ***Exception: Other<br>
135/138 Testing TestvtkGDCMImageWriter ***Exception: Other<br>
136/138 Testing TestvtkGDCMImageWriter2 ***Exception: Other<br>
137/138 Testing TestvtkGDCMThreadedImageReader Passed<br>
138/138 Testing TestvtkGDCMThreadedImageReader Passed<br>
<br>
90% tests passed, 14 tests failed out of 138<br>
<br>
The following tests FAILED:<br>
33 - TestWriter2 (OTHER_FAULT)<br>
84 - TestImageChangeTransferSyntax (OTHER_FAULT)<br>
86 - TestImageChangePhotometricInterpretation2 (Failed)<br>
87 - TestImageChangeTransferSyntax2 (OTHER_FAULT)<br>
88 - TestImageChangeTransferSyntax3 (OTHER_FAULT)<br>
89 - TestImageChangeTransferSyntax4 (OTHER_FAULT)<br>
90 - TestImageChangeTransferSyntax6 (OTHER_FAULT)<br>
91 - TestImageChangeTransferSyntax7 (OTHER_FAULT)<br>
102 - TestPrinter (OTHER_FAULT)<br>
105 - TestImageReader (Failed)<br>
107 - TestImageWriter (Failed)<br>
134 - TestvtkGDCMImageReader4 (OTHER_FAULT)<br>
135 - TestvtkGDCMImageWriter (OTHER_FAULT)<br>
136 - TestvtkGDCMImageWriter2 (OTHER_FAULT)<br>
Performing coverage<br>
Processing coverage (each . represents one file):<br>
.No such file or directory<br>
Problem running coverage on file:<br>
/home/mmalaterre/Dashboards/MyTests/gdcm-2-0-nightly-cov/Utilities/gdcmuuid/CMakeFiles/gdcmuuid.dir/uuid_time.gcda<br>
Command produced error: No such file or directory<br>
.No such file or directory<br>
Problem running coverage on file:<br>
/home/mmalaterre/Dashboards/MyTests/gdcm-2-0-nightly-cov/Utilities/gdcmuuid/CMakeFiles/gdcmuuid.dir/pack.gcda<br>
Command produced error: No such file or directory<br>
.No such file or directory<br>
Problem running coverage on file:<br>
/home/mmalaterre/Dashboards/MyTests/gdcm-2-0-nightly-cov/Utilities/gdcmuuid/CMakeFiles/gdcmuuid.dir/unparse.gcda<br>
Command produced error: No such file or directory<br>
.No such file or directory<br>
...<br>
<br>
Let me know if you want the complete file.<br>
<font color="#888888"><br>
-M<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>