blob: 1ae07557fae5cffad4952ee39629fe7e3567f5a4 [file] [log] [blame]
Akron84b53ad2022-01-14 12:39:15 +01001#/usr/bin/env perl
2use strict;
3use warnings;
4use File::Basename 'dirname';
5use File::Spec::Functions qw/catdir catfile/;
6use File::Temp qw/:POSIX/;
7use Mojo::File;
8use Mojo::JSON qw/decode_json/;
9use IO::Uncompress::Gunzip;
10use Test::More;
11use Test::Output;
12use Data::Dumper;
13use utf8;
14
15if ($ENV{SKIP_SCRIPT}) {
16 plan skip_all => 'Skip script tests';
17};
18
19my $f = dirname(__FILE__);
20my $script = catfile($f, '..', '..', 'script', 'korapxml2krill');
21my $log = catfile($f, '..', 'logs', 'dereko-example-log.txt');
22
23my $call = join(' ', 'perl', $script, 'slimlog', $log);
24
25# Test with compression
26stdout_like(
27 sub { system($call); },
28 qr!## Done\. \[\!Process: 2\]!,
29 $call
30);
31
32done_testing;
33__END__
34