[libconfig-model-dpkg-perl] 04/04: fix scanner tests

dod at debian.org dod at debian.org
Fri Feb 12 18:25:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 77f7e29c78e6399fce790bc54c60316858f32773
Author: Dominique Dumont <dod at debian.org>
Date:   Fri Feb 12 19:25:00 2016 +0100

    fix scanner tests
---
 t/scanner/examples/moarvm.out      | 16 ++++++-------
 t/scanner/examples/open-nebula.out | 35 ++++++++++++++++++++---------
 t/scanner/examples/pan.out         |  4 ----
 t/scanner/examples/rakudo-star.out | 46 ++++++--------------------------------
 t/scanner/squash_copyright_years.t |  5 ++++-
 t/scanner/squash_files.t           | 14 ++++++------
 6 files changed, 50 insertions(+), 70 deletions(-)

diff --git a/t/scanner/examples/moarvm.out b/t/scanner/examples/moarvm.out
index 7bf9087..061d32d 100644
--- a/t/scanner/examples/moarvm.out
+++ b/t/scanner/examples/moarvm.out
@@ -1,4 +1,4 @@
-Files: *
+Files: 3rdparty/dynasm/*
 Copyright: 2005-2014, Mike Pall.
 License: UNKNOWN
 
@@ -48,9 +48,9 @@ Files: 3rdparty/dyncall/test/plain/test_structs.c
 Copyright: 2007-2011, Olivier Chafik <olivier.chafik at gmail.com>
 License: ISC
 
-Files: 3rdparty/libatomic_ops/*
-Copyright: the software, and / 1989, 1991 Free Software Foundation, Inc
-License: UNKNOWN
+Files: 3rdparty/dyncall/test/resolve_self/main.c
+Copyright: 2007-2015, Daniel Adler <dadler at uni-goettingen.de>
+License: ISC
 
 Files: 3rdparty/libatomic_ops/src/*
 Copyright: 2003-2011, Hewlett-Packard Development Company, L.P
@@ -194,9 +194,9 @@ Files: 3rdparty/msinttypes/*
 Copyright: 2006-2013, Alexander Chemeris
 License: BSD-3-clause
 
-Files: 3rdparty/tinymt/*
-Copyright: 2011, 2013, Mutsuo Saito, Makoto Matsumoto
-License: BSD-3-clause
+Files: 3rdparty/sha1/*
+Copyright: no-info-found
+License: public-domain
 
 Files: 3rdparty/tinymt/tinymt64.c
 Copyright: 2011, Mutsuo Saito, Makoto Matsumoto
@@ -206,7 +206,7 @@ Files: 3rdparty/uthash.h
 Copyright: 2003-2014, Troy D. Hanson http://troydhanson.github.com/uthash
 License: BSD-2-clause
 
-Files: src/*
+Files: src/gc/*
 Copyright: >= (char *)tc->nursery_fromspace && \ / < (char *)tc->nursery_fromspace + MVM_NURSERY_SIZE) \
 License: UNKNOWN
 
diff --git a/t/scanner/examples/open-nebula.out b/t/scanner/examples/open-nebula.out
index 26824c6..2bd2533 100644
--- a/t/scanner/examples/open-nebula.out
+++ b/t/scanner/examples/open-nebula.out
@@ -6,13 +6,17 @@ Files: NOTICE
 Copyright: 2002-2015, OpenNebula Project, OpenNebula Systems (formerly C12G Labs)
 License: Apache-2.0
 
-Files: debian/*
+Files: debian/manpages/*
 Copyright: 2002-2011, Distributed Systems Architecture Group, Universidad
 License: UNKNOWN
 
-Files: share/vendor/*
-Copyright: 2010, 2011, VMware, Inc.
-License: Expat
+Files: share/doc/xsd/test.sh
+Copyright: 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
+License: Apache-2.0
+
+Files: share/pkgs/*
+Copyright: no-info-found
+License: Apache-2.0
 
 Files: share/vendor/ruby/gems/rbvmomi/lib/*
 Copyright: 2010-2012, VMware, Inc.
@@ -75,7 +79,7 @@ Files: src/mad/utils/*
 Copyright: 2010-2015, C12G Labs S.L
 License: Apache-2.0
 
-Files: src/oca/java/lib/*
+Files: src/oca/java/lib/NOTICE.txt
 Copyright: 1999-2009, The Apache Software Foundation
 License: UNKNOWN
 
@@ -96,22 +100,31 @@ Files: src/sunstone/models/SunstoneMarketplace.rb
 Copyright: 2010-2015, C12G Labs S.L
 License: Apache-2.0
 
-Files: src/sunstone/public/css/novnc-custom.css
+Files: src/sunstone/public/SConstruct
+Copyright: 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
+License: Apache-2.0
+
+Files: src/sunstone/public/css/*
 Copyright: 2013, Samuel Mannehed for Cendio AB
  2012, Joel Martin
 License: UNKNOWN
 
-Files: src/sunstone/public/locale/languages/*
+Files: src/sunstone/public/css/login.css
+Copyright: 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
+License: Apache-2.0
+
+Files: src/sunstone/public/locale/*
 Copyright: YEAR 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
 License: UNKNOWN
 
-Files: src/sunstone/public/locale/languages/SConstruct
+Files: src/sunstone/public/locale/generate_messages_pot.sh
+ src/sunstone/public/locale/upgrade_po_translations.sh
 Copyright: 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
 License: Apache-2.0
 
-Files: src/sunstone/public/locale/messages.pot
-Copyright: YEAR 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
-License: UNKNOWN
+Files: src/sunstone/public/locale/languages/SConstruct
+Copyright: 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
+License: Apache-2.0
 
 Files: src/sunstone/public/vendor/*
 Copyright: 2009-2012, Jeff Mott.
diff --git a/t/scanner/examples/pan.out b/t/scanner/examples/pan.out
index 5e8b417..d9555c9 100644
--- a/t/scanner/examples/pan.out
+++ b/t/scanner/examples/pan.out
@@ -1,7 +1,3 @@
-Files: *
-Copyright: the software, and / 1989, 1991 Free Software Foundation, Inc
-License: UNKNOWN
-
 Files: pan/*
 Copyright: 2002-2007, Charles Kerr <charles at rebelbase.com>
 License: GPL-2
diff --git a/t/scanner/examples/rakudo-star.out b/t/scanner/examples/rakudo-star.out
index 9c4961d..8256711 100644
--- a/t/scanner/examples/rakudo-star.out
+++ b/t/scanner/examples/rakudo-star.out
@@ -1,12 +1,12 @@
-Files: *
+Files: Configure.pl
 Copyright: 2006-2015, The Perl Foundation
 License: UNKNOWN
 
-Files: modules/*
-Copyright: 2010, 2012-2015, Tadeusz Sośnierz
-License: Expat
+Files: debian/patches/*
+Copyright: 2006-2015, The Perl Foundation
+License: UNKNOWN
 
-Files: modules/DBIish/*
+Files: modules/*
 Copyright: 2009-2012, the DBIish contributors
 License: BSD-2-clause
 
@@ -14,47 +14,15 @@ Files: modules/Perl6-MIME-Base64/*
 Copyright: UNKNOWN
 License: Artistic-2.0
 
-Files: modules/doc/*
-Copyright: 2000-2006, The Perl Foundation
-License: Artistic-2.0
-
 Files: modules/doc/html/*
-Copyright: 2005, 2015, jQuery Foundation, Inc. | jquery.org/license
-License: UNKNOWN
-
-Files: modules/doc/html/css/*
 Copyright: 2015, jQuery Foundation and other contributors; Licensed MIT
 License: UNKNOWN
 
-Files: modules/doc/html/js/jquery-ui.min.js
-Copyright: 2015, jQuery Foundation and other contributors; Licensed MIT
+Files: modules/doc/html/js/jquery-1.11.3.min.js
+Copyright: 2005, 2015, jQuery Foundation, Inc. | jquery.org/license
 License: UNKNOWN
 
-Files: modules/json_fast/*
-Copyright: 2015, Everyone is permitted to copy and distribute verbatim copies
-License: Artistic-2.0
-
-Files: modules/p6-file-directory-tree/*
-Copyright: 2000-2006, The Perl Foundation
-License: Artistic-2.0
-
-Files: modules/panda/ext/JSON__Fast/*
-Copyright: 2015, Everyone is permitted to copy and distribute verbatim copies
-License: Artistic-2.0
-
-Files: modules/svg-plot/*
-Copyright: 2000-2006, The Perl Foundation
-License: Artistic-2.0
-
 Files: modules/svg-plot/lib/*
 Copyright: 2009, Moritz Lenz and the SVG::Plot contributors (see file
 License: Artistic-2.0
 
-Files: modules/svg/*
-Copyright: 2000-2006, The Perl Foundation
-License: Artistic-2.0
-
-Files: modules/xml-writer/*
-Copyright: 2000-2006, The Perl Foundation
-License: Artistic-2.0
-
diff --git a/t/scanner/squash_copyright_years.t b/t/scanner/squash_copyright_years.t
index a0bbd2a..12bc60d 100644
--- a/t/scanner/squash_copyright_years.t
+++ b/t/scanner/squash_copyright_years.t
@@ -19,6 +19,9 @@ my @tests = (
         'dir with squashable copyright',
         q!---
 -
+  - unknown
+  - unknown
+-
   - '2007-2011, Daniel Adler <dadler at uni-goettingen.de>'
   - ISC
 -
@@ -38,7 +41,7 @@ my @tests = (
   - ISC
 ...
 !,
-        [6,6,6,6,undef,6],
+        [undef,7,7,7,7,undef,7],
         [ [ '2007-2015, Daniel Adler <dadler at uni-goettingen.de>', 'ISC'] ]
     ]
 );
diff --git a/t/scanner/squash_files.t b/t/scanner/squash_files.t
index 645873e..a7e681e 100644
--- a/t/scanner/squash_files.t
+++ b/t/scanner/squash_files.t
@@ -61,21 +61,21 @@ uulib:
   crc32.h: 1
   fptools.c: 1
   fptools.h: 1
-  uucheck.c: 0
-  uudeview.h: 0
-  uuencode.c: 0
-  uuint.h: 0
+  uucheck.c: 6
+  uudeview.h: 6
+  uuencode.c: 6
+  uuint.h: 6
 ",
         "---
-'*': '0'
+'*': '4'
 pan:
-  '*': '4'
+  '.': '4'
   data:
     '.': '4'
     cert-store.cc: '5'
     cert-store.h: '5'
 uulib:
-  '.': '0'
+  '*': '6'
   crc32.c: '2'
   crc32.h: '1'
   fptools.c: '1'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git



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