Tapper::TestSuite::HWTrack::Execute - Support package for Tapper::TestSuite::HWTrack
Generate lshw output and return it as a report string
@return success - report string
@return error - undef
Generate a report based upon the XML formatted data found in the file given as parameter
@param string - file name
@return success - report string @return error - undef
Generate an error report based upon given error string the file given as parameter
@param string - error string
sub gen_error { my ($self, $error) = @_; my $test_run = $ENV{TAPPER_TESTRUN}; my $hostname = $ENV{TAPPER_HOSTNAME}; my $yaml = Dump({error => $error}); $yaml .= "...\n"; $yaml =~ s/^(.*)$/ $1/mg; # indent my $report = sprintf(" TAP Version 13 1..2 # Tapper-Reportgroup-Testrun: %s # Tapper-Suite-Name: HWTrack # Tapper-Machine-Name: %s # Tapper-Suite-Version: %s not ok 1 - Generating lshw executable %s ok 2 - Sending ", $test_run, $hostname, $Tapper::TestSuite::HWTrack::VERSION, $yaml); return $report; }
Send a given report to report receiver.
@param string - report
@return success - 0
@return error - error string
AMD OSRC Tapper Team <tapper@amd64.org>
This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..
This is free software, licensed under:
The (two-clause) FreeBSD License
To install Tapper::TestSuite::HWTrack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tapper::TestSuite::HWTrack
CPAN shell
perl -MCPAN -e shell install Tapper::TestSuite::HWTrack
For more information on module installation, please visit the detailed CPAN module installation guide.