r11227 - in /trunk/libtest-distribution-perl: Build.PL Changes Changes.pod MANIFEST META.yml README SIGNATURE debian/changelog lib/Test/Distribution.pm t/02extra.t t/08only_podcover.t t/08sig.t t/09only_podcover.t

hanska-guest at users.alioth.debian.org hanska-guest at users.alioth.debian.org
Sun Dec 16 14:48:06 UTC 2007


Author: hanska-guest
Date: Sun Dec 16 14:48:06 2007
New Revision: 11227

URL: http://svn.debian.org/wsvn/?sc=1&rev=11227
Log:
* New upstream release

Added:
    trunk/libtest-distribution-perl/Changes.pod
    trunk/libtest-distribution-perl/t/08only_podcover.t
Removed:
    trunk/libtest-distribution-perl/Changes
    trunk/libtest-distribution-perl/SIGNATURE
    trunk/libtest-distribution-perl/t/08sig.t
    trunk/libtest-distribution-perl/t/09only_podcover.t
Modified:
    trunk/libtest-distribution-perl/Build.PL
    trunk/libtest-distribution-perl/MANIFEST
    trunk/libtest-distribution-perl/META.yml
    trunk/libtest-distribution-perl/README
    trunk/libtest-distribution-perl/debian/changelog
    trunk/libtest-distribution-perl/lib/Test/Distribution.pm
    trunk/libtest-distribution-perl/t/02extra.t

Modified: trunk/libtest-distribution-perl/Build.PL
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/Build.PL?rev=11227&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/Build.PL (original)
+++ trunk/libtest-distribution-perl/Build.PL Sun Dec 16 14:48:06 2007
@@ -1,19 +1,17 @@
 use Module::Build;
 
 Module::Build->new(
-		   license       => 'perl',
-		   module_name   => 'Test::Distribution',
-		   requires      => {
-				     'ExtUtils::Manifest' => 1.43,
-				     'File::Find::Rule'   => 0.03,
-				     'Module::CoreList'   => 1.93,
-				     'Module::Signature'  => 0,
-				     'Test::More'         => 0.45,
-				     'Test::Pod'          => 0.95,
-						 'Test::Pod::Coverage'=> 0,
-             'Pod::Coverage'      => 0.17, # Test::Pod::Coverage features that I use need a not very old version of Pod::Coverage. This or 0.15 may be the minimum required.
-				    },
-		   create_readme => 1,
-		   sign          => 1,
-       add_to_cleanup      => [ 'Test-Distribution-*' ],
-		  )->create_build_script;
+    license       => 'perl',
+    module_name   => 'Test::Distribution',
+    requires      => {
+        'ExtUtils::Manifest' => 1.43,
+        'File::Find::Rule'   => 0.03,
+        'Module::CoreList'   => 1.93,
+        'Test::More'         => 0.45,
+        'Test::Pod'          => 0.95,
+        'Test::Pod::Coverage'=> 0,
+        'Pod::Coverage'      => 0.17, # Test::Pod::Coverage features that I use need a not very old version of Pod::Coverage. This or 0.15 may be the minimum required.
+    },
+    create_readme => 1,
+    add_to_cleanup       => [ '*.tar.gz', 'Build', '_build' ],
+)->create_build_script;

Added: trunk/libtest-distribution-perl/Changes.pod
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/Changes.pod?rev=11227&op=file
==============================================================================
--- trunk/libtest-distribution-perl/Changes.pod (added)
+++ trunk/libtest-distribution-perl/Changes.pod Sun Dec 16 14:48:06 2007
@@ -1,0 +1,323 @@
+=head1 Revision history for Test::Distribution.
+
+=head2 2.00 (svn rev 29)
+
+=over *
+
+=item SIGNATURE support - back but optional. What i should have done in the first place! Sorry guys!
+
+=item Fixed Changes.pod layout
+
+=back
+
+=head2 1.29 (svn rev 19) - REMOVED FROM CPAN
+
+=over *
+
+=item Removed SIGNATURE support - the sig fad has gone away, there have been issues with checking sigs on non-windows platforms
+
+=back
+
+=head2 1.28 (svn rev 10)
+
+=over *
+
+=item Support distribtions such as httpd_ctl which have no blib/lib dir
+
+=back
+
+=head2 1.27 (svn rev 4)
+
+=over *
+
+=item Documented source availability on sourceforge
+
+=item Changes now in a pod file
+
+=back
+
+=head2 1.26
+
+=over *
+
+=item  Stoped using 'our' as this is not supported by Perl pre 5.6.x
+
+=item  Changes.pod or ChangeLog.pod also allowed. (Thanks to Nik Clayton for the suggestion)
+
+=item  Search for .pm files in blib/lib not lib
+
+=item  Build.PL explitly requires a version of Pod::Coverage as Test::Pod::Coverage doesn't and it needs it (at least for the features I'm using). Thanks to Jim Keenan for pointing this out.
+
+=back 
+
+=head2 1.25
+
+=over * 
+
+=item  Removed Makefile.PL - everyone knows what Module::Build is these days
+
+=back
+
+=head2 1.24
+
+=over *
+
+=item  Removed message asking users not to log bugs to rt.cpan.org as I do now seem to finally own the bugs queue for this module
+
+=back
+
+=head2 1.23
+
+=over *
+
+
+=item  Stop using the MANIFEST list to find .pm files, just search under lib instead. This prevents T::D from trying to use modules not for install (e.g. under t/lib) and using them incorrectly!  Let me know if you'd like more flexiblity (e.g. to override the search directory, and if you need to specify multiple search roots). There is a dir option but it's not public/documented because I think I need to do a thorough code review to make sure it works properly. As I say, let me know if you want/need this flexibility and I shall add it to a future release.
+
+=back
+
+=head2 1.22
+
+=over *
+
+=item  .xpm files are no longer matched as modules
+
+=back
+
+=head2 1.21
+
+=over *
+
+
+=item  Try to fix one of the windows build errors that some users see by using Module::Signature directly instead of Test::Signature. Specifically the use of the CANNOT_VERIFY method - as it seems one can have Module::Signature installed without having the software which can actually do the verification installed.
+
+=back
+
+=head2 1.20
+
+=over *
+
+=item Minor documentation updates
+
+=back
+
+=head2 1.19
+
+=over *
+
+=item Added Test::Pod::Coverage support
+
+=back
+
+=head2 1.18
+
+=over *
+
+=item Now accept file ChangeLog as an alternative to Changes
+
+=item Minor bug fix
+
+Thanks to Steffen Schwigon for both of these changes.
+
+=back
+
+=head2 1.17
+
+=over *
+
+
+=item  Added the distversion option so that people can check whether $VERSION matches the distribution version. This used to be a mandatory check but was removed in 1.14.
+
+=back
+
+=head2 1.16
+
+=over *
+
+
+=item  Minimum version of ExtUtils::Manifest required is 1.43.  Passthrough Makefile.PL is now generated by Module::Build and so is up to date and now explicitly sets the build_class.  Thanks to Gabor Szabo for reporting these bugs in Test-Distribution v1.15
+	  
+=back
+
+=head2 1.15
+
+=over *
+
+
+=item  Test::Distribution now uses the MANIFEST to find modules to test.
+
+It falls back to doing a find for *.pm if no MANIFEST exists.  (thanks to
+Paul Hughes aka Barbie and Steffen Müller for suggesting this)
+
+=item  Added manifest test.
+
+thanks to patch from Jonas B.Nielsen
+
+=back
+
+=head2 1.14
+
+=over *
+
+
+=item  Versions test  now less  restrictive.
+
+It only  requires each package defined a version. The  version does not need to be the same as the distribution version. It just needs to exist This caters for the quite valid style of using cvs versions in individual files. Perl does not requrie all files in a dist to have the same $VERSION. However if you think that checking against the dist version would be a useful check for your personal style, let me know and i'll  add that check back in as an optional switch.  (thanks to Paul Hughes aka Barbie for the spot)
+
+=back
+
+=head2 1.13
+
+=over *
+
+=item  Simple update of TODO which i should have done in 1.12
+
+=back
+
+=head2 1.12
+
+=over *
+
+
+=item  prereq tests are now skipped if a Build.PL is found.
+
+Stop gap measure till Test::Prereq has been patched.  (thanks to Paul Hughes aka Barbie)
+
+=back
+
+=head2 1.11
+
+=over *
+
+
+=item  Removed Test::Prereq as a prerequisite as i'm not actually using it yet
+
+=item  02extra.t is more friendly on non-Unix style platforms 
+
+Thanks to Paul Hughes aka Barbie
+
+=back
+
+=head2 1.10
+
+=over *
+
+=item  Updated TODO
+
+=back
+
+=head2 1.09
+
+=over *
+
+=item  Added missing Test::Signature to requires hash in Build.PL
+
+=item  Added missing SKIP block to Test::Distribution::sig::run_tests
+
+=back
+
+=head2 1.08
+
+=over *
+
+=item  Updated example of 01distribution.t with code that doesn't cause testing of the module to fail if user does not have Test::Distribtion installed.
+          
+This is good because it means module authors who do not want to force their users to install Test::Distribution and all of its dependencies do not have to
+
+=item  Added support for sig testing via Test::Signature
+
+=back
+
+=head2 1.07
+
+=over *
+
+=item  Minor POD Updates
+
+=item  Description  tests now allow  no  Makefile.PL if you have a Build.PL.
+    
+However    this   does  not  mean   Module::Build
+support.  You  still  need   a  Makefile.PL to  prevent  the
+PREREQ_PM tests     failing. Module::Build    support   will
+hopefully follow in a future version.
+
+=back
+
+=head2 1.06
+
+=over *
+
+=item  New Maintainer/Owner: Sagar R. Shah
+
+=item  Moved from ExtUtils::MakeMaker to Module::Build for building
+
+=item  Tests are now run in a specific order (stops Test::Distribution trying to evaluate $VERSION before doing a use)
+
+=item  All non-core use()d modules test now has a proper test name
+
+=item  Thanks to David A Golden for the patch
+
+=back
+
+=head2 1.05
+
+=over *
+
+=item  Testing PREREQ_PM relies on Module::CoreList which, even at the current version, doesn't know about perl 5.8.1 yet.  So in the meantime, I've added a simple check to skip PREREQ_PM testing if $Module::CoreList::version{ $] } doesn't exist (thanks Randal L. Schwartz and Richard Clamp).
+
+=item  Testing PREREQ_PM now outputs an easy-to-understand error message if necessary. Previously I just used Test::More's is(), which didn't say what the test was about, just that two strings didn't match.
+
+=back
+
+=head2 1.04
+
+=over *
+
+=item  Changed to use Test::Pod 0.95 and pod_file_ok function instead of pod_ok to prevent deprecation warnings (thanks Sagar Shah)
+
+=back
+
+=head2 1.03
+
+=over *
+
+-
+
+=item  added a named argument 'not' to ask not to do certain types of tests
+
+=item  added test type 'prereq' that checks whether all non-provided non-core use()d files are in Makefile.PL's PREREQ_PM
+
+=item  added test type 'description' that checks whether Changes, README, MANIFEST and Makefile.PL exist
+
+=item  added checking for required modules with eval{} so we can skip tests if necessary (thanks petdance)
+
+=item  changed munging of file and directory names from regexes to use File::Spec, to be portable
+
+=back
+
+=head2 1.02
+
+=over *
+
+=item  changed the name to Test::Distribution as per Andy Lester's suggestion and updated docs.
+
+=back
+
+=head2 1.01
+
+=over *
+
+=item  added named arguments ('tests', 'only') and reflection subs (packages(), files(), num_tests()), and docs for the same.
+
+=back
+
+=head2 1.00
+
+=over *
+
+=item  ideas by Andy Lester and brian d foy (see http://use.perl.org/~brian_d_foy/journal/7463)
+
+=item  original version; created by h2xs 1.22 with options
+
+=item XAn Test::Comprehensive
+
+=back

Modified: trunk/libtest-distribution-perl/MANIFEST
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/MANIFEST?rev=11227&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/MANIFEST (original)
+++ trunk/libtest-distribution-perl/MANIFEST Sun Dec 16 14:48:06 2007
@@ -1,5 +1,5 @@
 Build.PL
-Changes
+Changes.pod
 lib/Test/Distribution.pm
 MANIFEST			This list of files
 META.yml
@@ -11,6 +11,4 @@
 t/05only_pod_use_extra.t
 t/06only_pod_versions_extra.t
 t/07prereq.t
-t/08sig.t
-t/09only_podcover.t
-SIGNATURE    Added here by Module::Build
+t/08only_podcover.t

Modified: trunk/libtest-distribution-perl/META.yml
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/META.yml?rev=11227&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/META.yml (original)
+++ trunk/libtest-distribution-perl/META.yml Sun Dec 16 14:48:06 2007
@@ -1,6 +1,6 @@
 ---
 name: Test-Distribution
-version: 1.26
+version: 2.00
 author:
   - 'Marcel GrE<uuml>nauer <marcel at cpan.org>'
 abstract: perform tests on all modules of a distribution
@@ -11,7 +11,6 @@
   ExtUtils::Manifest: 1.43
   File::Find::Rule: 0.03
   Module::CoreList: 1.93
-  Module::Signature: 0
   Pod::Coverage: 0.17
   Test::More: 0.45
   Test::Pod: 0.95
@@ -19,7 +18,7 @@
 provides:
   Test::Distribution:
     file: lib/Test/Distribution.pm
-    version: 1.26
+    version: 2.00
   Test::Distribution::base:
     file: lib/Test/Distribution.pm
   Test::Distribution::description:
@@ -40,7 +39,7 @@
     file: lib/Test/Distribution.pm
   Test::Distribution::versions:
     file: lib/Test/Distribution.pm
-generated_by: Module::Build version 0.28
+generated_by: Module::Build version 0.2808
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.2.html
   version: 1.2

Modified: trunk/libtest-distribution-perl/README
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/README?rev=11227&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/README (original)
+++ trunk/libtest-distribution-perl/README Sun Dec 16 14:48:06 2007
@@ -36,6 +36,13 @@
     recommended that you just create a one-line test script as shown in the
     SYNOPSIS above. However, there are options...
 
+    NOTE If you do not specify any options Test::Distribution will run all
+    test types except signature testing which must always be explicitly
+    switched on.
+
+    In the future I may change the default to run no tests at all as this
+    sounds safer. Mail me if you disagree.
+
 OPTIONS
     On the line in which you "use()" this module, you can specify named
     arguments that influence the testing behavior.
@@ -52,6 +59,9 @@
         It is important that you don't specify a "tests" argument when using
         "Test::More" or other test modules as the plan is handled by
         "Test::Distribution".
+
+        DEPRECATED FEATURE. I plan to remove this in the future unless I'm
+        contacted by someone that says they find this useful.
 
     "only => STRING|LIST"
         Specifies that only certain sets of tests are to be run. Possible
@@ -203,6 +213,12 @@
     To report a bug or request an enhancement use CPAN's excellent Request
     Tracker.
 
+SOURCE AVAILABILITY
+    This source is part of a SourceForge project which always has the latest
+    sources in svn.
+
+    http://sourceforge.net/projects/sagar-r-shah/
+
 AUTHORS
     Marcel Grünauer <marcel at cpan.org>
 
@@ -216,9 +232,9 @@
 COPYRIGHT & LICENSE
     Copyright 2002-2003 Marcel Grünauer. All rights reserved.
 
-    Copyright 2003-2005, Sagar R. Shah, All rights reserved.
-
-    This library is free software; you can redistribute it and/or modify it
+    Copyright 2003-2007, Sagar R. Shah, All rights reserved.
+
+    This program is free software; you can redistribute it and/or modify it
     under the same terms as Perl itself.
 
 SEE ALSO

Modified: trunk/libtest-distribution-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/debian/changelog?rev=11227&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/debian/changelog (original)
+++ trunk/libtest-distribution-perl/debian/changelog Sun Dec 16 14:48:06 2007
@@ -1,10 +1,14 @@
-libtest-distribution-perl (1.26-2) UNRELEASED; urgency=low
+libtest-distribution-perl (2.00-1) UNRELEASED; urgency=low
 
+  [ Damyan Ivanov ]
   * NEEDS WORK - Maintainer, watch, etc
   * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
     field (source stanza); Homepage field (source stanza).
 
- -- Damyan Ivanov <dmn at debian.org>  Fri, 07 Dec 2007 13:54:52 +0200
+  [ David Paleino ]
+  * New upstream release
+
+ -- David Paleino <d.paleino at gmail.com>  Sun, 16 Dec 2007 15:47:13 +0100
 
 libtest-distribution-perl (1.26-1) unstable; urgency=low
 

Modified: trunk/libtest-distribution-perl/lib/Test/Distribution.pm
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/lib/Test/Distribution.pm?rev=11227&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/lib/Test/Distribution.pm (original)
+++ trunk/libtest-distribution-perl/lib/Test/Distribution.pm Sun Dec 16 14:48:06 2007
@@ -2,7 +2,7 @@
 
 # pragmata
 use strict;
-use vars qw($VERSION @types);
+use vars qw($VERSION @default_types @supported_types);
 use warnings;
 
 # perl modules
@@ -10,9 +10,10 @@
 use Test::More;
 
 
-$VERSION = '1.26';
-
- at types = qw/manifest sig use versions prereq pod description podcover/;
+$VERSION = '2.00';
+
+ at default_types = qw/manifest use versions prereq pod description podcover/;
+ at supported_types = qw/manifest use versions prereq pod description podcover sig/;
 
 my @error;
 for (qw/File::Spec File::Basename File::Find::Rule/) {
@@ -40,8 +41,8 @@
 	my $pkg = shift;
 	my %args = @_;
 
-	our @types;
-	$args{only} ||= \@types;
+	use vars qw(@default_types);
+	$args{only} ||= \@default_types;
 	$args{only} = [ $args{only} ] unless ref $args{only} eq 'ARRAY';
 
 	$args{not} ||= [];
@@ -63,7 +64,7 @@
 	my $args = shift;
 	my %args = %$args;
 
-	our @files = File::Find::Rule->file()->name('*.pm')->in($args{dir});
+	our @files = -d $args{dir} ? File::Find::Rule->file()->name('*.pm')->in($args{dir}) : ();
 
 	our @packages = map {
 	    # $_ is like 'blib/lib/Foo/Bar/Baz.pm',
@@ -91,7 +92,7 @@
 	our $tests = $args{tests};
 	for my $type (keys %perform) {
 		die "no such test type: $type\n"
-		    unless grep /^$type$/ => our @types;
+		    unless grep /^$type$/ => our @supported_types;
 
 		my $pkg = __PACKAGE__ . '::' . $type;
 		$testers{$type} = $pkg->new(
@@ -105,7 +106,7 @@
 
 	plan tests => $tests;
 
-	for my $type (@types) {
+	for my $type (@supported_types) {
 		$testers{$type}->run_tests($args) if $perform{$type};
 	}
 }
@@ -330,7 +331,6 @@
 	my $self = shift;
 }
 
-
 package Test::Distribution::sig;
 use Test::More;
 our @ISA = 'Test::Distribution::base';
@@ -356,8 +356,6 @@
     cmp_ok $ret, '==', Module::Signature::SIGNATURE_OK(), "Valid signature";
 	}
 } }
-
-
 1;
 
 __END__
@@ -392,16 +390,22 @@
 in your distribution, checks their POD, checks that they compile ok and
 checks that they all define a  $VERSION.
 
-This module also performs a numer of test on  the distribution itself. It checks
-that your files match your  SIGNATURE file if you  have one. It checks that your
-distribution  isn't missing certain 'core'  description files.  It checks to see
-you havent' missed out listing any pre-requisites in Makefile.PL.
+This module also performs a numer of test on  the distribution itself. It
+checks that your files match your  SIGNATURE file if you  have one. It checks
+that your distribution  isn't missing certain 'core'  description files.  It
+checks to see you havent' missed out listing any pre-requisites in Makefile.PL.
 
 It defines its own testing plan, so you usually don't use it in
 conjunction with other C<Test::*> modules in the same file. It's
 recommended that you just create a one-line test script as shown in the
 SYNOPSIS above. However, there are options...
 
+B<NOTE> If you do not specify any options Test::Distribution will run all test
+types B<except> signature testing which must always be explicitly switched on.
+
+In the future I may change the default to run no tests at all as this sounds
+safer. Mail me if you disagree.
+
 =head1 OPTIONS
 
 On the line in which you C<use()> this module, you can specify named
@@ -422,6 +426,9 @@
 It is important that you don't specify a C<tests> argument when
 using C<Test::More> or other test modules as the plan is handled by
 C<Test::Distribution>.
+
+DEPRECATED FEATURE. I plan to remove this in the future unless I'm contacted by
+someone that says they find this useful.
 
 =item C<only =E<gt> STRING|LIST>
 
@@ -620,6 +627,13 @@
 To report a bug  or request an enhancement use CPAN's  excellent Request
 Tracker. 
 
+=head1 SOURCE AVAILABILITY
+
+This source is part of a SourceForge project which always has the
+latest sources in svn.
+
+http://sourceforge.net/projects/sagar-r-shah/
+
 =head1 AUTHORS
 
 Marcel GrE<uuml>nauer <marcel at cpan.org>
@@ -636,10 +650,10 @@
 
 Copyright 2002-2003 Marcel GrE<uuml>nauer. All rights reserved.
 
-Copyright 2003-2005, Sagar R. Shah, All rights reserved.
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
+Copyright 2003-2007, Sagar R. Shah, All rights reserved.
+
+This program  is free software; you can  redistribute it  and/or modify it under
+the same terms as Perl itself.
 
 =head1 SEE ALSO
 

Modified: trunk/libtest-distribution-perl/t/02extra.t
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/t/02extra.t?rev=11227&op=diff
==============================================================================
--- trunk/libtest-distribution-perl/t/02extra.t (original)
+++ trunk/libtest-distribution-perl/t/02extra.t Sun Dec 16 14:48:06 2007
@@ -4,7 +4,6 @@
 
 # 4 descriptions + 4 * (1 module) + 4 extra + 1 prereq + 1 manifest
 my $number_of_tests = 14;
-$number_of_tests++ if(-f 'SIGNATURE');
 
 is(Test::Distribution::num_tests(), $number_of_tests, 'number of tests');
 

Added: trunk/libtest-distribution-perl/t/08only_podcover.t
URL: http://svn.debian.org/wsvn/trunk/libtest-distribution-perl/t/08only_podcover.t?rev=11227&op=file
==============================================================================
--- trunk/libtest-distribution-perl/t/08only_podcover.t (added)
+++ trunk/libtest-distribution-perl/t/08only_podcover.t Sun Dec 16 14:48:06 2007
@@ -1,0 +1,7 @@
+use Test::Distribution
+    tests => 1,
+    only  => 'podcover',
+		podcoveropts => {trustme => [qr/run_tests/]};
+use Test::More;
+
+is(Test::Distribution::num_tests(), 2 , 'number of tests');




More information about the Pkg-perl-cvs-commits mailing list