summaryrefslogtreecommitdiff
path: root/t/03_translit.t
blob: da86d890bd7222746aab7a370d42d65fe9f5a41a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use strict;
use Test::More tests => 5;

my $truth;

my $bindir = $ENV{AUTOPKGTEST_TMP} ? '/usr/bin' : './blib/script';
my $script = "$bindir/translit";


$truth = -e $script;

# 1
is($truth, 1, "translit found");


$truth = system($^X, $script, "-h");

# 2
is($truth, 0, "translit supports -h switch");


$truth = system($^X, $script, "--help");

# 3
is($truth, 0, "translit supports --help switch");


$truth = system($^X, $script, "-l");

# 4
is($truth, 0, "translit supports -l switch");


$truth = system($^X, $script, "--list");

# 5
is($truth, 0, "translit supports --list switch");