Test::Smoke::Reporter - OO interface for handling the testresults (mktest.out)
use Test::Smoke; use Test::Smoke::Reporter; my $reporter = Test::Smoke::Reporter->new( %args ); $reporter->write_to_file; $reporter->transport( $url );
Handle the parsing of the mktest.out file.
[ Constructor | Public ]
Initialise a new object.
Accessor to the v attribute.
v
[ Accessor | Public ]
config() is an interface to the package lexical %CONFIG, which holds all the default values for the new() arguments.
config()
%CONFIG
new()
With the special key all_defaults this returns a reference to a hash holding all the default values.
read_parse() reads the smokeresults file and parses it.
read_parse()
_read() is a private method that handles the reading.
_read()
$$nameorref
@$nameorref
Interpret the contents of the outfile and prepare them for processing, so report can be made.
_post_process() sets up the report for easy printing. It needs to sort the buildenvironments, statusletters and test failures.
_post_process()
Returns strftime("%F %T %z").
strftime("%F %T %z")
Removes the the arguments stored as keys in %common from $cfg.
%common
$cfg
Return the contents of $self->{lfile} either by reading the file or returning the cached version.
$self->{lfile}
Return the contents of $self->{outfile} either by reading the file or returning the cached version.
$self->{outfile}
Write the $self->report to file. If name is omitted it will use catfile( $self->{ddir}, $self->{rptfile} ).
$self->report
catfile( $self->{ddir}, $self->{rptfile} )
Transport the report to the gateway. The transported data will also be stored locally in the file mktest.jsn
Return a string with the full report
Return $self->{user_note} if exists.
Check if $self->{un_file} exists, and read contents into $self->{user_note}.
$self->{un_file}
$self->{user_note}
Return the string containing the C-compiler info.
Return a section with the locally applied patches (from patchlevel.h).
Show indication of the options used for HARNESS_OPTIONS.
HARNESS_OPTIONS
Show indication for the fact that the user requested to skip some tests.
Use a port of Jarkko's grepccerr script to report the compiler messages.
Find failures worth reporting that won't cause tests to fail
Returns the header of the report.
smoke_matrix() returns a string with the result-letters and their configs.
smoke_matrix()
Return the PASS or FAIL(x) string.
Returns true if @{ $reporter->{_failures}.
@{ $reporter->{_failures}
report the failures (grouped by configurations).
Returns true if @{ $reporter->{_todo_pasesd}.
@{ $reporter->{_todo_pasesd}
report the todo that passed (grouped by configurations).
Returns true if @{ $reporter->{_mani}.
@{ $reporter->{_mani}
report the MANIFEST failures.
Returns a string with the legend for build-environments
Returns a string with the legend for the letters in the matrix.
Returns the signature for the e-mail message (starting with dash dash space newline) and some version numbers.
Test::Smoke::Smoker
(c) 2002-2012, All rights reserved.
* Abe Timmerman <abeltje@cpan.org> * H.Merijn Brand <hmbrand@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
http://www.perl.com/perl/misc/Artistic.html
http://www.gnu.org/copyleft/gpl.html
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Test::Smoke, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Smoke
CPAN shell
perl -MCPAN -e shell install Test::Smoke
For more information on module installation, please visit the detailed CPAN module installation guide.