6
use Test::More; # see done_testing()
10
require_ok( 'Dpkg::Copyright::Scanner' );
19
[['1', 'data-impl/defgroup.h']] ,
22
'dir with several files',
32
[ 5, 'data/cert-store.cc', 'data/cert-store.h'],
33
[ 1, 'data/defgroup.h'],
34
[ 3, 'data/parts.cc', 'data/parts.h']
60
e-action-combo-box.c: 18
61
e-action-combo-box.h: 18
62
e-charset-combo-box.c: 17
63
e-charset-combo-box.h: 17
70
[ 1,'pan/data-impl/defgroup.h' ],
71
[ 5,'pan/data/cert-store.cc','pan/data/cert-store.h' ],
72
[ 1,'pan/data/defgroup.h' ],
73
[ 3,'pan/data/parts.cc','pan/data/parts.h' ],
74
[ 1,'pan/general/debug.cc','pan/general/defgroup.h' ],
75
[ 8,'pan/general/e-util.cc','pan/general/e-util.h' ],
76
[ 1,'pan/gui/action-manager.h','pan/gui/defgroup.h' ],
77
[ 18,'pan/gui/e-action-combo-box.c','pan/gui/e-action-combo-box.h' ],
78
[ 17,'pan/gui/e-charset-combo-box.c','pan/gui/e-charset-combo-box.h'],
83
'interspersed copyrights',
103
[ 2,'include/SDL.h','include/SDL_copying.h','include/SDL_cpuinfo.h','include/SDL_endian.h','include/SDL_mutex.h','include/SDL_opengl.h','include/SDL_opengles.h','include/SDL_pixels.h','include/SDL_render.h','include/SDL_rwops.h','include/close_code.h'],
104
[ 3,'include/SDL_egl.h','include/SDL_opengles2.h'],
105
[ 0,'include/SDL_name.h','include/SDL_revision.h'],
111
foreach my $t (@tests) {
112
my ($label,$in,$expect) = @$t;
113
my @res = Dpkg::Copyright::Scanner::__pack_files(Load($in));
114
eq_or_diff(\@res,$expect,"__pack_files $label");