Test::RunValgrind - tests that an external program is valgrind-clean.
version 0.0.1
use Test::More tests => 1; # TEST Test::RunValgrind->new({})->run( { log_fn => './expr--valgrind-log.txt', prog => '/usr/bin/expr', argv => [qw/5 + 6/], blurb => 'valgrind likes /usr/bin/expr', } );
valgrind is an open source and convenient memory debugger that runs on some platforms. This module runs valgrind (http://en.wikipedia.org/wiki/Valgrind) on an executable and makes sure that valgrind did not find any faults in it.
It originated from some code used to test the Freecell Solver executables using valgrind, and was extracted into its own CPAN module to allow for reuse by other projects, including fortune-mod (https://github.com/shlomif/fortune-mod).
The constructor - currently accepts a single hash reference and does not use any of its keys.
Runs valgrind.
Accepts a hash ref with the following keys:
blurb
The Test::More test assertion blurb.
log_fn
The path to write the log file to (and read from it). Make sure it is secured.
prog
The path to the executable to run.
argv
An array reference contains strings with command line arguments to the executable.
See the synopsis for an example.
Test::Valgrind - seems to be only for running perl itself under valgrind.
Devel::Valgrind::Client
http://en.wikipedia.org/wiki/Valgrind - wikipedia page.
http://github.com/shlomif/fc-solve/blob/master/fc-solve/source/t/t/lib/FC_Solve/Test/Valgrind.pm - original code using Test::RunValgrind in Freecell Solver
Shlomi Fish <shlomif@cpan.org>
This software is Copyright (c) 2016 by Shlomi Fish.
This is free software, licensed under:
The MIT (X11) License
Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-RunValgrind or by email to bug-test-runvalgrind@rt.cpan.org.
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
You can find documentation for this module with the perldoc command.
perldoc Test::RunValgrind
The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.
MetaCPAN
A modern, open-source CPAN search engine, useful to view POD in HTML format.
http://metacpan.org/release/Test-RunValgrind
Search CPAN
The default CPAN search engine, useful to view POD in HTML format.
http://search.cpan.org/dist/Test-RunValgrind
RT: CPAN's Bug Tracker
The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
https://rt.cpan.org/Public/Dist/Display.html?Name=Test-RunValgrind
AnnoCPAN
The AnnoCPAN is a website that allows community annotations of Perl module documentation.
http://annocpan.org/dist/Test-RunValgrind
CPAN Ratings
The CPAN Ratings is a website that allows community ratings and reviews of Perl modules.
http://cpanratings.perl.org/d/Test-RunValgrind
CPAN Forum
The CPAN Forum is a web forum for discussing Perl modules.
http://cpanforum.com/dist/Test-RunValgrind
CPANTS
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
http://cpants.cpanauthors.org/dist/Test-RunValgrind
CPAN Testers
The CPAN Testers is a network of smokers who run automated tests on uploaded CPAN distributions.
http://www.cpantesters.org/distro/T/Test-RunValgrind
CPAN Testers Matrix
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
http://matrix.cpantesters.org/?dist=Test-RunValgrind
CPAN Testers Dependencies
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
http://deps.cpantesters.org/?module=Test::RunValgrind
Please report any bugs or feature requests by email to bug-test-runvalgrind at rt.cpan.org, or through the web interface at https://rt.cpan.org/Public/Bug/Report.html?Queue=Test-RunValgrind. You will be automatically notified of any progress on the request by the system.
bug-test-runvalgrind at rt.cpan.org
The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)
https://github.com/shlomif/perl-Test-RunValgrind
git clone https://github.com/shlomif/perl-Test-RunValgrind.git
To install Test::RunValgrind, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::RunValgrind
CPAN shell
perl -MCPAN -e shell install Test::RunValgrind
For more information on module installation, please visit the detailed CPAN module installation guide.