[Po4a-commits] "po4a/t 06-addendums.t,1.1,1.2"

Denis Barbier barbier-guest at alioth.debian.org
Thu Jan 21 00:14:20 UTC 2010


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

Modified Files:
	06-addendums.t 
Log Message:
 * t/06-addendums.t: Add similar tests when calling po4a instead of po4a-translate


Index: 06-addendums.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/06-addendums.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- 06-addendums.t	20 Jan 2010 23:22:41 -0000	1.1
+++ 06-addendums.t	21 Jan 2010 00:14:18 -0000	1.2
@@ -45,7 +45,37 @@
   'doc' => 'translate with recursive @addendum'
   };
 
-use Test::More tests => 10; # tests * (run+validity)
+push @tests, {
+  'run' => 'perl ../po4a -f data-06/test0.conf',
+  'test'=> 'diff -U 50 data-06/Titles.trans.add123 tmp/Titles.trans',
+  'doc' => '(po4a) translate with addendum1, 2 and 3'
+  };
+
+push @tests, {
+  'run' => 'perl ../po4a -f data-06/test1.conf',
+  'test'=> 'diff -U 50 data-06/Titles.trans.add123 tmp/Titles.trans',
+  'doc' => '(po4a) translate with @addendum'
+  };
+
+push @tests, {
+  'run' => 'perl ../po4a -f data-06/test2.conf',
+  'test'=> 'diff -U 50 data-06/Titles.trans.add13 tmp/Titles.trans',
+  'doc' => '(po4a) translate with !addendum'
+  };
+
+push @tests, {
+  'run' => 'perl ../po4a -f data-06/test3.conf',
+  'test'=> 'diff -U 50 data-06/Titles.asciidoc tmp/Titles.trans',
+  'doc' => '(po4a) translate with non-existing ?addendum'
+  };
+
+push @tests, {
+  'run' => 'perl ../po4a -f data-06/test4.conf',
+  'test'=> 'diff -U 50 data-06/Titles.trans.add1 tmp/Titles.trans',
+  'doc' => '(po4a) translate with recursive @addendum'
+  };
+
+use Test::More tests => 20; # tests * (run+validity)
 
 for (my $i=0; $i<scalar @tests; $i++) {
     chdir "t" || die "Can't chdir to my test directory";




More information about the Po4a-commits mailing list