[Po4a-commits] "po4a/t 20-sgml.t,1.6,1.7"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sun Aug 5 16:01:22 UTC 2007


Update of /cvsroot/po4a/po4a/t
In directory alioth:/tmp/cvs-serv16257/t

Modified Files:
	20-sgml.t 
Log Message:
Added Sgml test to the test suite to detect newline and line numbering
issues.


Index: 20-sgml.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/20-sgml.t,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- 20-sgml.t	31 Dec 2006 14:18:31 -0000	1.6
+++ 20-sgml.t	5 Aug 2007 16:01:20 -0000	1.7
@@ -21,7 +21,12 @@
 $tests[0]{'doc'}  = "gettextize well simple xml documents";
 $tests[0]{'requires'} = "Text::WrapI18N";
 
-use Test::More tests =>2; # $formats * $tests * 2 
+$tests[1]{'run'}  = 'cd tmp && perl ../../po4a-normalize -f sgml ../data-20/test2.sgml';
+$tests[1]{'test'} = "diff -u $diff_po_flags data-20/test2.pot tmp/po4a-normalize.po".
+                    "&& diff -u $diff_po_flags data-20/test2-normalized.sgml tmp/po4a-normalize.output";
+$tests[1]{'doc'}  = 'normalisation test';
+
+use Test::More tests =>4; # $formats * $tests * 2 
 
 foreach my $format (@formats) {
     for (my $i=0; $i<scalar @tests; $i++) {




More information about the Po4a-commits mailing list