~ubuntu-branches/debian/sid/libconfig-model-dpkg-perl/sid

« back to all changes in this revision

Viewing changes to t/model_tests.d/dpkg-patches-test-conf.pl

  • Committer: Package Import Robot
  • Author(s): Dominique Dumont
  • Date: 2014-06-14 14:37:59 UTC
  • Revision ID: package-import@ubuntu.com-20140614143759-6nkk4dsw0b5ak0w7
Tags: 2.049
* Dpkg::Copyright:
  * fixed Files-Excluded type and updated doc
  * consider license exception as part of license short
    name (Closes: #748501)
* Dpkg::Patch(es):
  * read/write patches in utf8 mode
  * skip non dep-3 patches when cme is run with -force option
    (Closes: 748502)
  * added bash completion for 'cme edit|fix|check dpkg-patch'
* control:
  * build depends on libconfig-model-tester 2.048 to test
    tolerance of bad patch
  * added BDI on libpath-tiny-perl

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use Data::Dumper;
 
2
use IO::File;
 
3
use File::HomeDir ;
 
4
 
 
5
$conf_file_name = '';
 
6
$conf_dir       = 'debian/patches';
 
7
 
 
8
$model_to_test  = "Dpkg::Patches";
 
9
 
 
10
eval { require AptPkg::Config; };
 
11
$skip = ( $@ or not -r '/etc/debian_version' ) ? 1 : 0;
 
12
 
 
13
@tests = (
 
14
    { 
 
15
        name => 'debian-748502' ,
 
16
        # required to skip the bad patch (non dep-3)
 
17
        load_check => 'no',
 
18
        load_warnings => [ qr/Ignoring patch/ ],
 
19
        load => 'patches:~mail-like-patch',
 
20
        # bad patch is skipped by config-model but is not removed from patch set
 
21
        # hence the 2nd instance must also skip the bad patch
 
22
        load_check2 => 'no',
 
23
    }
 
24
);
 
25
 
 
26
 
 
27
1;