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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#! /usr/bin/perl
# msguntypot tester.
#########################
use strict;
use warnings;
use lib q(t);
use Testhelper;
my @tests;
push @tests,
{
'run' => 'cp t-12-msguntypot/test1.po tmp && chmod u+w tmp/test1.po '
. '&& PATH/msguntypot -o t-12-msguntypot/test1.old.pot -n t-12-msguntypot/test1.new.pot tmp/test1.po > /dev/null',
'tests' => ["PODIFF t-12-msguntypot/test1.new.po tmp/test1.po"],
'doc' => 'nominal test',
},
{
'run' => 'cp t-12-msguntypot/test2.po tmp && chmod u+w tmp/test2.po'
. '&& PATH/msguntypot -o t-12-msguntypot/test2.old.pot -n t-12-msguntypot/test2.new.pot tmp/test2.po > /dev/null',
'tests' => ["PODIFF t-12-msguntypot/test2.new.po tmp/test2.po"],
'doc' => 'fuzzy test',
},
{
'run' => 'cp t-12-msguntypot/test3.po tmp && chmod u+w tmp/test3.po '
. '&& PATH/msguntypot -o t-12-msguntypot/test3.old.pot -n t-12-msguntypot/test3.new.pot tmp/test3.po > /dev/null',
'tests' => ["PODIFF t-12-msguntypot/test3.new.po tmp/test3.po"],
'doc' => 'msg moved test',
'todo' => "Moved strings are not supported. Only typo fixes!",
},
{
'run' => 'cp t-12-msguntypot/test4.po tmp && chmod u+w tmp/test4.po '
. '&& PATH/msguntypot -o t-12-msguntypot/test4.old.pot -n t-12-msguntypot/test4.new.pot tmp/test4.po > /dev/null',
'tests' => ["PODIFF t-12-msguntypot/test4.new.po tmp/test4.po"],
'doc' => 'plural strings (typo in msgid) test',
},
{
'run' => 'cp t-12-msguntypot/test5.po tmp && chmod u+w tmp/test5.po '
. '&& PATH/msguntypot -o t-12-msguntypot/test5.old.pot -n t-12-msguntypot/test5.new.pot tmp/test5.po > /dev/null',
'tests' => ["PODIFF t-12-msguntypot/test5.new.po tmp/test5.po"],
'doc' => 'plural strings (typo in msgid_plural) test',
},
{
'run' => 'cp t-12-msguntypot/test6.po tmp && chmod u+w tmp/test6.po '
. '&& PATH/msguntypot -o t-12-msguntypot/test6.old.pot -n t-12-msguntypot/test6.new.pot tmp/test6.po > /dev/null',
'tests' => ["PODIFF t-12-msguntypot/test6.new.po tmp/test6.po"],
'doc' => 'plural strings (typo in another msgid) test',
},
{
'run' => 'cp t-12-msguntypot/test7.po tmp && chmod u+w tmp/test7.po '
. '&& PATH/msguntypot -o t-12-msguntypot/test7.old.pot -n t-12-msguntypot/test7.new.pot tmp/test7.po > /dev/null',
'tests' => ["PODIFF t-12-msguntypot/test7.new.po tmp/test7.po"],
'doc' => 'plural fuzzy strings (typo in msgid) test',
},
{
'run' => 'cp t-12-msguntypot/test8.po tmp && chmod u+w tmp/test8.po '
. '&& PATH/msguntypot -o t-12-msguntypot/test8.old.pot -n t-12-msguntypot/test8.new.pot tmp/test8.po > /dev/null',
'tests' => ["PODIFF t-12-msguntypot/test8.new.po tmp/test8.po"],
'doc' => 'plural fuzzy strings (typo in msgid_plural) test',
};
run_all_tests(@tests);
0;
|