changeset 19923:52bc80d0769f

tests: test-gendoc.t checks if anything was translated This would triggered when the variable would be set wrong again.
author Simon Heimberg <simohe@besonet.ch>
date Fri, 18 Oct 2013 18:56:52 +0200
parents f27deed5c23f
children c23c62209cc4
files tests/test-gendoc.t
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-gendoc.t	Fri Oct 18 18:49:45 2013 +0200
+++ b/tests/test-gendoc.t	Fri Oct 18 18:56:52 2013 +0200
@@ -11,6 +11,10 @@
   >     echo "" >> gendoc-$LOCALE.txt
   >     LANGUAGE=$LOCALE python "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit
   > 
+  >     if [ $LOCALE != C ]; then
+  >         cmp -s gendoc-C.txt gendoc-$LOCALE.txt && echo '** NOTHING TRANSLATED **'
+  >     fi
+  > 
   >     # We call runrst without adding "--halt warning" to make it report
   >     # all errors instead of stopping on the first one.
   >     echo "checking for parse errors"