Commit Graph

12 Commits

Author SHA1 Message Date
timeless
842ddb5e9d 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
2016-01-06 20:45:50 +00:00
timeless
81962ef57d docchecker: scan for missing space before :hg: 2016-01-06 20:05:18 +00:00
timeless
762dcd8732 tests: run docchecker in gendoc.t 2016-01-06 19:57:29 +00:00
timeless
aac4aff929 tests: move gendoc.t runrst comment next to runrst 2016-01-06 19:49:53 +00:00
Eric Sumner
5718703cd3 test-gendoc: require gettext
If the gettext utilities aren't installed, there is no way to make the
translations.  This causes the gettext client to fall back to the untranslated
message, which triggers "** NOTHING TRANSLATED **" errors and a test failure.
2015-01-20 17:38:42 -08:00
Matt Mackall
11be5cc27c tests: replace exit 80 with #require 2014-08-06 11:43:59 -05:00
Simon Heimberg
5367e8636c tests: use ls instead of find, all files are in the same directory
In this case find has no advantage compared to ls. Descending into directories
is unnecessary, because there are none.
2014-02-03 20:08:58 +01:00
Simon Heimberg
4f0e71ba4d tests: test-gendoc.t checks if anything was translated
This would triggered when the variable would be set wrong again.
2013-10-18 18:56:52 +02:00
Simon Heimberg
93c228cff0 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.
2013-10-18 18:49:45 +02:00
Thomas Arendsen Hein
21bb7c4cdc tests: make tests work if directory contains special characters
With this quoting tests will work e.g. in "/tmp/foo bar/mercurial/".
2012-04-03 19:06:35 +02:00
Martin Geisler
731d787518 test-gendoc: update for new Russian translation 2011-05-30 11:52:17 +02:00
Matt Mackall
a5658319f3 tests: unify test-gendoc 2010-09-26 13:41:32 -05:00