[Rt-commit] r5562 - in Test-Chimps/trunk: . lib/Test/Chimps
lib/Test/Chimps/Client lib/Test/Chimps/Server t t-data
t-data/chimps-home t-data/chimps-home/chimpsdb t/chimps-home
zev at bestpractical.com
zev at bestpractical.com
Wed Jul 12 16:24:23 EDT 2006
Author: zev
Date: Wed Jul 12 16:24:21 2006
New Revision: 5562
Added:
Test-Chimps/trunk/bin/chimps-server.pl (contents, props changed)
Test-Chimps/trunk/t-data/
Test-Chimps/trunk/t-data/chimps-home/
Test-Chimps/trunk/t-data/chimps-home/chimpsdb/
Test-Chimps/trunk/t/05-report-basic.t
Test-Chimps/trunk/t/15-lister-basic.t
Removed:
Test-Chimps/trunk/bin/poll_and_submit.pl
Test-Chimps/trunk/bin/report_server.pl
Test-Chimps/trunk/bin/submit_report.pl
Test-Chimps/trunk/lib/Test/Chimps/Client/
Test-Chimps/trunk/lib/Test/Chimps/Client.pm
Test-Chimps/trunk/t/01-report-basic.t
Test-Chimps/trunk/t/05-client-basic.t
Test-Chimps/trunk/t/15-poller-basic.t
Test-Chimps/trunk/t/20-lister-basic.t
Test-Chimps/trunk/t/chimps-home/
Modified:
Test-Chimps/trunk/ (props changed)
Test-Chimps/trunk/Changes
Test-Chimps/trunk/MANIFEST
Test-Chimps/trunk/Makefile.PL
Test-Chimps/trunk/README
Test-Chimps/trunk/lib/Test/Chimps/Report.pm
Test-Chimps/trunk/lib/Test/Chimps/ReportCollection.pm
Test-Chimps/trunk/lib/Test/Chimps/Server.pm
Test-Chimps/trunk/lib/Test/Chimps/Server/Lister.pm
Test-Chimps/trunk/t/10-server-basic.t
Test-Chimps/trunk/t/boilerplate.t
Log:
r11444 at galvatron: zev | 2006-07-12 16:17:58 -0400
cleaned up distribution after split
Modified: Test-Chimps/trunk/Changes
==============================================================================
--- Test-Chimps/trunk/Changes (original)
+++ Test-Chimps/trunk/Changes Wed Jul 12 16:24:21 2006
@@ -3,3 +3,6 @@
0.01 Fri Jun 16 13:21:11 EDT 2006
First revision.
+0.02 Wed Jul 12 16:17:00 EDT 2006
+ Split off from main Chimps distribution and first CPAN
+ release.
\ No newline at end of file
Modified: Test-Chimps/trunk/MANIFEST
==============================================================================
--- Test-Chimps/trunk/MANIFEST (original)
+++ Test-Chimps/trunk/MANIFEST Wed Jul 12 16:24:21 2006
@@ -1,6 +1,4 @@
-bin/poll_and_submit.pl
-bin/report_server.pl
-bin/submit_report.pl
+bin/chimps-server.pl
bin/yaml2dbi.pl
Changes
examples/list.tmpl
@@ -16,8 +14,6 @@
inc/Module/Install/Win32.pm
inc/Module/Install/WriteAll.pm
lib/Test/Chimps.pm
-lib/Test/Chimps/Client.pm
-lib/Test/Chimps/Client/Poller.pm
lib/Test/Chimps/Report.pm
lib/Test/Chimps/ReportCollection.pm
lib/Test/Chimps/Server.pm
@@ -27,11 +23,9 @@
META.yml
README
t/00-dependencies.t
-t/01-report-basic.t
-t/05-client-basic.t
+t/05-report-basic.t
t/10-server-basic.t
-t/15-poller-basic.t
-t/20-lister-basic.t
+t/15-lister-basic.t
t/bogus-tests/00-basic.t
t/boilerplate.t
t/pod-coverage.t
Modified: Test-Chimps/trunk/Makefile.PL
==============================================================================
--- Test-Chimps/trunk/Makefile.PL (original)
+++ Test-Chimps/trunk/Makefile.PL Wed Jul 12 16:24:21 2006
@@ -15,7 +15,6 @@
requires('Jifty::DBI::Record');
requires('Jifty::DBI::Schema');
requires('Jifty::DBI::SchemaGenerator');
-requires('LWP::UserAgent');
requires('Params::Validate');
requires('Test::TAP::HTMLMatrix');
requires('Test::TAP::Model::Visual');
Modified: Test-Chimps/trunk/README
==============================================================================
--- Test-Chimps/trunk/README (original)
+++ Test-Chimps/trunk/README Wed Jul 12 16:24:21 2006
@@ -1,10 +1,9 @@
Test-Chimps
-This module modularizes the pugs smoke server/client
-(smokeserv-client.pl and smokeserv-server.pl). It also makes the
-code more generic so that other groups can take advantage of the
-simple but powerful smoke server. It will provide scripts to
-replicate pugs' scripts behavior in a more generic fashion.
+Chimps is the Collaborative Heterogeneous Infinite Monkey
+Perfectionification Service. It is a framework for storing,
+viewing, generating, and uploading smoke reports. This
+distribution provides server-side modules and binaries for Chimps.
INSTALLATION
@@ -38,7 +37,8 @@
COPYRIGHT AND LICENCE
-Copyright (C) 2006 Zev Benjamin
+Copyright 2006 Best Practical Solutions, all rights reserved.
+Portions copyright 2005-2006 the Pugs project, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Added: Test-Chimps/trunk/bin/chimps-server.pl
==============================================================================
--- (empty file)
+++ Test-Chimps/trunk/bin/chimps-server.pl Wed Jul 12 16:24:21 2006
@@ -0,0 +1,17 @@
+#!/usr/bin/env perl
+
+use Test::Chimps::Server;
+
+my $server = Test::Chimps::Server->new(base_dir => '/var/www/bps-smokes',
+ list_template => 'list.tmpl',
+ variables_validation_spec =>
+ { project => 1,
+ revision => 1,
+ committer => 1,
+ duration => 1,
+ osname => 1,
+ osvers => 1,
+ archname => 1
+ });
+
+$server->handle_request;
Modified: Test-Chimps/trunk/lib/Test/Chimps/Report.pm
==============================================================================
--- Test-Chimps/trunk/lib/Test/Chimps/Report.pm (original)
+++ Test-Chimps/trunk/lib/Test/Chimps/Report.pm Wed Jul 12 16:24:21 2006
@@ -11,6 +11,9 @@
FIXME
+Note that parts of this class are dynamically generated in
+Test::Chimps::Server base on the configuation file.
+
=head1 METHODS
=head2 new ARGS
@@ -126,7 +129,7 @@
=head1 COPYRIGHT & LICENSE
-Copyright 2006 Zev Benjamin, all rights reserved.
+Copyright 2006 Best Practical Solutions, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Modified: Test-Chimps/trunk/lib/Test/Chimps/ReportCollection.pm
==============================================================================
--- Test-Chimps/trunk/lib/Test/Chimps/ReportCollection.pm (original)
+++ Test-Chimps/trunk/lib/Test/Chimps/ReportCollection.pm Wed Jul 12 16:24:21 2006
@@ -5,23 +5,18 @@
=head1 NAME
-Test::Chimps::Report - Encapsulate a smoke test report
+Test::Chimps::ReportCollection - Encapsulate a collection of smoke test reports
=head1 SYNOPSIS
-FIXME
-
-=head1 METHODS
-
-=head2 new ARGS
-
-Creates a new Report. ARGS is a hash whose only valid key is
-handle. Its value must be a Jifty::DBI::Handle.
+See L<Jifty::DBI::Collection>.
=cut
use base qw/Jifty::DBI::Collection/;
+=head1 METHODS
+
=head2 record_class
Overridden method. Always returns 'Test::Chimps::Report'.
@@ -79,7 +74,7 @@
=head1 COPYRIGHT & LICENSE
-Copyright 2006 Zev Benjamin, all rights reserved.
+Copyright 2006 Best Practical Solutions, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Modified: Test-Chimps/trunk/lib/Test/Chimps/Server.pm
==============================================================================
--- Test-Chimps/trunk/lib/Test/Chimps/Server.pm (original)
+++ Test-Chimps/trunk/lib/Test/Chimps/Server.pm Wed Jul 12 16:24:21 2006
@@ -479,12 +479,13 @@
=head1 ACKNOWLEDGEMENTS
-The code in this distribution is based on smokeserv-client.pl and
-smokeserv-server.pl from the PUGS distribution.
+Some code in this distribution is based on smokeserv-server.pl from
+the PUGS distribution.
=head1 COPYRIGHT & LICENSE
-Copyright 2006 Zev Benjamin, all rights reserved.
+Copyright 2006 Best Practical Solutions, all rights reserved.
+Portions copyright 2005-2006 the Pugs project, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Modified: Test-Chimps/trunk/lib/Test/Chimps/Server/Lister.pm
==============================================================================
--- Test-Chimps/trunk/lib/Test/Chimps/Server/Lister.pm (original)
+++ Test-Chimps/trunk/lib/Test/Chimps/Server/Lister.pm Wed Jul 12 16:24:21 2006
@@ -12,14 +12,6 @@
Test::Chimps::Server::Lister - Format the list of smoke reports
-=head1 VERSION
-
-Version 0.01
-
-=cut
-
-our $VERSION = '0.01';
-
=head1 SYNOPSIS
This module encapsulates the formatting and output of the smoke
@@ -172,4 +164,58 @@
}
}
+=head1 AUTHOR
+
+Zev Benjamin, C<< <zev at cpan.org> >>
+
+=head1 BUGS
+
+Please report any bugs or feature requests to
+C<bug-test-chimps at rt.cpan.org>, or through the web interface at
+L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Chimps>.
+I will be notified, and then you'll automatically be notified of progress on
+your bug as I make changes.
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+ perldoc Test::Chimps
+
+You can also look for information at:
+
+=over 4
+
+=item * AnnoCPAN: Annotated CPAN documentation
+
+L<http://annocpan.org/dist/Test-Chimps>
+
+=item * CPAN Ratings
+
+L<http://cpanratings.perl.org/d/Test-Chimps>
+
+=item * RT: CPAN's request tracker
+
+L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Chimps>
+
+=item * Search CPAN
+
+L<http://search.cpan.org/dist/Test-Chimps>
+
+=back
+
+=head1 ACKNOWLEDGEMENTS
+
+The code in this distribution is based on smokeserv-client.pl and
+smokeserv-server.pl from the Pugs distribution.
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2006 Best Practical Solutions, all rights reserved.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
+=cut
+
1;
Added: Test-Chimps/trunk/t/05-report-basic.t
==============================================================================
--- (empty file)
+++ Test-Chimps/trunk/t/05-report-basic.t Wed Jul 12 16:24:21 2006
@@ -0,0 +1,13 @@
+#!perl -T
+
+use Test::More tests => 3;
+
+BEGIN {
+ use_ok( 'Test::Chimps::Report' );
+}
+
+use Test::TAP::Model::Visual;
+
+my $r = Test::Chimps::Report->new();
+ok($r, "the report object is defined");
+isa_ok($r, 'Test::Chimps::Report', "and it's of the correct type");
Modified: Test-Chimps/trunk/t/10-server-basic.t
==============================================================================
--- Test-Chimps/trunk/t/10-server-basic.t (original)
+++ Test-Chimps/trunk/t/10-server-basic.t Wed Jul 12 16:24:21 2006
@@ -2,17 +2,17 @@
use Test::More tests => 3;
-if (-e 't/chimps-home/chimpsdb/database') {
- unlink qw(t/chimps-home/database);
+if (-e 't-data/chimps-home/chimpsdb/database') {
+ unlink qw(t-data/chimps-home/database);
}
BEGIN {
use_ok('Test::Chimps::Server');
}
-my $s = Test::Chimps::Server->new(base_dir => 't/chimps-home');
+my $s = Test::Chimps::Server->new(base_dir => 't-data/chimps-home');
ok($s, "the server object is defined");
isa_ok($s, 'Test::Chimps::Server', "and it's of the correct type");
-unlink qw(t/chimps-home/chimpsdb/database);
+unlink qw(t-data/chimps-home/chimpsdb/database);
Added: Test-Chimps/trunk/t/15-lister-basic.t
==============================================================================
--- (empty file)
+++ Test-Chimps/trunk/t/15-lister-basic.t Wed Jul 12 16:24:21 2006
@@ -0,0 +1,13 @@
+#!perl -T
+
+use Test::More tests => 3;
+
+BEGIN {
+ use_ok('Test::Chimps::Server::Lister');
+}
+
+my $s = Test::Chimps::Server::Lister->new(list_template => 'bogus',
+ max_reports_per_subcategory => 10);
+
+ok($s, "the server object is defined");
+isa_ok($s, 'Test::Chimps::Server::Lister', "and it's of the correct type");
Modified: Test-Chimps/trunk/t/boilerplate.t
==============================================================================
--- Test-Chimps/trunk/t/boilerplate.t (original)
+++ Test-Chimps/trunk/t/boilerplate.t Wed Jul 12 16:24:21 2006
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use Test::More tests => 5;
+use Test::More tests => 7;
sub not_in_file_ok {
my ($filename, %regex) = @_;
@@ -45,6 +45,9 @@
);
}
+module_boilerplate_ok('lib/Test/Chimps.pm');
module_boilerplate_ok('lib/Test/Chimps/Report.pm');
-module_boilerplate_ok('lib/Test/Chimps/Client.pm');
module_boilerplate_ok('lib/Test/Chimps/Server.pm');
+module_boilerplate_ok('lib/Test/Chimps/ReportCollection.pm');
+module_boilerplate_ok('lib/Test/Chimps/Server/Lister.pm')
+
More information about the Rt-commit
mailing list