Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Task for the interested: Coverage

3 views
Skip to first unread message

Dan Sugalski

unread,
Jul 29, 2003, 6:12:03 PM7/29/03
to perl6-i...@perl.org
One thing we don't have is a complete set of coverage tests for the
parrot opcodes. (Nor stats as to which ops do actually get covered by
our current test suite) This would be a good thing to have,
especially if we could add it into the make test target to generate a
coverage report as part of its run.
--
Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk

Leopold Toetsch

unread,
Jul 29, 2003, 7:26:39 PM7/29/03
to Dan Sugalski, perl6-i...@perl.org
Dan Sugalski wrote:

> One thing we don't have is a complete set of coverage tests for the
> parrot opcodes. (Nor stats as to which ops do actually get covered by
> our current test suite) This would be a good thing to have, especially
> if we could add it into the make test target to generate a coverage
> report as part of its run.

I have a (unportable, ugly, slightly tested, ...) script here doing some:

total ops 1099
ops types 257
op usage stat
560 op-list-all
165 op-list-types

Meaning, we have slighlty more then a half of opcodes used/tested.

$ cat op-stat
#!/bin/sh
[ -e .op-list1 ] && rm .op-list1
[ -e op-list-all ] && rm op-list-all
[ -e op-list-types ] && rm op-list-types
find . -name '*.pasm' -exec ./parrot -d1000 {} \; 2>&1 |
perl -ne 'm/\d+ (\w+)/; print "$1\n" if ($1)' >> .op-list1
sort < .op-list1 | uniq -c | sort -rg > op-list-all
sort < .op-list1 | sed -e's/_.*//' | uniq -c | sort -rg > op-list-types
echo
T=`grep NAME lib/Parrot/OpLib/core.pm | wc -l`
S=`grep NAME lib/Parrot/OpLib/core.pm | sort | uniq | wc -l`
echo total ops $T
echo ops types $S
echo op usage stat
wc -l op-list* | head -2


Josh Wilmes

unread,
Jul 29, 2003, 7:51:26 PM7/29/03
to Dan Sugalski, perl6-i...@perl.org

There is http://www.hitchhiker.org/parrot_coverage/, which is built by
tools/dev/parrot_coverage.pl.

Any enhancements made there should show up in the next run.

I disabled it about a month ago when it started going into an endless loop
on a test.

I'll try turning it back on though.

--Josh

0 new messages