[KinoSearch] perl Build.PL error
Marvin Humphrey
marvin at rectangular.com
Tue Jan 29 23:23:05 PST 2008
On Jan 27, 2008, at 9:28 PM, Peter Karman wrote:
>> I started a PerlMonks thread about smoke testing CPAN distros:
>> http://www.perlmonks.org/index.pl?node_id=663432
>
> too bad that thread seems to have stalled.
It stalled, but I think that's because the plan I laid out in the
original post was sufficiently sane that no one felt compelled to
correct it. :) It's a simple enough approach -- probably simple
enough that there's no point to modularizing it -- which is why
nobody's got a module to point me at. :)
The only hard thing is screen scraping valgrind's output.
> I hacked this little test script together just now and set it up on
> a local box. Marvin, would you like a nightly cron run and mail
> directly to you?
That would be great. Thanks!
It might be even better if it only emailed upon failure.
Can I commit the script as $KS_SVN_TRUNK/devel/bin/smoke.pl ?
With slight modifications (a config file, probably using JSON::XS),
Henry could run it as well.
> I'd also love to get valgrind running, if you can point me at how
> you typically run it.
What I do is invoke this set of commands from $SVN_TRUNK_ROOT/perl ...
$ export PERL_DESTRUCT_LEVEL=2
$ /usr/local/debugperl/bin/perl5.8.8 ../devel/bin/valgrind_test.plx
... and then manually inspect the valgrind_test.log file that it
generates, using vim. I scrunch up my terminal window and search
first for "ERROR SUMMARY", then "LEAK SUMMARY", hitting the "n" key
to keep fast forwarding; as the reports skip by, I look to make sure
that I see nothing but zeros. The process doesn't take long if the
tests are clean, even though there are around 100 of them.
To run the script need a DEBUGGING perl, and you may also need a
suppressions file to get sensible results. We'll have to set up
some kind of parser to machine-read valgrind's output if I'm not
checking it directly.
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/
_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch
More information about the kinosearch
mailing list