Hi!
I am trying to use the gcov function to generate a coverage test of minimad. The "recipe" i found says that I am to do the following:
(Start quote) Compile the source file:
$ gcc -Wall -fprofile-arcs -ftest-coverage minimad.c
This creates an instrumented executable. The executable must then be run to create the coverage data:
$ ./a
The data from the run is written to several files with the extensions '.bb' '.bbg' and '.da' respectively in the current directory. This data can be analyzed using the gcov command and the name of a source file:
$ gcov cov.c (End quote)
I can't even get past the first step because i can't compile minimad in any other way than make "minimad.exe"!! Does anyone know how to perform a successfull coverage test of minimad in Cygwin?
And do I have to to flag the ./configure command? (e.g ./configure --enable-coverage) --
On Oct 4, 2005, at 4:07 PM, Håvard Sperle Engebretsen wrote:
I can't even get past the first step because i can't compile minimad in any other way than make "minimad.exe"!! Does anyone know how to perform a successfull coverage test of minimad in Cygwin?
By default, gcc generates an executable file named "a.out." That's why your recipe contains a reference to running "a" (perhaps a.out was just mistyped). This isn't important, and you should simply be able to run minimad.exe (if it, and all of the rest of MAD, has been compiled with coverage) to generate that coverage data.
Hope this helps,
Joe