[Po4a-commits] "po4a/t 02-TransTractors.t, 1.9, 1.10 10-discard-fuzzy.t, 1.5, 1.6 20-xml.t, 1.4, 1.5 23-man.t, 1.5, 1.6 24-tex.t, 1.1, 1.2"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Wed Oct 26 10:54:29 UTC 2005


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

Modified Files:
	02-TransTractors.t 10-discard-fuzzy.t 20-xml.t 23-man.t 
	24-tex.t 
Log Message:
Always diff in the same order (original/tmp), and always with -u.
This helps debugging.


Index: 24-tex.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/24-tex.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- 24-tex.t	24 Apr 2005 16:07:34 -0000	1.1
+++ 24-tex.t	26 Oct 2005 10:54:26 -0000	1.2
@@ -18,7 +18,7 @@
 push @tests, {
   'run'  => "LC_ALL=C COLUMNS=80 perl ../po4a-gettextize -f latex -m data-24/simple.tex -p tmp/simple.pot > tmp/simple-gettextize.out 2>&1",
   'test' => "diff -u data-24/simple-gettextize.out tmp/simple-gettextize.out".
-        " && diff -u $diff_po_flags tmp/simple.pot data-24/simple.pot",
+        " && diff -u $diff_po_flags data-24/simple.pot tmp/simple.pot",
   'doc'  => "gettextize well a simple tex document",
 }, {
   'run'  => "cp data-24/simple.fr.po tmp/".

Index: 23-man.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/23-man.t,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- 23-man.t	3 Mar 2005 19:53:43 -0000	1.5
+++ 23-man.t	26 Oct 2005 10:54:26 -0000	1.6
@@ -19,11 +19,11 @@
 # Quotes (3 tests)
 push @tests, {
   'run'  => "perl ../po4a-gettextize -f #format# -m data-23/quotes -p tmp/quotes.pot 2>/dev/null",
-  'test' => "diff -u tmp/quotes.pot data-23/quotes.pot $diff_po_flags",
+  'test' => "diff -u $diff_po_flags  data-23/quotes.pot tmp/quotes.pot",
   'doc'  => "gettextize well various quotes",
 }, {
   'run'  => "cp data-23/quotes.fr.po tmp/ && perl ../po4a-updatepo -f #format# -m data-23/quotes -p tmp/quotes.fr.po >/dev/null 2>&1 ",
-  'test' => "diff -u $diff_po_flags data-23/quotes.fr.po tmp/quotes.fr.po",
+  'test' => "diff -u $diff_po_flags  data-23/quotes.fr.po tmp/quotes.fr.po",
   'doc'  => "updatepo for this document",
 }, {
   'run'  => "perl ../po4a-translate -f #format# -m data-23/quotes -p data-23/quotes.fr.po -l tmp/quotes.fr",
@@ -34,11 +34,11 @@
 # Dots (9 tests)
 push @tests, {
   'run'  => "perl ../po4a-gettextize -f #format# -m data-23/dot1 -p tmp/dot1.pot 2>/dev/null",
-  'test' => "diff -u tmp/dot1.pot data-23/dot1.pot $diff_po_flags",
+  'test' => "diff -u $diff_po_flags  data-23/dot1.pot tmp/dot1.pot",
   'doc'  => "gettextize well various lines beginning by a dot (1)",
 }, {
   'run'  => "cp data-23/dot1.fr.po tmp/ && perl ../po4a-updatepo -f #format# -m data-23/dot1 -p tmp/dot1.fr.po >/dev/null 2>&1 ",
-  'test' => "diff -u $diff_po_flags data-23/dot1.fr.po tmp/dot1.fr.po",
+  'test' => "diff -u $diff_po_flags  data-23/dot1.fr.po tmp/dot1.fr.po",
   'doc'  => "updatepo for this document",
 }, {
   'run'  => "perl ../po4a-translate -f #format# -m data-23/dot1 -p data-23/dot1.fr.po -l tmp/dot1.fr",
@@ -46,23 +46,23 @@
   'doc'  => "translate this document",
 }, {
   'run'  => "LC_ALL=C COLUMNS=80 perl ../po4a-gettextize -f #format# -m data-23/dot2 -p tmp/dot2.pot 2>tmp/dot2.err || true",
-  'test' => "diff -u tmp/dot2.err data-23/dot2.err $diff_po_flags",
+  'test' => "diff -u $diff_po_flags  data-23/dot2.err tmp/dot2.err",
   'doc'  => "gettextize well various lines beginning by a dot (2)",
 }, {
   'run'  => "LC_ALL=C COLUMNS=80 perl ../po4a-gettextize -f #format# -m data-23/dot3 -p tmp/dot3.pot 2>tmp/dot3.err || true",
-  'test' => "diff -u tmp/dot3.err data-23/dot3.err $diff_po_flags",
+  'test' => "diff -u $diff_po_flags  data-23/dot3.err tmp/dot3.err",
   'doc'  => "gettextize well various lines beginning by a dot (3)",
 }, {
   'run'  => "LC_ALL=C COLUMNS=80 perl ../po4a-gettextize -f #format# -m data-23/dot4 -p tmp/dot4.pot 2>tmp/dot4.err || true",
-  'test' => "diff -u tmp/dot4.err data-23/dot4.err $diff_po_flags",
+  'test' => "diff -u $diff_po_flags  data-23/dot4.err tmp/dot4.err",
   'doc'  => "gettextize well various lines beginning by a dot (4)",
 }, {
   'run'  => "LC_ALL=C perl ../po4a-gettextize -f #format# -m data-23/dot5 -p tmp/dot5.pot 2>/dev/null",
-  'test' => "diff -u tmp/dot5.pot data-23/dot5.pot $diff_po_flags",
+  'test' => "diff -u $diff_po_flags  data-23/dot5.pot tmp/dot5.pot",
   'doc'  => "gettextize well various lines beginning by a dot (5)",
 }, {
   'run'  => "cp data-23/dot5.it.po tmp/ && perl ../po4a-updatepo -f #format# -m data-23/dot5 -p tmp/dot5.it.po >/dev/null 2>&1 ",
-  'test' => "diff -u $diff_po_flags data-23/dot5.it.po tmp/dot5.it.po",
+  'test' => "diff -u $diff_po_flags  data-23/dot5.it.po tmp/dot5.it.po",
   'doc'  => "updatepo for this document",
 }, {
   'run'  => "perl ../po4a-translate -f #format# -m data-23/dot5 -p data-23/dot5.it.po -l tmp/dot5.it",
@@ -73,11 +73,11 @@
 # Null argument (3 tests)
 push @tests, {
   'run'  => "LC_ALL=C perl ../po4a-gettextize -f #format# -m data-23/null -p tmp/null.pot 2>/dev/null",
-  'test' => "diff -u tmp/null.pot data-23/null.pot $diff_po_flags",
+  'test' => "diff -u $diff_po_flags  data-23/null.pot tmp/null.pot",
   'doc'  => "gettextize well null argument/paragraphs",
 }, {
   'run'  => "cp data-23/null.fr.po tmp/ && perl ../po4a-updatepo -f #format# -m data-23/null -p tmp/null.fr.po >/dev/null 2>&1 ",
-  'test' => "diff -u $diff_po_flags data-23/null.fr.po tmp/null.fr.po",
+  'test' => "diff -u $diff_po_flags  data-23/null.fr.po tmp/null.fr.po",
   'doc'  => "updatepo for this document",
 }, {
   'run'  => "perl ../po4a-translate -f #format# -m data-23/null -p data-23/null.fr.po -l tmp/null.fr",
@@ -88,11 +88,11 @@
 # Escaped tabs and newlines (3 tests)
 push @tests, {
   'run'  => "LC_ALL=C perl ../po4a-gettextize -f #format# -m data-23/escapes1 -p tmp/escapes1.pot 2>/dev/null",
-  'test' => "diff -u tmp/escapes1.pot data-23/escapes1.pot $diff_po_flags",
+  'test' => "diff -u $diff_po_flags  data-23/escapes1.pot tmp/escapes1.pot",
   'doc'  => "gettextize well escaped newlines and tabs",
 }, {
   'run'  => "cp data-23/escapes1.it.po tmp/ && perl ../po4a-updatepo -f #format# -m data-23/escapes1 -p tmp/escapes1.it.po >/dev/null 2>&1 ",
-  'test' => "diff -u $diff_po_flags data-23/escapes1.it.po tmp/escapes1.it.po",
+  'test' => "diff -u $diff_po_flags  data-23/escapes1.it.po tmp/escapes1.it.po",
   'doc'  => "updatepo for this document",
 }, {
   'run'  => "perl ../po4a-translate -f #format# -m data-23/escapes1 -p data-23/escapes1.it.po -l tmp/escapes1.it",

Index: 02-TransTractors.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/02-TransTractors.t,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- 02-TransTractors.t	27 Feb 2005 15:28:50 -0000	1.9
+++ 02-TransTractors.t	26 Oct 2005 10:54:26 -0000	1.10
@@ -29,7 +29,7 @@
 $tests[2]{'doc'}  = "updatepo for #format# document";
 
 $tests[3]{'run'}  = "perl ../po4a-translate -f #format# -m data-02/#format# -p data-02/#format#.po-ok -l tmp/#format#.fr";
-$tests[3]{'test'} = "diff data-02/#format#.fr-normalized tmp/#format#.fr";
+$tests[3]{'test'} = "diff -u data-02/#format#.fr-normalized tmp/#format#.fr";
 $tests[3]{'doc'}  = "translate #format# document";
 
 

Index: 20-xml.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/20-xml.t,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- 20-xml.t	9 Aug 2004 17:29:20 -0000	1.4
+++ 20-xml.t	26 Oct 2005 10:54:26 -0000	1.5
@@ -17,7 +17,7 @@
 my $diff_pod_flags= " -I 'This file was generated by po4a' ";
 
 $tests[0]{'run'}  = "perl ../po4a-gettextize -f sgml -m data-20/text.xml -p tmp/xml.po 2>/dev/null";
-$tests[0]{'test'} = "diff -u tmp/xml.po data-20/xml.po $diff_po_flags";
+$tests[0]{'test'} = "diff -u data-20/xml.po tmp/xml.po $diff_po_flags";
 $tests[0]{'doc'}  = "gettextize well simple xml documents";
 
 use Test::More tests =>2; # $formats * $tests * 2 

Index: 10-discard-fuzzy.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/10-discard-fuzzy.t,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- 10-discard-fuzzy.t	9 Aug 2004 17:29:20 -0000	1.5
+++ 10-discard-fuzzy.t	26 Oct 2005 10:54:26 -0000	1.6
@@ -17,7 +17,7 @@
 my $diff_pod_flags= " -I 'This file was generated by po4a' ";
 
 $tests[0]{'run'}  = "perl ../po4a-translate -f pod -k 0 -m data-10/pod -p data-10/pod.po -l tmp/pod.fr";
-$tests[0]{'test'} = "diff -u tmp/pod.fr data-10/pod.fr $diff_pod_flags";
+$tests[0]{'test'} = "diff -u data-10/pod.fr tmp/pod.fr $diff_pod_flags";
 $tests[0]{'doc'}  = "discard the fuzzy translation";
 
 use Test::More tests =>2; # $formats * $tests * 2 




More information about the Po4a-commits mailing list