comparison tests/test-gendoc.t @ 19922:f27deed5c23f

tests: really test translations for rst syntax errors (issue4003) The variable LC_ALL did not work, use LANGUAGE instead. Before this patch, the original language C was generated (and tested) in every run.
author Simon Heimberg <simohe@besonet.ch>
date Fri, 18 Oct 2013 18:49:45 +0200
parents 4f795f5fbb0b
children 52bc80d0769f
comparison
equal deleted inserted replaced
19921:baf1600adfbe 19922:f27deed5c23f
7 > LOCALE=`basename "$PO" .po` 7 > LOCALE=`basename "$PO" .po`
8 > echo 8 > echo
9 > echo "% extracting documentation from $LOCALE" 9 > echo "% extracting documentation from $LOCALE"
10 > echo ".. -*- coding: utf-8 -*-" > gendoc-$LOCALE.txt 10 > echo ".. -*- coding: utf-8 -*-" > gendoc-$LOCALE.txt
11 > echo "" >> gendoc-$LOCALE.txt 11 > echo "" >> gendoc-$LOCALE.txt
12 > LC_ALL=$LOCALE python "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit 12 > LANGUAGE=$LOCALE python "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit
13 > 13 >
14 > # We call runrst without adding "--halt warning" to make it report 14 > # We call runrst without adding "--halt warning" to make it report
15 > # all errors instead of stopping on the first one. 15 > # all errors instead of stopping on the first one.
16 > echo "checking for parse errors" 16 > echo "checking for parse errors"
17 > python "$TESTDIR/../doc/runrst" html gendoc-$LOCALE.txt /dev/null 17 > python "$TESTDIR/../doc/runrst" html gendoc-$LOCALE.txt /dev/null