comparison tests/check-gendoc @ 28809:7a1ad08b9ff5

tests: splitting test-gendoc.t into per file tests Localizers can now run test-gendoc-$LOCALE.t instead of test-gendoc.t. After this change, test-gendoc.t only checks whether there is *some* localization for the expected set of languages and no others. Whenever a locale i18n/$LOCALE.po is added, someone needs to add test-gendoc-$LOCALE.t
author timeless <timeless@mozdev.org>
date Wed, 06 Jan 2016 20:45:50 +0000
parents tests/test-gendoc.t@3d1baa702d1a
children 69c99898a48f
comparison
equal deleted inserted replaced
28808:10c2ce44c35d 28809:7a1ad08b9ff5
1 #!/bin/sh
2 HGENCODING=UTF-8
3 export HGENCODING
4
5 echo ".. -*- coding: utf-8 -*-" > gendoc.txt
6 echo "" >> gendoc.txt
7 LANGUAGE=$1 python "$TESTDIR/../doc/gendoc.py" >> gendoc.txt 2> /dev/null || exit
8
9 echo "checking for parse errors"
10 python "$TESTDIR/../doc/docchecker" gendoc.txt
11 python "$TESTDIR/../doc/runrst" html gendoc.txt /dev/null