MantisBT - Dart
View Issue Details
0000435Dartpublic2003-12-16 12:042003-12-16 12:04
System Admin 
 
normalminorhave not tried
newopen 
0000435: Coverage should use CoverageCommand instead of gcov
On Andoria (my desktop) I have the following gcov commands: gcov-2.95,gcov-3.0, gcov-3.2, and gcov-3.3. Each one corresponds to its ownversion of gcc. So, what happens is that Dart (and CTest) have gcovhardcoded into the source, which means it always uses gcov regardless ofwhat compiler you used. The problem is that coverage file is different between differentcompilers, so coverage does not work.Solution, add CMake variable to host coverage command. I did this inCMake and it would be cool if you guys fix it for Dart. All I care aboutis this:Index: Dart.conf.in===================================================================RCS file: /cvsroot/Dart/Dart/Source/Client/Dart.conf.in,vretrieving revision 1.13diff -u -r1.13 Dart.conf.in--- Dart.conf.in 25 Mar 2003 15:17:54 -0000 1.13+++ Dart.conf.in 8 Dec 2003 16:20:43 -0000@@ -148,6 +148,7 @@ PurifyCommand: @PURIFYCOMMAND@ ValgrindCommand: @VALGRIND_COMMAND@ ValgrindCommandOptions: @VALGRIND_COMMAND_OPTIONS@+CoverageCommand: @COVERAGE_COMMAND@ # Compression commands GunzipCommand: @GUNZIPCOMMAND@ CompressionCommand: @COMPRESSIONCOMMAND@Index: Utility.conf.in===================================================================RCS file: /cvsroot/Dart/Dart/Source/Client/Utility.conf.in,vretrieving revision 1.34diff -u -r1.34 Utility.conf.in--- Utility.conf.in 25 Mar 2003 15:17:54 -0000 1.34+++ Utility.conf.in 8 Dec 2003 16:20:43 -0000@@ -148,6 +148,7 @@ PurifyCommand: @PURIFYCOMMAND@ ValgrindCommand: @VALGRIND_COMMAND@ ValgrindCommandOptions: @VALGRIND_COMMAND_OPTIONS@+CoverageCommand: @COVERAGE_COMMAND@ # Compression commands GunzipCommand: @GUNZIPCOMMAND@ CompressionCommand: @COMPRESSIONCOMMAND@But you may also want to fix Coverage.tcl.
No tags attached.
Issue History

There are no notes attached to this issue.