Test::Smoke::Database - Add / parse /display perl reports smoke database


Test-Smoke-Database documentation  | view source Contained in the Test-Smoke-Database distribution.

Index


NAME

Top

Test::Smoke::Database - Add / parse /display perl reports smoke database

SYNOPSIS

Top

  $ admin_smokedb --create --suck --import --update_archi
  $ lynx http://localhost/cgi-bin/smokedb.cgi




DESCRIPTION

Top

This module help to build an application that parses smoke-reports for perl-current and puts the results in a database. This allows for a simple overview of the build status on as wide a variety of supported platforms (operating system/architecture) as possible.

This distribution come with 2 perl scripts:

admin_smokedb

Fetch / Import smoke report in a mysql database. See admin_smokedb

smokedb.cgi

A www interface to browse this smoke database

SEE ALSO

Top

admin_smokedb, Test::Smoke::Database::FAQ, Test::Smoke, http://www.alianwebserver.com/perl/smoke/smoke_db.cgi

METHODS

Top

new hash reference

Construct a new Test::Smoke::Database object and return it. This call too connect method of DBD::Mysql and store dbh in $self->{DBH} except if key no_dbconnect is found in hash reference. Disconnect method is auto called with DESTROY call if needed.

rundb SQL request

This will do like $dbh->do, but several request can be put in SQL request, separated by ';'. Return 1 on sucess, 0 if one of request failed. If failed, reason is printed on STDERR.

Method for cgi

nb

Return the number of reports found after limit. Return undef if SQL request fail.

header_html

Return the HTML menubar that will be displayed in the CGI

filter

Return the HTML filter screen.

display

Return the main HTML screen with summary

distinct col of mysql table 'smoke'

Actions for admin_smokedb

See admin_smokedb

parse_import

Wrapper. See Test::Smoke::Database::Parsing

suck_ng

Fetch new report from perl.daily-build.reports

Private methods

read_all
compl_url
rename_rpt

Rename fetched report to add no of smoke in name of file. For all reports found, this will append at end of name the number of smoke. After that all *. and *.rpt file will be deleted. This method is auto. called after fetch method.

VERSION

Top

$Revision: 1.9 $

AUTHOR

Top

Alain BARBET with some help from Abe Timmerman


Test-Smoke-Database documentation  | view source Contained in the Test-Smoke-Database distribution.