[SCM] Debian packaging of libsoftware-license-perl branch, master, updated. debian/0.103004-1-11-gce4037d

Dominique Dumont dod at debian.org
Fri Mar 23 16:55:05 UTC 2012


The following commit has been merged in the master branch:
commit ce4037dda7c58b289877a92c669914593500b9a8
Author: Dominique Dumont <dod at debian.org>
Date:   Fri Mar 23 17:37:52 2012 +0100

    improved summary test for lgpl-2

diff --git a/debian/patches/summary_test b/debian/patches/summary_test
index 4bc366e..f1a3673 100644
--- a/debian/patches/summary_test
+++ b/debian/patches/summary_test
@@ -1,13 +1,14 @@
 Description: new test for summary feature
 --- /dev/null
 +++ b/t/summary.t
-@@ -0,0 +1,15 @@
+@@ -0,0 +1,32 @@
 +#!perl
 +use strict;
 +use warnings;
 +
-+use Test::More tests => 5;
++use Test::More tests => 11;
 +
++{
 +my $class = 'Software::License::GPL_1_plus';
 +require_ok($class);
 +
@@ -17,3 +18,19 @@ Description: new test for summary feature
 +like($license->fulltext, qr/general public/i, 'license text');
 +like($license->summary, qr/later version/i, 'summary text');
 +like($license->summary, qr/common-licenses/i, 'common-licenses found');
++}
++
++# try LGP2 license
++{
++my $class = 'Software::License';
++require_ok($class);
++
++my $license = $class->new({ short_name => 'LGPL-2', holder => 'X. Ample' });
++
++is($license->holder, 'X. Ample', '(c) holder');
++isa_ok($license,'Software::License::LGPL_2',"license class");
++like($license->summary, qr/common-licenses/i, 'common-licenses found');
++like($license->name, qr/version 2/i, "license name");
++like($license->fulltext, qr/library/i, 'license text');
++
++}

-- 
Debian packaging of libsoftware-license-perl



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