[libconfig-model-dpkg-perl] 13/23: test © upstream name from control source

dod at debian.org dod at debian.org
Mon Feb 13 12:29:39 UTC 2017


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 0c74fd7c804f86d1bdfa8d7a1de1f01f29007194
Author: Dominique Dumont <dod at debian.org>
Date:   Tue Jan 31 20:37:45 2017 +0100

    test © upstream name from control source
    
    This requires to load Dpkg::Copyright model *after* Dpkg model.
    which does not currently happen because © tests are run before dpkg
    tests.
    
    So the C::M::Tester 2.059 must be used to reset model object before each
    test file.
---
 t/model_tests.d/dpkg-test-conf.pl | 1 +
 t/model_tests.t                   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/t/model_tests.d/dpkg-test-conf.pl b/t/model_tests.d/dpkg-test-conf.pl
index 284b9d9..0a00976 100644
--- a/t/model_tests.d/dpkg-test-conf.pl
+++ b/t/model_tests.d/dpkg-test-conf.pl
@@ -57,6 +57,7 @@ my $del_home = sub {
         no_warnings => 1,
         check => {
             "copyright License:GPL-2 text" => {value => undef, mode => 'custom'},
+            "copyright Upstream-Name" => 'pan',
             "copyright License:GPL-2 text" => qr/GNU/,
             'copyright Files:pan/general/map-vector.h Copyright' => "2001,Andrei Alexandrescu",
             'copyright Files:pan/general/map-vector.h License short_name' => 'MIT',
diff --git a/t/model_tests.t b/t/model_tests.t
index 3aa3b31..69f4351 100644
--- a/t/model_tests.t
+++ b/t/model_tests.t
@@ -3,7 +3,7 @@ use warnings;
 
 use strict;
 
-use Config::Model::Tester ;
+use Config::Model::Tester 2.059;
 use ExtUtils::testlib;
 
 my $arg = shift || '';

-- 
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