[libconfig-model-dpkg-perl] 03/04: test that patch subject or description is written first

dod at debian.org dod at debian.org
Wed Jan 18 17:31:24 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 6d97a2263e5a6edcac4acd5ed184e2c1d25c6f75
Author: Dominique Dumont <dod at debian.org>
Date:   Wed Jan 18 16:42:42 2017 +0100

    test that patch subject or description is written first
---
 t/model_tests.d/dpkg-patch-test-conf.pl | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/t/model_tests.d/dpkg-patch-test-conf.pl b/t/model_tests.d/dpkg-patch-test-conf.pl
index 92a5cd7..1c30af6 100644
--- a/t/model_tests.d/dpkg-patch-test-conf.pl
+++ b/t/model_tests.d/dpkg-patch-test-conf.pl
@@ -34,6 +34,10 @@ $skip = ( $@ or not -r '/etc/debian_version' ) ? 1 : 0;
         config_file => $conf_file_name,
         check => {
             'Synopsis' => qr/Configure.pl/,
+        },
+        # check that subject stays first field
+        file_contents_like => {
+            "$conf_dir/$conf_file_name" => [ qr/^Subject/ ] ,
         }
     },
     {
@@ -43,6 +47,10 @@ $skip = ( $@ or not -r '/etc/debian_version' ) ? 1 : 0;
         check => {
             Description => qr/enhance/,
             diff => qr/@@ -7,7/
+        },
+        # check that description is first field
+        file_contents_like => {
+            "$conf_dir/$conf_file_name" => [ qr/^Description/ ] ,
         }
 
     },

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