[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The usage of -dtrace-scheme-coverage in Lilypond
From: |
Andy Wingo |
Subject: |
Re: The usage of -dtrace-scheme-coverage in Lilypond |
Date: |
Sun, 27 Mar 2011 12:58:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hello zhangxy,
On Fri 11 Mar 2011 14:31, Han-Wen Nienhuys <address@hidden> writes:
> On Fri, Mar 11, 2011 at 12:21 AM, zhangxy <address@hidden> wrote:
>> Now I want to analyze the test coverage of Lilypond.
>
> Apparently there is a new mechanism for finding coverage. See
> https://www.gnu.org/software/guile/manual/html_node/Code-Coverage.html
> - perhaps you can work out a way with the guile folks to resurrect
> lilypond's test coverage code.
The code in Guile's `test-suite/guile-test' looks like this:
(let-values (((coverage-data _)
(with-code-coverage (the-vm) run-tests)))
(let ((out (open-output-file "guile.info")))
(coverage-data->lcov coverage-data out)
(close out)))
where `run-tests' is a thunk that runs the tests.
Andy
--
http://wingolog.org/