tests: test-gendoc.t checks if anything was translated
authorSimon Heimberg <simohe@besonet.ch>
Fri, 18 Oct 2013 18:56:52 +0200
changeset 19923 52bc80d0769f
parent 19922 f27deed5c23f
child 19924 c23c62209cc4
tests: test-gendoc.t checks if anything was translated This would triggered when the variable would be set wrong again.
tests/test-gendoc.t
--- 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"