From: Vincent Pit Date: Sat, 2 May 2009 12:05:20 +0000 (+0200) Subject: This is 1.02 X-Git-Tag: v1.02 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=611ae9af8164b7f77e7a4edbafef887f52f7d3d2;hp=cbc78ed3600426ed4bd21f069a0afb334a94a4b1;p=perl%2Fmodules%2FTest-Valgrind.git This is 1.02 --- diff --git a/Changes b/Changes index 6b59d97..ad1a9a5 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,12 @@ Revision history for Test-Valgrind +1.02 2009-05-02 12:05 UTC + + Add : Commands can now be aggregated. + + Add : The commands can now also filter and mangle reports. + + Chg : The perl suppressions are now stripped from everything below + Perl_runops_*. + + Doc : Typos, nits and clarifications. + 1.01 2009-04-14 21:15 UTC + Add : Allow testing code given by -e. Hurray for source filters! + Fix : Lazily load version.pm in Test::Valgrind::Session so that it's diff --git a/META.yml b/META.yml index cc2f1c1..fecbb23 100644 --- a/META.yml +++ b/META.yml @@ -1,7 +1,7 @@ --- #YAML:1.0 name: Test-Valgrind -version: 1.01 -abstract: Test Perl code through valgrind. +version: 1.02 +abstract: Generate suppressions, analyse and test any command with valgrind. author: - Vincent Pit license: perl @@ -57,7 +57,7 @@ resources: bugtracker: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind homepage: http://search.cpan.org/dist/Test-Valgrind/ license: http://dev.perl.org/licenses/ - repository: http://git.profvince.com/perl/modules/Test-Valgrind.git + repository: http://git.profvince.com/?p=perl%2Fmodules%2FTest-Valgrind.git no_index: directory: - t diff --git a/README b/README index ab84bdb..ad23d16 100644 --- a/README +++ b/README @@ -1,8 +1,9 @@ NAME - Test::Valgrind - Test Perl code through valgrind. + Test::Valgrind - Generate suppressions, analyse and test any command + with valgrind. VERSION - Version 1.01 + Version 1.02 SYNOPSIS # From the command-line @@ -30,6 +31,11 @@ DESCRIPTION take place, and tests will be passed or failed according to the result of the analysis. + The complete API is much more versatile than this. It allows you to run + *any* executable under valgrind, generate the corresponding suppressions + and convert the analysis output to TAP so that it can be incorporated + into your project's testsuite. + Due to the nature of perl's memory allocator, this module can't track leaks of Perl objects. This includes non-mortalized scalars and memory cycles. However, it can track leaks of chunks of memory allocated in XS @@ -96,8 +102,8 @@ METHODS "import [ %options ]" In the parent process, "import" calls "analyse" with the arguments it received itself - except that if no "file" option was supplied, it tries - to pick the highest caller context that looks like a script. When the - analyse finishes, it exists with the status that was returned. + to pick the first caller context that looks like a script. When the + analyse ends, it exits with the status that was returned. In the child process, it just "return"s so that the calling code is actually run under "valgrind". @@ -105,7 +111,8 @@ METHODS VARIABLES $dl_unload When set to true, all dynamic extensions that were loaded during the - analysis will be unloaded at "END" time by DynaLoader::dl_unload_file. + analysis will be unloaded at "END" time by "dl_unload_file" in + DynaLoader. Since this obfuscates error stack traces, it's disabled by default. diff --git a/lib/Test/Valgrind.pm b/lib/Test/Valgrind.pm index aea4041..5c1c8bb 100644 --- a/lib/Test/Valgrind.pm +++ b/lib/Test/Valgrind.pm @@ -9,11 +9,11 @@ Test::Valgrind - Generate suppressions, analyse and test any command with valgri =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 SYNOPSIS diff --git a/lib/Test/Valgrind/Action.pm b/lib/Test/Valgrind/Action.pm index d680855..84aae69 100644 --- a/lib/Test/Valgrind/Action.pm +++ b/lib/Test/Valgrind/Action.pm @@ -9,11 +9,11 @@ Test::Valgrind::Action - Base class for Test::Valgrind actions. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Action/Captor.pm b/lib/Test/Valgrind/Action/Captor.pm index c38a2a5..dd4e269 100644 --- a/lib/Test/Valgrind/Action/Captor.pm +++ b/lib/Test/Valgrind/Action/Captor.pm @@ -9,11 +9,11 @@ Test::Valgrind::Action::Captor - Mock Test::Valgrind::Action for capturing outpu =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Action/Suppressions.pm b/lib/Test/Valgrind/Action/Suppressions.pm index 859f56e..4d666a7 100644 --- a/lib/Test/Valgrind/Action/Suppressions.pm +++ b/lib/Test/Valgrind/Action/Suppressions.pm @@ -9,11 +9,11 @@ Test::Valgrind::Action::Suppressions - Generate suppressions for a given tool. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Action/Test.pm b/lib/Test/Valgrind/Action/Test.pm index 49149e6..182f282 100644 --- a/lib/Test/Valgrind/Action/Test.pm +++ b/lib/Test/Valgrind/Action/Test.pm @@ -9,11 +9,11 @@ Test::Valgrind::Action::Test - Test that an analysis didn't generate any error r =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Carp.pm b/lib/Test/Valgrind/Carp.pm index c60777f..165004d 100644 --- a/lib/Test/Valgrind/Carp.pm +++ b/lib/Test/Valgrind/Carp.pm @@ -9,11 +9,11 @@ Test::Valgrind::Carp - Carp-like private methods for Test::Valgrind objects. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; sub _croak { shift; diff --git a/lib/Test/Valgrind/Command.pm b/lib/Test/Valgrind/Command.pm index 61f72fc..3452047 100644 --- a/lib/Test/Valgrind/Command.pm +++ b/lib/Test/Valgrind/Command.pm @@ -9,11 +9,11 @@ Test::Valgrind::Command - Base class for Test::Valgrind commands. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Command/Aggregate.pm b/lib/Test/Valgrind/Command/Aggregate.pm index e5b66b5..27d7fc8 100644 --- a/lib/Test/Valgrind/Command/Aggregate.pm +++ b/lib/Test/Valgrind/Command/Aggregate.pm @@ -9,11 +9,11 @@ Test::Valgrind::Command::Aggregate - A Test::Valgrind command that aggregates se =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Command/Perl.pm b/lib/Test/Valgrind/Command/Perl.pm index 11f11d3..675210e 100644 --- a/lib/Test/Valgrind/Command/Perl.pm +++ b/lib/Test/Valgrind/Command/Perl.pm @@ -9,11 +9,11 @@ Test::Valgrind::Command::Perl - A Test::Valgrind command that invokes perl. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Command/PerlScript.pm b/lib/Test/Valgrind/Command/PerlScript.pm index 3c4627d..826d74c 100644 --- a/lib/Test/Valgrind/Command/PerlScript.pm +++ b/lib/Test/Valgrind/Command/PerlScript.pm @@ -9,11 +9,11 @@ Test::Valgrind::Command::PerlScript - A Test::Valgrind command that invokes a pe =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Report.pm b/lib/Test/Valgrind/Report.pm index 9c31ca9..ac4ad9e 100644 --- a/lib/Test/Valgrind/Report.pm +++ b/lib/Test/Valgrind/Report.pm @@ -9,11 +9,11 @@ Test::Valgrind::Report - Base class for Test::Valgrind error reports. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; use base qw/Test::Valgrind::Carp/; diff --git a/lib/Test/Valgrind/Session.pm b/lib/Test/Valgrind/Session.pm index 1e8857e..95aaa01 100644 --- a/lib/Test/Valgrind/Session.pm +++ b/lib/Test/Valgrind/Session.pm @@ -9,11 +9,11 @@ Test::Valgrind::Session - Test::Valgrind session object. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Suppressions.pm b/lib/Test/Valgrind/Suppressions.pm index 8c34812..59c5355 100644 --- a/lib/Test/Valgrind/Suppressions.pm +++ b/lib/Test/Valgrind/Suppressions.pm @@ -9,11 +9,11 @@ Test::Valgrind::Suppressions - Generate suppressions for given tool and command. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Tool.pm b/lib/Test/Valgrind/Tool.pm index 0fc287d..9bd530f 100644 --- a/lib/Test/Valgrind/Tool.pm +++ b/lib/Test/Valgrind/Tool.pm @@ -9,11 +9,11 @@ Test::Valgrind::Tool - Base class for Test::Valgrind tools. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Tool/SuppressionsParser.pm b/lib/Test/Valgrind/Tool/SuppressionsParser.pm index b19a7c6..6823d70 100644 --- a/lib/Test/Valgrind/Tool/SuppressionsParser.pm +++ b/lib/Test/Valgrind/Tool/SuppressionsParser.pm @@ -9,11 +9,11 @@ Test::Valgrind::Tool::SuppressionsParser - Mock Test::Valgrind::Tool for parsing =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION diff --git a/lib/Test/Valgrind/Tool/memcheck.pm b/lib/Test/Valgrind/Tool/memcheck.pm index 9ec1aa0..4f1c5a9 100644 --- a/lib/Test/Valgrind/Tool/memcheck.pm +++ b/lib/Test/Valgrind/Tool/memcheck.pm @@ -9,11 +9,11 @@ Test::Valgrind::Tool::memcheck - Run an analysis through the memcheck tool. =head1 VERSION -Version 1.01 +Version 1.02 =cut -our $VERSION = '1.01'; +our $VERSION = '1.02'; =head1 DESCRIPTION @@ -186,7 +186,7 @@ package Test::Valgrind::Tool::memcheck::Report; use base qw/Test::Valgrind::Report/; -our $VERSION = '1.01'; +our $VERSION = '1.02'; my @kinds = qw/ InvalidFree @@ -258,7 +258,7 @@ sub dump { package Test::Valgrind::Tool::memcheck::Twig; -our $VERSION = '1.01'; +our $VERSION = '1.02'; use Scalar::Util; @@ -338,7 +338,7 @@ sub handle_error { package Test::Valgrind::Tool::memcheck::Twig::Elt; -our $VERSION = '1.01'; +our $VERSION = '1.02'; BEGIN { require XML::Twig; }