Debian Codegraph @

debian/patches/fix-tests.patch

raw symbols SCIP
1 Description: added .pc and debian to exclude/filter clauses
2 Origin: vendor
3 Forwarded: not-needed
4 Author: Nicholas Bamber <[email protected]>
5 Reviewed-by: Alessandro Ghedini <[email protected]>, gregor herrmann <[email protected]>
6 Last-Update: 2023-02-04
7
8 --- a/t/01_selftest.t
9 +++ b/t/01_selftest.t
10 @@ -28,7 +28,7 @@
11 open $fh ,'>',$file2 and close $fh;
12
13 Test::CheckManifest::_not_ok_manifest('expected: Manifest not ok');
14 -ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git|build)');
15 +ok_manifest({filter => [qr/\.(?:svn|git|build)/, qr/debian/, qr/\.pc/]},'Filter: \.(?:svn|git|build)');
16 Test::CheckManifest::_not_ok_manifest({exclude => ['/.git/']},'expected: Manifest not ok (Exclude /.git/)');
17
18 mkdir $dir2;
19 @@ -42,7 +42,7 @@
20
21 Test::CheckManifest::_not_ok_manifest({
22 filter => [qr/\.git|blib/],
23 - exclude => ['/t/test'],
24 + exclude => ['/t/test','/debian','/.pc'],
25 verbose => 1,
26 }, 'filter OR exclude - test.svn is missing in MANIFEST');
27
28 @@ -50,12 +50,12 @@
29
30 ok_manifest({
31 filter => [qr/\.(git|build)/],
32 - exclude => ['/t/test'],
33 + exclude => ['/t/test','/debian','/.pc'],
34 }, 'filter OR exclude');
35
36 unlink $file3;
37
38 -ok_manifest({filter => [qr/\.git/, qr/\.svn/, qr/\.build/ ]},'Filter \.git or \.svn');
39 +ok_manifest({filter => [qr/\.git/, qr/\.svn/, qr/\.build/, qr/\.pc/, qr/debian/ ]},'Filter \.git or \.svn');
40
41 unlink $file1;
42 rmdir $dir;
43 --- a/t/extra/02_test_in_subdirectory.t
44 +++ b/t/extra/02_test_in_subdirectory.t
45 @@ -9,6 +9,6 @@
46 eval { use Test::CheckManifest tests => 1 };
47 plan skip_all => "Test::CheckManifest required" if $@;
48
49 -ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git)');
50 +ok_manifest({filter => [qr/\.(?:svn|git|build)/, qr/\.pc/, qr/debian/]},'Filter: \.(?:svn|git)');
51
52
53 --- a/t/xt/02_issue1.t
54 +++ b/t/xt/02_issue1.t
55 @@ -8,7 +8,7 @@
56
57 {
58 my $dir = Cwd::getcwd();
59 - ok_manifest({ filter => [ qr/\.(git|build)/, qr/Test-CheckManifest-/ ], dir => $dir });
60 + ok_manifest({ filter => [ qr/\.(git|build)/, qr/Test-CheckManifest-/, qr/debian/, qr/\.pc/ ], dir => $dir });
61
62 }
63