[Po4a-commits] "po4a/t 23-man.t,1.8,1.9"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sat Jun 3 17:43:44 UTC 2006


Update of /cvsroot/po4a/po4a/t
In directory haydn:/tmp/cvs-serv20943/t

Modified Files:
	23-man.t 
Log Message:
Add a test for mixed mdoc/roff files (in a config file)


Index: 23-man.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/23-man.t,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- 23-man.t	2 Jun 2006 23:43:44 -0000	1.8
+++ 23-man.t	3 Jun 2006 17:43:42 -0000	1.9
@@ -111,6 +111,7 @@
   'doc'  => "translate this document",
 };
 
+# mdoc format
 push @tests, {
     'run'  => "LC_ALL=C perl ../po4a-gettextize -f #format# -m data-23/mdoc.1 -p tmp/mdoc.pot 2>/dev/null",
     'test' => "diff -u $diff_po_flags  data-23/mdoc.pot tmp/mdoc.pot",
@@ -121,7 +122,19 @@
     'doc'  => "translate this document",
 };
 
-use Test::More tests => 44; # $formats * $tests * 2 
+# Mixed mdoc and roff format
+push @tests, {
+    'run'  => "cp data-23/mixed.fr.po tmp/ && LC_ALL=C perl ../po4a data-23/mixed.cfg",
+    'test' => "diff -u $diff_po_flags  data-23/mixed.pot tmp/mixed.pot &&".
+              "diff -u $diff_po_flags  data-23/mixed.fr.po tmp/mixed.fr.po &&".
+              "diff -u $diff_po_flags  data-23/null.fr tmp/mixed_null.fr.1 &&".
+              "diff -u $diff_po_flags  data-23/mdoc.fr tmp/mixed_mdoc.fr.1 &&".
+              "diff -u $diff_po_flags  data-23/escapes1.fr.1 tmp/mixed_escapes1.fr.1 &&".
+              "diff -u $diff_po_flags  data-23/quotes.fr tmp/mixed_quotes.fr.1",
+    'doc'  => "mixed config with roff and mdoc"
+};
+
+use Test::More tests => 46; # $formats * $tests * 2 
 
 foreach my $format (@formats) {
     for (my $i=0; $i<scalar @tests; $i++) {




More information about the Po4a-commits mailing list