[Bps-public-commit] Test-Chimps-Client branch, master, updated. afd941cd781e1659d09189a456d2a9b0813419b5
Ruslan Zakirov
ruz at bestpractical.com
Thu May 28 11:23:16 EDT 2009
The branch, master has been updated
via afd941cd781e1659d09189a456d2a9b0813419b5 (commit)
via f5997487e076a44bcd0b11ec8bd9ed2ac81edef3 (commit)
via 9b87268ef8d1c9813fc250b38e34a171ccf55008 (commit)
via 3c8f3519b70a98a70d31b23293134c84261dc2a6 (commit)
via fbea243c26959b4e71ad17979c51a0e6a929d596 (commit)
from d1d84d617d5b7df7cbdda8e4de01c4e4bb756417 (commit)
Summary of changes:
.gitignore | 8 +++
Changes | 2 +
MANIFEST | 42 +++++++++++++++-
README | 117 ---------------------------------------------
lib/Test/Chimps/Client.pm | 39 ++++++++++-----
5 files changed, 76 insertions(+), 132 deletions(-)
create mode 100644 .gitignore
delete mode 100644 README
- Log -----------------------------------------------------------------
commit fbea243c26959b4e71ad17979c51a0e6a929d596
Author: Ruslan Zakirov <Ruslan.Zakirov at gmail.com>
Date: Thu May 28 18:19:52 2009 +0400
* update manifest
diff --git a/MANIFEST b/MANIFEST
index d2e1e3f..649b414 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,28 +1,64 @@
bin/chimps-smoker.pl
Changes
examples/chimps-client.pl
+examples/pg_dbs_cleaner.pl
inc/Module/AutoInstall.pm
inc/Module/Install.pm
inc/Module/Install/AutoInstall.pm
inc/Module/Install/Base.pm
inc/Module/Install/Can.pm
+inc/Module/Install/ExtraTests.pm
inc/Module/Install/Fetch.pm
inc/Module/Install/Include.pm
inc/Module/Install/Makefile.pm
inc/Module/Install/Metadata.pm
+inc/Module/Install/ReadmeFromPod.pm
inc/Module/Install/Win32.pm
inc/Module/Install/WriteAll.pm
lib/Test/Chimps/Client.pm
lib/Test/Chimps/Smoker.pm
+lib/Test/Chimps/Smoker/Git.pm
+lib/Test/Chimps/Smoker/Source.pm
+lib/Test/Chimps/Smoker/SVN.pm
Makefile.PL
MANIFEST This list of files
META.yml
README
t-data/bogus-tests/00-basic.t
t-data/smoker-config.yml
-t/00-dependencies.t
t/05-client-basic.t
t/10-smoker-basic.t
t/boilerplate.t
-t/pod-coverage.t
-t/pod.t
+t/lib/Test/Chimps/TestServer.pm
+t/lib/Test/Chimps/TestSVN.pm
+t/lib/Test/Chimps/TestUtils.pm
+t/smoker/external_cleaner.t
+t/smoker/svn-basic.t
+Test-Chimps-Client-0.11/bin/chimps-smoker.pl
+Test-Chimps-Client-0.11/Changes
+Test-Chimps-Client-0.11/examples/chimps-client.pl
+Test-Chimps-Client-0.11/inc/Module/AutoInstall.pm
+Test-Chimps-Client-0.11/inc/Module/Install.pm
+Test-Chimps-Client-0.11/inc/Module/Install/AutoInstall.pm
+Test-Chimps-Client-0.11/inc/Module/Install/Base.pm
+Test-Chimps-Client-0.11/inc/Module/Install/Can.pm
+Test-Chimps-Client-0.11/inc/Module/Install/Fetch.pm
+Test-Chimps-Client-0.11/inc/Module/Install/Include.pm
+Test-Chimps-Client-0.11/inc/Module/Install/Makefile.pm
+Test-Chimps-Client-0.11/inc/Module/Install/Metadata.pm
+Test-Chimps-Client-0.11/inc/Module/Install/Win32.pm
+Test-Chimps-Client-0.11/inc/Module/Install/WriteAll.pm
+Test-Chimps-Client-0.11/lib/Test/Chimps/Client.pm
+Test-Chimps-Client-0.11/lib/Test/Chimps/Smoker.pm
+Test-Chimps-Client-0.11/Makefile.PL
+Test-Chimps-Client-0.11/MANIFEST
+Test-Chimps-Client-0.11/META.yml
+Test-Chimps-Client-0.11/README
+Test-Chimps-Client-0.11/t-data/bogus-tests/00-basic.t
+Test-Chimps-Client-0.11/t-data/smoker-config.yml
+Test-Chimps-Client-0.11/t/05-client-basic.t
+Test-Chimps-Client-0.11/t/10-smoker-basic.t
+Test-Chimps-Client-0.11/t/boilerplate.t
+xt/release/00-dependencies.t
+xt/release/pod-coverage.t
+xt/release/pod.t
commit 3c8f3519b70a98a70d31b23293134c84261dc2a6
Author: Ruslan Zakirov <Ruslan.Zakirov at gmail.com>
Date: Thu May 28 19:18:23 2009 +0400
* gitignore
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..aadd81e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*.bak
+*.old
+Makefile
+META.yml
+README
+blib/*
+inc
+pm_to_blib
commit 9b87268ef8d1c9813fc250b38e34a171ccf55008
Author: Ruslan Zakirov <Ruslan.Zakirov at gmail.com>
Date: Thu May 28 19:19:25 2009 +0400
* delete autogenerated README from the repo
diff --git a/README b/README
deleted file mode 100644
index 4c9fdf0..0000000
--- a/README
+++ /dev/null
@@ -1,117 +0,0 @@
-NAME
- Test::Chimps::Client - Send smoke test results to a server
-
-SYNOPSIS
- This module simplifies the process of sending smoke test results (in the
- form of "Test::TAP::Model"s) to a smoke server.
-
- use Test::Chimps::Client;
- use Test::TAP::Model::Visual;
-
- chdir "some/module/directory";
-
- my $model = Test::TAP::Model::Visual->new_with_tests(glob("t/*.t"));
-
- my $client = Test::Chimps::Client->new(
- server => 'http://www.example.com/cgi-bin/smoke-server.pl',
- model => $model
- );
-
- my ($status, $msg) = $client->send;
-
- if (! $status) {
- print "Error: $msg\n";
- exit(1);
- }
-
-INSTALLATION
- To install this module, run the following commands:
-
- perl Makefile.PL
- make
- make test
- make install
-
-DESCRIPTION
- Chimps is the Collaborative Heterogeneous Infinite Monkey
- Perfectionification Service. It is a framework for storing, viewing,
- generating, and uploading smoke reports.
-
- This distribution provides client-side modules and binaries for Chimps.
-
-METHODS
- new ARGS
- Creates a new Client object. ARGS is a hash whose valid keys are:
-
- * file
-
- Mandatory. The value must be a "Test::TAP::Model". These are the
- test results that will be submitted to the server.
-
- * report_variables
-
- Optional. A hashref of report variables and values to send to the
- server.
-
- * server
-
- Mandatory. The URI of the server script to upload the model to.
-
- send
- Submit the specified model to the server. This function's return value
- is a list, the first of which indicates success or failure, and the
- second of which is an error string.
-
-ACCESSORS
- There are read-only accessors for model, report_variables, and server.
-
-AUTHOR
- Zev Benjamin, "<zev at cpan.org>"
-
-BUGS
- Please report any bugs or feature requests to "bug-test-chimps at
- rt.cpan.org", or through the web interface at
- <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Chimps-Client>. I
- will be notified, and then you'll automatically be notified of progress
- on your bug as I make changes.
-
-SUPPORT
- You can find documentation for this module with the perldoc command.
-
- perldoc Test::Chimps::Client
-
- You can also look for information at:
-
- * Mailing list
-
- Chimps has a mailman mailing list at chimps at bestpractical.com. You
- can subscribe via the web interface at
- <http://lists.bestpractical.com/cgi-bin/mailman/listinfo/chimps>.
-
- * AnnoCPAN: Annotated CPAN documentation
-
- <http://annocpan.org/dist/Test-Chimps-Client>
-
- * CPAN Ratings
-
- <http://cpanratings.perl.org/d/Test-Chimps-Client>
-
- * RT: CPAN's request tracker
-
- <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Chimps-Client>
-
- * Search CPAN
-
- <http://search.cpan.org/dist/Test-Chimps-Client>
-
-ACKNOWLEDGEMENTS
- Some code in this module is based on smokeserv-client.pl from the Pugs
- distribution.
-
-COPYRIGHT & LICENSE
- Copyright 2006-2009 Best Practical Solutions. Portions copyright
- 2005-2006 the Pugs project.
-
- This program is free software; you can redistribute it and/or modify it
- under the same terms as Perl itself.
-
commit f5997487e076a44bcd0b11ec8bd9ed2ac81edef3
Author: Ruslan Zakirov <Ruslan.Zakirov at gmail.com>
Date: Thu May 28 19:20:37 2009 +0400
* update pod
diff --git a/lib/Test/Chimps/Client.pm b/lib/Test/Chimps/Client.pm
index e38c394..07a6b1e 100644
--- a/lib/Test/Chimps/Client.pm
+++ b/lib/Test/Chimps/Client.pm
@@ -22,24 +22,35 @@ Test::Chimps::Client - Send smoke test results to a server
This module simplifies the process of sending smoke test results
(in the form of C<Test::TAP::Model>s) to a smoke server.
- use Test::Chimps::Client;
- use Test::TAP::Model::Visual;
+ use File::Temp;
+ my $tmpfile = File::Temp->new( SUFFIX => ".tar.gz" );
+ use TAP::Harness::Archive;
chdir "some/module/directory";
+ my $harness = TAP::Harness::Archive->new( {
+ archive => $tmpfile,
+ extra_properties => {
+ project => 'my project',
+ revision => 'some revision',
+ committer => 'me',
+ osname => $Config{osname},
+ osvers => $Config{osvers},
+ archname => $Config{archname},
+ },
+ ....
+ } );
+ $harness->runtests(glob('t/*.t'));
- my $model = Test::TAP::Model::Visual->new_with_tests(glob("t/*.t"));
-
+ use Test::Chimps::Client;
my $client = Test::Chimps::Client->new(
- server => 'http://www.example.com/cgi-bin/smoke-server.pl',
- model => $model
+ archive => $tmpfile,
+ server => "http://...",
);
+ print "Sending smoke report for $server\n";
my ($status, $msg) = $client->send;
-
- if (! $status) {
- print "Error: $msg\n";
- exit(1);
- }
+ die "Error: the server responded: $msg\n"
+ unless $status;
=head1 INSTALLATION
@@ -187,6 +198,10 @@ L<chimps at bestpractical.com>. You can subscribe via the web
interface at
L<http://lists.bestpractical.com/cgi-bin/mailman/listinfo/chimps>.
+=item * Repository
+
+L<http://github.com/bestpractical/test-chimps-client>
+
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Test-Chimps-Client>
commit afd941cd781e1659d09189a456d2a9b0813419b5
Author: Ruslan Zakirov <Ruslan.Zakirov at gmail.com>
Date: Thu May 28 19:22:03 2009 +0400
* bump dev release
diff --git a/Changes b/Changes
index 1320501..a59e67b 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
Revision history for Test-Chimps-Client
0.12
+ * some changes are not backward compatible
+ * switched to TAP::Harness::Archive
* git support
* suport for one checkout/clone per smoking session
to save bandwith
diff --git a/lib/Test/Chimps/Client.pm b/lib/Test/Chimps/Client.pm
index 07a6b1e..c540902 100644
--- a/lib/Test/Chimps/Client.pm
+++ b/lib/Test/Chimps/Client.pm
@@ -4,7 +4,7 @@ use 5.008;
use warnings;
use strict;
-our $VERSION = '0.11';
+our $VERSION = '0.11_01';
use Carp;
use Params::Validate qw/:all/;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list