[IGSTK-Developers] gcov with Cygwin

Luis Ibanez luis.ibanez at kitware.com
Tue Sep 13 16:05:51 EDT 2005


Hi Patrick

Did you added the following compilation flags ?


CMAKE_CXX_FLAGS:STRING=-Wall -g -O0 -fprofile-arcs -ftest-coverage
CMAKE_C_FLAGS:STRING=-Wall -g -O0 -fprofile-arcs -ftest-coverage


gcov can only analyze code that has been compiled
with this options.



   Luis


----------------------------
Patrick Cheng wrote:
> Hi everyone,
> 
> I found that under Cygwin system, the DartConfiguration.tcl genarated by 
>  the ctest program does not have the "CoverageCommand: /usr/bin/gcov" 
> line compare to that of the linux system, even if you have set the
> COVERAGE_COMMAND:INTERNAL=/usr/bin/gcov
> in the build script.
> 
> I guess that's why the Cygwin machine is submitting the coverage results 
> to the dashboard.
> 
> Anyone knows how to solve this?
> 
> Patrick
> 
> 
> ==========segment from linux====================
> ConfigureCommand: "/usr/bin/cmake" 
> "/cygdrive/c/Patrick/Sandbox/Sandbox-Cygwin"
> CMakeCommand: /usr/bin/cmake
> MakeCommand: /usr/bin/make -i
> CVSCommand: /usr/bin/cvs.exe
> TclshCommand: /usr/bin/tclsh
> JavaCommand: JAVACOMMAND-NOTFOUND
> ScpCommand: /usr/bin/scp
> PurifyCommand:
> ValgrindCommand:
> ValgrindCommandOptions:
> # Compression commands
> GunzipCommand: /usr/bin/gunzip
> CompressionCommand: /usr/bin/gzip
> CompressionType: /usr/bin/gzip
> 
> ==========segment from cygwin====================
> ConfigureCommand: "/usr/local/bin/cmake" "/home/patrick/Sandbox/Sandbox"
> CMakeCommand: /usr/local/bin/cmake
> MakeCommand: /usr/bin/make -i
> CVSCommand: /usr/bin/cvs
> ScpCommand: /usr/bin/scp
> PurifyCommand:
> ValgrindCommand:
> ValgrindCommandOptions:
> CoverageCommand: /usr/bin/gcov  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> # Compression commands
> GunzipCommand: /usr/bin/gunzip
> CompressionCommand: /usr/bin/gzip
> CompressionType: /usr/bin/gzip
> 
> 




More information about the IGSTK-Developers mailing list