Hello community, here is the log from the commit of package perl-Test-Base checked in at Thu Oct 26 20:28:44 CEST 2006. -------- --- perl-Test-Base/perl-Test-Base.changes 2006-01-25 21:39:58.000000000 +0100 +++ /mounts/work_src_done/STABLE/perl-Test-Base/perl-Test-Base.changes 2006-10-25 15:34:24.000000000 +0200 @@ -1,0 +2,29 @@ +Wed Oct 25 15:34:00 CEST 2006 - cwh@suse.de + +version: 0.52 +date: Mon Jun 19 10:44:53 PDT 2006 +changes: +- Add use_ok to exports + +version: 0.51 +date: Fri Jun 16 13:05:22 PDT 2006 +changes: +- Remove build-requires dep of Spiffy for Module::Install::TestBase +- Add in a patch from the good folk at Socialtext. + +version: 0.50 +date: Mon Jan 30 10:52:52 PST 2006 +changes: +- No change. 0.49 got borked on the way to CPAN + +version: 0.49 +date: Mon Jan 30 10:52:48 PST 2006 +changes: +- Added Module::Install::TestBase + +version: 0.48 +date: Sun Jan 29 10:19:46 PST 2006 +changes: +- Fixed test failures on windows + +------------------------------------------------------------------- Old: ---- Test-Base-0.47.tar.gz New: ---- Test-Base-0.52.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Base.spec ++++++ --- /var/tmp/diff_new_pack.03L48z/_old 2006-10-26 20:28:34.000000000 +0200 +++ /var/tmp/diff_new_pack.03L48z/_new 2006-10-26 20:28:34.000000000 +0200 @@ -1,24 +1,24 @@ # -# spec file for package perl-Test-Base (Version 0.47) +# spec file for package perl-Test-Base (Version 0.52) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://bugs.opensuse.org +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: perl-Test-Base -BuildRequires: perl-Spiffy +BuildRequires: perl-Spiffy >= 0.3 URL: http://search.cpan.org/~ingy/Test-Base License: Artistic License Group: Development/Languages/Perl -Requires: perl = %{perl_version} perl-Spiffy +Requires: perl = %{perl_version} perl-Spiffy >= 0.3 Autoreqprov: on Summary: Perl module for easily writing own test framework base classes. -Version: 0.47 +Version: 0.52 Release: 1 Source: Test-Base-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -55,19 +55,45 @@ %files %defattr(-,root,root) -%doc README ToDo Changes +%doc README Changes %dir %{perl_vendorlib}/Test %dir %{perl_vendorlib}/Test/Base %dir %{perl_vendorarch}/auto/Test %dir %{perl_vendorarch}/auto/Test/Base %doc %{_mandir}/man3/Test::Base.3pm.gz %doc %{_mandir}/man3/Test::Base::Filter.3pm.gz +%doc %{_mandir}/man3/Module::Install::TestBase.3pm.gz %{perl_vendorlib}/Test/Base.pm %{perl_vendorlib}/Test/Base/Filter.pm +%dir %{perl_vendorlib}/Module +%dir %{perl_vendorlib}/Module/Install +%{perl_vendorlib}/Module/Install/TestBase.pm %{perl_vendorarch}/auto/Test/Base/.packlist /var/adm/perl-modules/%{name} %changelog -n perl-Test-Base +* Wed Oct 25 2006 - cwh@suse.de + version: 0.52 + date: Mon Jun 19 10:44:53 PDT 2006 + changes: +- Add use_ok to exports + version: 0.51 + date: Fri Jun 16 13:05:22 PDT 2006 + changes: +- Remove build-requires dep of Spiffy for Module::Install::TestBase +- Add in a patch from the good folk at Socialtext. + version: 0.50 + date: Mon Jan 30 10:52:52 PST 2006 + changes: +- No change. 0.49 got borked on the way to CPAN + version: 0.49 + date: Mon Jan 30 10:52:48 PST 2006 + changes: +- Added Module::Install::TestBase + version: 0.48 + date: Sun Jan 29 10:19:46 PST 2006 + changes: +- Fixed test failures on windows * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Fri Jan 20 2006 - cwh@suse.de ++++++ Test-Base-0.47.tar.gz -> Test-Base-0.52.tar.gz ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/Changes new/Test-Base-0.52/Changes --- old/Test-Base-0.47/Changes 2006-01-19 20:03:23.000000000 +0100 +++ new/Test-Base-0.52/Changes 2006-06-19 19:46:15.000000000 +0200 @@ -1,4 +1,30 @@ --- +version: 0.52 +date: Mon Jun 19 10:44:53 PDT 2006 +changes: +- Add use_ok to exports +--- +version: 0.51 +date: Fri Jun 16 13:05:22 PDT 2006 +changes: +- Remove build-requires dep of Spiffy for Module::Install::TestBase +- Add in a patch from the good folk at Socialtext. +--- +version: 0.50 +date: Mon Jan 30 10:52:52 PST 2006 +changes: +- No change. 0.49 got borked on the way to CPAN +--- +version: 0.49 +date: Mon Jan 30 10:52:48 PST 2006 +changes: +- Added Module::Install::TestBase +--- +version: 0.48 +date: Sun Jan 29 10:19:46 PST 2006 +changes: +- Fixed test failures on windows +--- version: 0.47 date: Thu Jan 19 10:59:37 PST 2006 changes: diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/MANIFEST new/Test-Base-0.52/MANIFEST --- old/Test-Base-0.47/MANIFEST 2006-01-19 20:04:05.000000000 +0100 +++ new/Test-Base-0.52/MANIFEST 2006-06-16 22:08:18.000000000 +0200 @@ -7,6 +7,7 @@ inc/Module/Install/Metadata.pm inc/Module/Install/Win32.pm inc/Module/Install/WriteAll.pm +lib/Module/Install/TestBase.pm lib/Test/Base.pm lib/Test/Base/Filter.pm Makefile.PL @@ -123,4 +124,3 @@ t/xxx.t t/yaml.t t/zero-blocks.t -ToDo diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/META.yml new/Test-Base-0.52/META.yml --- old/Test-Base-0.47/META.yml 2006-01-14 14:33:45.000000000 +0100 +++ new/Test-Base-0.52/META.yml 2006-06-19 19:46:40.000000000 +0200 @@ -5,14 +5,12 @@ - t generated_by: Module::Install version 0.54 distribution_type: module -version: 0.45 +version: 0.52 name: Test-Base author: "Ingy d\xC3\xB6t Net <ingy@cpan.org>" license: perl requires: - Text::Diff: 0.35 Test::More: 0.62 perl: 5.6.1 - Spiffy: 0.24 - Algorithm::Diff: 1.15 + Spiffy: 0.30 abstract: A Data Driven Testing Framework diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/Makefile.PL new/Test-Base-0.52/Makefile.PL --- old/Test-Base-0.47/Makefile.PL 2006-01-19 20:00:51.000000000 +0100 +++ new/Test-Base-0.52/Makefile.PL 2006-04-07 04:25:02.000000000 +0200 @@ -4,7 +4,7 @@ all_from 'lib/Test/Base.pm'; requires perl => '5.6.1'; -requires Spiffy => '0.29'; +requires Spiffy => '0.30'; requires Test::More => '0.62'; clean_files 't/output'; diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/README new/Test-Base-0.52/README --- old/Test-Base-0.47/README 2006-01-10 06:03:36.000000000 +0100 +++ new/Test-Base-0.52/README 2006-04-07 04:25:02.000000000 +0200 @@ -25,11 +25,15 @@ plan tests => 1 * blocks; run_is input => 'expected'; + + sub local_filter { + s/my/your/; + } __END__ === Test one (the name of the test) - --- input my_filter + --- input my_filter local_filter my input lines @@ -561,8 +565,27 @@ The first line in "some_func" allows it to be called as either a function or a method in the test code. +DISTRIBUTION SUPPORT + You might be thinking that you do not want to use Test::Base in you + modules, because it adds an installation dependency. Fear not. + Module::Build takes care of that. + + Just write a Makefile.PL that looks something like this: + + use inc::Module::Install; + + name 'Foo'; + all_from 'lib/Foo.pm'; + + use_test_base; + + WriteAll; + + The line with "use_test_base" will automatically bundle all the code the + user needs to run Test::Base based tests. + OTHER COOL FEATURES - Test::Base automatically adds + Test::Base automatically adds: use strict; use warnings; diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/ToDo new/Test-Base-0.52/ToDo --- old/Test-Base-0.47/ToDo 2006-01-08 20:39:31.000000000 +0100 +++ new/Test-Base-0.52/ToDo 1970-01-01 01:00:00.000000000 +0100 @@ -1,10 +0,0 @@ -== 0.45 release - -- add no_diff -- allow multiple levels of module inheritance -- allow coment area after the description -- update module dependencies - - -== future release -- allow other markups (like perl) for data driven stuff diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/lib/Module/Install/TestBase.pm new/Test-Base-0.52/lib/Module/Install/TestBase.pm --- old/Test-Base-0.47/lib/Module/Install/TestBase.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Base-0.52/lib/Module/Install/TestBase.pm 2006-06-16 22:03:28.000000000 +0200 @@ -0,0 +1,67 @@ +package Module::Install::TestBase; +use strict; +use warnings; + +use Module::Install::Base; + +use vars qw($VERSION @ISA); +BEGIN { + $VERSION = '0.11'; + @ISA = 'Module::Install::Base'; +} + +sub use_test_base { + my $self = shift; + $self->include('Test::Base'); + $self->include('Test::Base::Filter'); + $self->include('Spiffy'); + $self->include('Test::More'); + $self->include('Test::Builder'); + $self->include('Test::Builder::Module'); +} + +1; + +=head1 NAME + +Module::Install::TestBase - Module::Install Support for Test::Base + +=head1 SYNOPSIS + + use inc::Module::Install; + + name 'Foo'; + all_from 'lib/Foo.pm'; + + use_test_base; + + WriteAll; + +=head1 DESCRIPTION + +This module adds the C<use_test_base> directive to Module::Install. + +Now you can get full Test-Base support for you module with no external +dependency on Test::Base. + +Just add this line to your Makefile.PL: + + use_test_base; + +That's it. Really. Now Test::Base is bundled into your module, so that +it is no longer any burden on the person installing your module. + +=head1 AUTHOR + +Ingy döt Net <ingy@cpan.org> + +=head1 COPYRIGHT + +Copyright (c) 2006. Ingy döt Net. All rights reserved. + +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + +See L<http://www.perl.com/perl/misc/Artistic.html> + +=cut diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/lib/Test/Base.pm new/Test-Base-0.52/lib/Test/Base.pm --- old/Test-Base-0.47/lib/Test/Base.pm 2006-01-19 19:55:34.000000000 +0100 +++ new/Test-Base-0.52/lib/Test/Base.pm 2006-06-19 19:44:43.000000000 +0200 @@ -2,9 +2,9 @@ # package Test::Base; use 5.006001; -use Spiffy 0.29 -Base; +use Spiffy 0.30 -Base; use Spiffy ':XXX'; -our $VERSION = '0.47'; +our $VERSION = '0.52'; my @test_more_exports; BEGIN { @@ -13,9 +13,11 @@ skip todo_skip pass fail eq_array eq_hash eq_set plan can_ok isa_ok diag + use_ok $TODO ); } + use Test::More import => \@test_more_exports; use Carp; @@ -75,11 +77,18 @@ # unless $default_class->isa($class); # } - if (@_ > 1 and not grep /^-base$/i, @_) { - my @args = @_; - shift @args; - Test::More->import(import => \@test_more_exports, @args); - } + unless (grep /^-base$/i, @_) { + my @args; + for (my $ii = 1; $ii <= $#_; ++$ii) { + if ($_[$ii] eq '-package') { + ++$ii; + } else { + push @args, $_[$ii]; + } + } + Test::More->import(import => \@test_more_exports, @args) + if @args; + } _strict_warnings(); goto &Spiffy::import; @@ -655,11 +664,15 @@ plan tests => 1 * blocks; run_is input => 'expected'; + + sub local_filter { + s/my/your/; + } __END__ === Test one (the name of the test) - --- input my_filter + --- input my_filter local_filter my input lines @@ -1230,9 +1243,29 @@ The first line in C<some_func> allows it to be called as either a function or a method in the test code. +=head1 DISTRIBUTION SUPPORT + +You might be thinking that you do not want to use Test::Base in you +modules, because it adds an installation dependency. Fear not. +Module::Build takes care of that. + +Just write a Makefile.PL that looks something like this: + + use inc::Module::Install; + + name 'Foo'; + all_from 'lib/Foo.pm'; + + use_test_base; + + WriteAll; + +The line with C<use_test_base> will automatically bundle all the code +the user needs to run Test::Base based tests. + =head1 OTHER COOL FEATURES -Test::Base automatically adds +Test::Base automatically adds: use strict; use warnings; diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/t/diff_is.t new/Test-Base-0.52/t/diff_is.t --- old/Test-Base-0.47/t/diff_is.t 2006-01-14 18:25:17.000000000 +0100 +++ new/Test-Base-0.52/t/diff_is.t 2006-04-07 04:25:02.000000000 +0200 @@ -1,6 +1,10 @@ use Test::Base tests => 3; SKIP: { + if ($^O eq 'MSWin32') { + skip 'Win32 doesn\'t have /tmp', 3; + } + unless (Test::Base->have_text_diff) { skip 'The autodiffing feature of Test::Base (which rocketh) requires Text-Diff-0.35 and Algorithm-Diff-1.15 (or greater).', 3; } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/t/export.t new/Test-Base-0.52/t/export.t --- old/Test-Base-0.47/t/export.t 2005-06-20 10:43:14.000000000 +0200 +++ new/Test-Base-0.52/t/export.t 2006-06-19 19:44:33.000000000 +0200 @@ -1,6 +1,6 @@ use Test::Base; -plan tests => 40; +plan tests => 41; ok(defined &plan); ok(defined &ok); @@ -20,6 +20,7 @@ ok(defined &can_ok); ok(defined &isa_ok); ok(defined &diag); +ok(defined &use_ok); ok(defined &blocks); ok(defined &next_block); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Test-Base-0.47/t/xxx.t new/Test-Base-0.52/t/xxx.t --- old/Test-Base-0.47/t/xxx.t 2005-06-20 11:48:04.000000000 +0200 +++ new/Test-Base-0.52/t/xxx.t 2006-04-07 04:25:02.000000000 +0200 @@ -7,7 +7,11 @@ my ($block) = blocks; eval { XXX($block->text) }; -is $@, $block->xxx, $block->name; + +my $error = "$@"; +$error =~ s/\\/\//g; + +is $error, $block->xxx, $block->name; __DATA__ === XXX Test ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@suse.de