diff options
author | intrigeri <intrigeri@boum.org> | 2009-01-15 23:32:55 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2009-01-15 23:32:55 +0100 |
commit | 92b2efd39330b7e01884f6cd2face39ab21158e2 (patch) | |
tree | 9840dc287f3b84b28d6a8e22e75aa748e0b27643 /t | |
parent | 7919e7028214ecd0d410f33b9b77106b130f866f (diff) | |
download | ikiwiki-92b2efd39330b7e01884f6cd2face39ab21158e2.tar ikiwiki-92b2efd39330b7e01884f6cd2face39ab21158e2.tar.gz |
po.t: fix test suite
(translatable files now have to exist in srcdir)
)
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 't')
-rwxr-xr-x | t/po.t | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -64,6 +64,14 @@ foreach my $page (keys %pagesources) { $IkiWiki::pagecase{lc $page}=$page; } +### populate srcdir +writefile('index.mdwn', $config{srcdir}, '[[translatable]] [[nontranslatable]]'); +writefile('test1.mdwn', $config{srcdir}, 'test1 content'); +writefile('test2.mdwn', $config{srcdir}, 'test2 content'); +writefile('test3.mdwn', $config{srcdir}, 'test3 content'); +writefile('translatable.mdwn', $config{srcdir}, '[[nontranslatable]]'); +writefile('nontranslatable.mdwn', $config{srcdir}, '[[/]] [[translatable]]'); + ### istranslatable/istranslation # we run these tests twice because memoization attempts made them # succeed once every two tries... @@ -99,10 +107,6 @@ sub refresh_n_scan(@) { } } -writefile('index.mdwn', $config{srcdir}, '[[translatable]] [[nontranslatable]]'); -writefile('translatable.mdwn', $config{srcdir}, '[[nontranslatable]]'); -writefile('nontranslatable.mdwn', $config{srcdir}, '[[/]] [[translatable]]'); - $config{po_link_to}='negotiated'; $msgprefix="links (po_link_to=negotiated)"; refresh_n_scan('index.mdwn', 'translatable.mdwn', 'nontranslatable.mdwn'); |