<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I've been searching high and low for
a way to do code coverage on my source files with cmake.</font>
<br><font size=2 face="sans-serif">A while back I ran into CTest:Coverage
over at itk.org. Well that works nicely, so now CMake and</font>
<br><font size=2 face="sans-serif">CTest produces a coverage report - there
is only one small problem.</font>
<br>
<br><font size=2 face="sans-serif">The report it generates is on the source
file containing the tests, not the file I really want to have tested.</font>
<br><font size=2 face="sans-serif">I'm using CUnit as a backend for the
tests, and I've set up so that each source file also has a test_-source
file.</font>
<br><font size=2 face="sans-serif">For example, the source file foo.c has
the test script file test_foo.c. And it is the latter which CTest runs
gcov on.</font>
<br><font size=2 face="sans-serif">And to boot these two files are not
located in the same directory.</font>
<br>
<br><font size=2 face="sans-serif">Is there a way to make CTest look at
foo.c instead of test_foo.c? Google has of late not given be an answer.</font>
<br><font size=2 face="sans-serif">Since I don't know what I'm looking
for, I don't know what you need to be able to help me (other than the description</font>
<br><font size=2 face="sans-serif">above) - so please ask if you think
there is some more information you need to help solve this problem.</font>
<br>
<br><font size=2 face="sans-serif">Thanks in advance,</font>
<br><font size=2 face="sans-serif">Fredrik<br>
</font><font size=2 face="Microsoft Sans Serif"> &nbsp;<br>
 &nbsp;</font><font size=1 face="Microsoft Sans Serif"><br>
Please consider the environment before you print / Merci de penser à l'environnement
avant d'imprimer / Tänk på miljön innan du skriver ut <br>
<br>
_______________________________________________________________________________________________________________
<br>
This e-mail communication (and any attachment/s) may contain confidential
or privileged information and is intended only for the individual(s) or
entity named above and to others who have been specifically authorized
to receive it. If you are not the intended recipient, please do not read,
copy, use or disclose the contents of this communication to others. Please
notify the sender that you have received this e-mail in error by reply
e-mail, and delete the e-mail subsequently. Please note that in order to
protect the security of our information systems an AntiSPAM solution is
in use and will browse through incoming emails. <br>
Thank you. <br>
_________________________________________________________________________________________________________________
<br>
<br>
Ce message (ainsi que le(s) fichier(s)), transmis par courriel, peut contenir
des renseignements confidentiels ou protégés et est destiné à l&#8217;usage
exclusif du destinataire ci-dessus. Toute autre personne est, par les présentes,
avisée qu&#8217;il est strictement interdit de le diffuser, le distribuer ou
le reproduire. Si vous l&#8217;avez reçu par inadvertance, veuillez nous en
aviser et détruire ce message. Veuillez prendre note qu'une solution antipollupostage
(AntiSPAM) est utilisée afin d'assurer la sécurité de nos systèmes d'information
et qu'elle furètera les courriels entrants.<br>
Merci. <br>
_________________________________________________________________________________________________________________
<br>
<br>
</font>