blob: 70febc3e6c898390040579f56fcf91fceef28097 [file] [log] [blame]
Akron63f20d42017-04-10 23:40:29 +02001use strict;
2use warnings;
3use Test::More;
4use Test::Output;
5use File::Basename 'dirname';
6use File::Spec::Functions qw/catdir catfile/;
7use File::Temp qw/tempdir/;
8
9my $f = dirname(__FILE__);
10my $script = catfile($f, '..', '..', 'script', 'korapxml2krill');
11
12my $input_base = catdir($f, '..', 'corpus', 'archives');
13
14# Temporary output
15my $output = File::Temp->newdir(CLEANUP => 0);
16
17my $call = join(
18 ' ',
19 'perl', $script,
20 'serial',
21 '-i' => '"ngafy*.zip"',
22 '-i' => '"tree*.zip"',
23 '-ib' => $input_base,
24 '-o' => $output,
25 '-l' => 'WARN'
26);
27
28# Test without parameters
29combined_like(
30 sub {
31 system($call);
32 },
33 qr!Start serial processing of ngafy\*\.zip!s,
34 $call
35);
36
37
38done_testing;
39__END__