Mercurial > hg
changeset 13442:bb107a31820e stable
test-i18n: make test conditional on msgfmt availability
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 20 Feb 2011 13:35:30 +0100 |
parents | b366a5e021c6 |
children | 8fa83d7159eb |
files | tests/hghave tests/test-i18n.t |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/hghave Fri Feb 18 10:28:20 2011 -0600 +++ b/tests/hghave Sun Feb 20 13:35:30 2011 +0100 @@ -108,6 +108,9 @@ except ImportError: return False +def has_gettext(): + return matchoutput('msgfmt --version', 'GNU gettext-tools') + def has_git(): return matchoutput('git --version 2>&1', r'^git version') @@ -189,6 +192,7 @@ "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), "execbit": (has_executablebit, "executable bit"), "fifo": (has_fifo, "named pipes"), + "gettext": (has_gettext, "GNU Gettext (msgfmt)"), "git": (has_git, "git command line client"), "gpg": (has_gpg, "gpg client"), "icasefs": (has_icasefs, "case insensitive file system"),
--- a/tests/test-i18n.t Fri Feb 18 10:28:20 2011 -0600 +++ b/tests/test-i18n.t Sun Feb 20 13:35:30 2011 +0100 @@ -1,3 +1,7 @@ +Translations are optional: + + $ "$TESTDIR/hghave" gettext || exit 80 + Test that translations are compiled and installed correctly. Default encoding in tests is "ascii" and the translation is encoded