[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rcs] restrict coverage analysis to src/, tests/
From: |
Ludovic Courtès |
Subject: |
Re: [rcs] restrict coverage analysis to src/, tests/ |
Date: |
Mon, 31 Jan 2011 15:44:17 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Hi,
Thien-Thi Nguyen <address@hidden> writes:
> Unfortunately the nixpkgs-manual.html i have locally is at "draft (version
> 0.14)" and does not even mention the "coverage" phase, else i'd take a look
> at what's involved. I see from the output:
>
> ☆ Scanning . for .gcda files ...
> ☆ Found 45 data files in .
> ☆ Processing src/rcstime.gcda
> ☆ Processing src/rcsgen.gcda
> [...]
> ☆ Processing src/rcsmap.gcda
>
> ☆ Processing src/b-fro.gcda
>
> ☆ Processing tests/btdt.gcda
>
> ☆ Processing lib/fcntl.gcda
>
> [...]
> ☆ Processing lib/xalloc-die.gcda
>
> ☆ Finished .info-file creation
>
> ☆ Reading tracefile app.info
>
> ☆ Overall coverage rate:
>
>
> so i guess the overall approach would be to change the one scan into two,
> specifying both resulting tracefiles instead of the monolithic app.info.
These messages come from LCOV, which is what is used here.
The Nix code for ‘codeCoverage’ is at
<https://svn.nixos.org/repos/nix/nixpkgs/trunk/pkgs/build-support/release/nix-build.nix>.
But really, I think you shouldn’t worry about wasted cycles. :-)
Thanks,
Ludo’.