[Po4a-commits] r2651 - /trunk/t/05-config.t

barbier at users.alioth.debian.org barbier at users.alioth.debian.org
Sat Oct 20 17:02:25 UTC 2012


Author: barbier
Date: Sat Oct 20 17:02:25 2012
New Revision: 2651

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2651
Log:
Fix t/05-config.t to not fail when files are not writable

'./Build dist' generates a tarball with non writable files,
thus './Build test' fails.

Modified:
    trunk/t/05-config.t

Modified: trunk/t/05-config.t
URL: http://svn.debian.org/wsvn/po4a/trunk/t/05-config.t?rev=2651&op=diff
==============================================================================
--- trunk/t/05-config.t (original)
+++ trunk/t/05-config.t Sat Oct 20 17:02:25 2012
@@ -22,6 +22,7 @@
 
 $tests[1]{'run'}  =
     'cp data-05/test0.fr.po tmp/test0.fr.po && '.
+    'chmod u+w tmp/test0.fr.po && '.
     'LC_ALL=C COLUMNS=80 perl ../po4a data-05/test0.conf > tmp/err 2>&1';
 @{$tests[1]{'test'}} =
     ("diff -u data-05/test1.err tmp/err",
@@ -49,6 +50,7 @@
 
 $tests[3]{'run'}  =
     'cp data-05/test2.??.po tmp/ && '.
+    'chmod u+w tmp/test2.??.po && '.
     'LC_ALL=C COLUMNS=80 perl ../po4a data-05/test2.conf > tmp/err 2>&1';
 @{$tests[3]{'test'}} =
     ("diff -u data-05/test3.err tmp/err",
@@ -66,6 +68,7 @@
 
 $tests[4]{'run'}  =
     'cp data-05/test2.??.po tmp/ && '.
+    'chmod u+w tmp/test2.??.po && '.
     'LC_ALL=C COLUMNS=80 perl ../po4a -v -k 0 data-05/test2.conf >tmp/err 2>&1';
 @{$tests[4]{'test'}} =
     ("sed -e 's,^\.* done\.,. done.,' -e 's,^tmp/test2\\.[^:]*\.po: ,,' tmp/err | diff -u data-05/test4.err -",
@@ -83,6 +86,7 @@
 # -k 0 is specified in the file opt:
 $tests[5]{'run'}  =
     'cp data-05/test2.??.po tmp/ && '.
+    'chmod u+w tmp/test2.??.po && '.
     'LC_ALL=C COLUMNS=80 perl ../po4a -v data-05/test3.conf > tmp/err 2>&1';
 @{$tests[5]{'test'}} =
     ("sed -e 's,^\.* done\.,. done.,' -e 's,^tmp/test2\\.[^:]*\.po: ,,' tmp/err | diff -u data-05/test4.err -",
@@ -100,6 +104,7 @@
 # -k 0 -v is specified for the alias
 $tests[6]{'run'}  =
     'cp data-05/test2.??.po tmp/ && '.
+    'chmod u+w tmp/test2.??.po && '.
     'LC_ALL=C COLUMNS=80 perl ../po4a data-05/test4.conf > tmp/err 2>&1';
 @{$tests[6]{'test'}} =
     ("diff -u data-05/test6.err tmp/err",
@@ -117,6 +122,7 @@
 
 $tests[7]{'run'}  =
     'cp data-05/test2.??.po tmp/ && '.
+    'chmod u+w tmp/test2.??.po && '.
     'LC_ALL=C COLUMNS=80 perl ../po4a data-05/test5.conf > tmp/err 2>&1';
 @{$tests[7]{'test'}} =
     ("diff -u data-05/test7.err tmp/err",
@@ -133,6 +139,7 @@
 
 $tests[8]{'run'}  =
     'cp data-05/test2.??.po tmp/ && '.
+    'chmod u+w tmp/test2.??.po && '.
     'LC_ALL=C COLUMNS=80 perl ../po4a -f data-05/test8.conf > tmp/err 2>&1';
 @{$tests[8]{'test'}} =
     ("diff -u data-05/test3.err tmp/err",




More information about the Po4a-commits mailing list