blob: 41c21764105de3794e1dca487fbdbed5a5e5e2a2 [file] [log] [blame]
Akrona3f74f52024-07-17 17:18:17 +02001#!/usr/bin/env perl
2use strict;
3use warnings;
4use Test::More;
5use File::Basename;
6use File::Spec::Functions;
7use Data::Dumper;
8
9use Test::Output;
10use Mojo::JSON 'decode_json';
11
12my $script = catfile(dirname(__FILE__), '..', 'script', 'cosmasvc2koralquery');
13my $list1 = catfile(dirname(__FILE__), 'data', 'list-example.ls');
14
15# Check STDOUT
16stdout_like(
17 sub {
18 system($script, 'list', $list1);
19 },
20 qr!Convert!,
21 "check stdout"
22);
23
24# Check JSON
25# my $protocol = join('', `$script list $list1`);
26
27done_testing;
28__END__