summaryrefslogtreecommitdiffstats
path: root/t/add.t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 11:26:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 11:26:17 +0000
commit5df6c2aefebe3d2abcc939a88e294876d59f03ca (patch)
tree63fb332a0f21ddb91cb789c80cf64e134d373463 /t/add.t
parentInitial commit. (diff)
downloadpo4a-5df6c2aefebe3d2abcc939a88e294876d59f03ca.tar.xz
po4a-5df6c2aefebe3d2abcc939a88e294876d59f03ca.zip
Adding upstream version 0.72.upstream/0.72
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/add.t')
-rw-r--r--t/add.t46
1 files changed, 46 insertions, 0 deletions
diff --git a/t/add.t b/t/add.t
new file mode 100644
index 0000000..dfd80a1
--- /dev/null
+++ b/t/add.t
@@ -0,0 +1,46 @@
+#! /usr/bin/perl
+# Addenda modifiers tester.
+
+#########################
+
+use strict;
+use warnings;
+
+use lib q(t);
+use Testhelper;
+
+my @tests;
+
+push @tests, {
+ 'doc' => 'Several kind of positioning (examples of the doc) POD format',
+ 'po4a.conf' => 'add/positioning/positioning.conf',
+ 'closed_path' => 'add/*/',
+ 'expected_files' =>
+ 'file-before.pod.fr file-after.pod.fr file-eof.pod.fr file-eofmode.pod.fr fr.po positioning.pot',
+
+ },
+ {
+ 'doc' => 'Lists of addendums (asciidoc format)',
+ 'po4a.conf' => 'add/list/po4a.conf',
+ 'closed_path' => 'add/*/',
+ 'expected_files' => 'output-1 output-2 output-3 output-123 output-list up.po list.pot',
+
+ },
+ {
+ 'doc' => 'Modifiers (asciidoc format)',
+ 'po4a.conf' => 'add/modifiers/po4a.conf',
+ 'closed_path' => 'add/*/',
+ 'options' => '--no-update',
+ 'expected_files' => 'with-1 without-2 without-3 without-4 without-5 without-6 with-7 without-8',
+ },
+ {
+ 'doc' => 'Same path to addenda for all languages (and ? modifier)',
+ 'po4a.conf' => 'add/path/po4a.conf',
+ 'closed_path' => 'add/*/',
+ 'expected_files' => 'multiple.de.po multiple.es.po multiple.fr.po multiple.it.po '
+ . 'multiple.man.de.1 multiple.man.es.1 multiple.man.fr.1 multiple.man.it.1 multiple.pot',
+
+ };
+
+run_all_tests(@tests);
+0;