[license-reconcile] 01/01: testing against Software::License
Nicholas Bamber
periapt at moszumanska.debian.org
Wed Nov 25 16:27:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
periapt pushed a commit to branch master
in repository license-reconcile.
commit c2b899ab3a16f5c53f58bca0f0a630be8dedb055
Author: Nicholas Bamber <nicholas at periapt.co.uk>
Date: Wed Nov 25 16:26:32 2015 +0000
testing against Software::License
---
t/08-licensecheck.t | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/t/08-licensecheck.t b/t/08-licensecheck.t
index b3e15c9..76d63f4 100644
--- a/t/08-licensecheck.t
+++ b/t/08-licensecheck.t
@@ -62,6 +62,7 @@ foreach my $license (@LICENSES) {
Readonly my $LICENSECHECK => Debian::LicenseReconcile::LicenseCheck->new(
$dir->dirname,
[
+ # Want to test that we can map if we need to.
'Apache (v2.0)'=>'test1',
'BSD (2 clause)'=>'test2',
'GPL (v1)'=>'test3',
@@ -70,6 +71,10 @@ Readonly my $LICENSECHECK => Debian::LicenseReconcile::LicenseCheck->new(
'LGPL (v2)'=>'test6',
'LGPL (v2.1)'=>'test7',
'LGPL (v3)'=>'test8',
+ 'MIT/X11 (BSD like)'=>'test9',
+ 'MPL (v2.0)'=>'test10',
+ 'QPL'=>'test11',
+ 'zlib/libpng'=>'test12',
],
1
);
@@ -120,22 +125,22 @@ cmp_deeply(\@data, bag(
},
{
file=>'MIT',
- license=>ignore(),
+ license=>'test9',
copyright=>['Copyright: 2008 by Testophilus Testownik <tester at testity.org>'],
},
{
- file=>ignore(),
- license=>ignore(),
+ file=>'Mozilla_2_0',
+ license=>'test10',
copyright=>['Copyright: 2009 by Testophilus Testownik <tester at testity.org>'],
},
{
- file=>ignore(),
- license=>ignore(),
+ file=>'QPL_1_0',
+ license=>'test11',
copyright=>['Copyright: 2010 by Testophilus Testownik <tester at testity.org>'],
},
{
- file=>ignore(),
- license=>ignore(),
+ file=>'Zlib',
+ license=>'test12',
copyright=>['Copyright: 2011 by Testophilus Testownik <tester at testity.org>'],
},
));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/license-reconcile.git
More information about the Pkg-perl-cvs-commits
mailing list