unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Re: The usage of -dtrace-scheme-coverage in Lilypond
       [not found] <AANLkTim1Z-Htrwzi9k0XFE1CU9GS5j0VWn3rwOhgZuD1@mail.gmail.com>
@ 2011-03-11 13:31 ` Han-Wen Nienhuys
  2011-03-27 10:58   ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Han-Wen Nienhuys @ 2011-03-11 13:31 UTC (permalink / raw)
  To: zhangxy; +Cc: guile-devel, lilypond-devel

On Fri, Mar 11, 2011 at 12:21 AM, zhangxy <zhangxy290626683@gmail.com> wrote:
> Dear hanwen,
> Now I want to analyze the test coverage of Lilypond. I find the option
> -dtrace-scheme-coverage. It says that the option can record coverage of
> Scheme files in `FILE.cov'. Then I do the following
>>
>> lilypond -dtrace-scheme-coverage test.ly
>
> But it gives me the error
>>
>> throw from within critical section.

trace-scheme-coverage relies on a hack in the GUILE evaluator that I
added in 2007, which records a symbol's source location the moment
that symbol is looked up. The glue on the lilypond side is in
scm/coverage.scm. This feature was removed in 2010, when the GUILE
folks rewrote the evaluator, before ever seeing the light in a GUILE
release.

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.

-- 
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: The usage of -dtrace-scheme-coverage in Lilypond
  2011-03-11 13:31 ` The usage of -dtrace-scheme-coverage in Lilypond Han-Wen Nienhuys
@ 2011-03-27 10:58   ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2011-03-27 10:58 UTC (permalink / raw)
  To: hanwen; +Cc: zhangxy, lilypond-devel, guile-devel

Hello zhangxy,

On Fri 11 Mar 2011 14:31, Han-Wen Nienhuys <hanwenn@gmail.com> writes:

> On Fri, Mar 11, 2011 at 12:21 AM, zhangxy <zhangxy290626683@gmail.com> 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/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-27 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <AANLkTim1Z-Htrwzi9k0XFE1CU9GS5j0VWn3rwOhgZuD1@mail.gmail.com>
2011-03-11 13:31 ` The usage of -dtrace-scheme-coverage in Lilypond Han-Wen Nienhuys
2011-03-27 10:58   ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).