The submission looks fine, and I do get Coverage.xml and
CoverageLog-0.xml.  Everything shows up on CDash except the annotated
source code.

  Here's a small sample that doesn't work for me.  It's entirely
possible we don't have CDash configured correctly, I didn't set it up so
I don't know the details.

-dan

 

-----Original Message-----
From: Bill Hoffman [mailto:bill.hoff...@kitware.com] 
Sent: Monday, December 22, 2008 11:39 AM
To: Blezek, Daniel J.
Cc: cmake@cmake.org
Subject: Re: [CMake] Coverage Woes

Blezek, Daniel J. wrote:
> Hi Bill,
> 
> 1) I can't remember why we used that particular cmake.  trying with 
> the latest CVS...
> 
> Ah, this seems to have fixed it.  Now I have a CDash problem that the 
> files are not showing up, even though the ctest-produced XML code 
> looks fine.  The coverage information is good, but no file is being 
> shown when I click on the link.
>  
> 2) ctest -D Experimental -T Coverage -VV
> 

What output do you see about the submission process in the -VV output of

ctest?   Does it create a coverage.xml file?  Does it send it to CDash?

-Bill
<?xml version="1.0" encoding="UTF-8"?>
<Site BuildName="Linux86-coverage-gcc"
	BuildStamp="20081222-1600-Experimental"
	Name="mi3bld04-Foo"
	Generator="ctest2.7-20081222"	OSName="Linux"
	Hostname="mi3bld04.mayo.edu"
	OSRelease="2.6.18-92.1.10.el5"
	OSVersion="#1 SMP Tue Aug 5 07:42:41 EDT 2008"
	OSPlatform="x86_64"
	Is64Bits="1"
	VendorString="GenuineIntel"
	VendorID="Intel Corporation"
	FamilyID="6"
	ModelID="15"
	ProcessorCacheSize="4096"
	NumberOfLogicalCPU="8"
	NumberOfPhysicalCPU="8"
	TotalVirtualMemory="1983"
	TotalPhysicalMemory="7983"
	LogicalProcessorsPerPhysical="1"
	ProcessorClockFrequency="2666.79"
>
<Coverage>
	<StartDateTime>Dec 22 09:44 CST</StartDateTime>
	<StartTime>1229960656</StartTime>
	<File Name="NoOp.cxx" FullPath="./Testing/Source/NoOp.cxx" Covered="true">
		<LOCTested>5</LOCTested>
		<LOCUnTested>0</LOCUnTested>
		<PercentCoverage>100.00</PercentCoverage>
		<CoverageMetric>1.00</CoverageMetric>
	</File>
	<LOCTested>8568</LOCTested>
	<LOCUntested>26476</LOCUntested>
	<LOC>35044</LOC>
	<PercentCoverage>24.45</PercentCoverage>
	<EndDateTime>Dec 22 09:46 CST</EndDateTime>
	<EndTime>1229960784</EndTime>
<ElapsedMinutes>2.10</ElapsedMinutes></Coverage>
</Site>
<CoverageLog>
	<StartDateTime>Dec 22 09:46 CST</StartDateTime>	<StartTime>1229960784</StartTime>
	<File Name="NoOp.cxx" FullPath="./Testing/Source/NoOp.cxx">
		<Report>
		<Line Number="0" Count="-1">#include &lt;iostream&gt;</Line>
		<Line Number="1" Count="-1"></Line>
		<Line Number="2" Count="-1">#include &lt;gtest/gtest.h&gt;</Line>
		<Line Number="3" Count="-1"></Line>
		<Line Number="4" Count="30">int main(int argc, char* argv[])</Line>
		<Line Number="5" Count="-1">{</Line>
		<Line Number="6" Count="30">  testing::InitGoogleTest ( &amp;argc, argv );</Line>
		<Line Number="7" Count="30">  return RUN_ALL_TESTS();</Line>
		<Line Number="8" Count="60">}</Line>
		<Line Number="9" Count="30"></Line>
		<Line Number="10" Count="-1"></Line>
		</Report>
	</File>

	<EndDateTime>Dec 22 09:46 CST</EndDateTime>
	<EndTime>1229960784</EndTime>
</CoverageLog>
</Site>
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to