[libconfig-model-dpkg-perl] 04/04: test read path from git

dod at debian.org dod at debian.org
Fri Dec 2 18:07:53 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 7449bcb103d9adc7928628e12510b1e5e5ec1193
Author: Dominique Dumont <dod at debian.org>
Date:   Fri Dec 2 19:02:30 2016 +0100

    test read path from git
---
 t/model_tests.d/dpkg-patch-examples/by-git | 19 +++++++++++++++++++
 t/model_tests.d/dpkg-patch-test-conf.pl    | 10 ++++++++++
 2 files changed, 29 insertions(+)

diff --git a/t/model_tests.d/dpkg-patch-examples/by-git b/t/model_tests.d/dpkg-patch-examples/by-git
new file mode 100644
index 0000000..a52fef8
--- /dev/null
+++ b/t/model_tests.d/dpkg-patch-examples/by-git
@@ -0,0 +1,19 @@
+commit a1a1d4c6e5b8be92afa5b7134196cd5a7af12bf6
+Author: Dominique Dumont <dod at debian.org>
+Date:   Wed Sep 28 08:45:18 2016 +0200
+
+    enhance © scan pattern doc in model
+
+diff --git a/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns/Lists.pl b/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns/Lists.pl
+index efdb0ad..e72b090 100644
+--- a/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns/Lists.pl
++++ b/lib/Config/Model/models/Dpkg/Copyright/ScanPatterns/Lists.pl
+@@ -7,7 +7,7 @@
+           'type' => 'leaf',
+           'value_type' => 'uniline'
+         },
+-        'description' => 'Files matching any of these suffixes will be scanned by L<licensecheck>. Default suffixes of L<licensecheck> will also be sued. See L<Dpkg::Copyright::Scanner/"electing or ignoring files to scan">',
++        'description' => 'Files matching any of these suffixes will be scanned by L<licensecheck>. Do not specify the dot with the suffixes (e.g. enter "jpg" and not ".jpg"). Default suffixes of L<licensecheck> will also be used. See L<Dpkg::Copyright::Scanner/"Selecting or ignoring files to scan">',
+         'type' => 'list'
+       },
+       'pattern',
diff --git a/t/model_tests.d/dpkg-patch-test-conf.pl b/t/model_tests.d/dpkg-patch-test-conf.pl
index 6c3c46c..92a5cd7 100644
--- a/t/model_tests.d/dpkg-patch-test-conf.pl
+++ b/t/model_tests.d/dpkg-patch-test-conf.pl
@@ -36,6 +36,16 @@ $skip = ( $@ or not -r '/etc/debian_version' ) ? 1 : 0;
             'Synopsis' => qr/Configure.pl/,
         }
     },
+    {
+        name => 'by-git',
+        config_file => $conf_file_name,
+        dump_warnings => [ qr/Empty/ ],
+        check => {
+            Description => qr/enhance/,
+            diff => qr/@@ -7,7/
+        }
+
+    },
 );
 
 

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