##// END OF EJS Templates
test-i18n: make test conditional on msgfmt availability
Martin Geisler -
r13442:bb107a31 stable
parent child Browse files
Show More
@@ -108,6 +108,9 b' def has_lsprof():'
108 108 except ImportError:
109 109 return False
110 110
111 def has_gettext():
112 return matchoutput('msgfmt --version', 'GNU gettext-tools')
113
111 114 def has_git():
112 115 return matchoutput('git --version 2>&1', r'^git version')
113 116
@@ -189,6 +192,7 b' checks = {'
189 192 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
190 193 "execbit": (has_executablebit, "executable bit"),
191 194 "fifo": (has_fifo, "named pipes"),
195 "gettext": (has_gettext, "GNU Gettext (msgfmt)"),
192 196 "git": (has_git, "git command line client"),
193 197 "gpg": (has_gpg, "gpg client"),
194 198 "icasefs": (has_icasefs, "case insensitive file system"),
@@ -1,3 +1,7 b''
1 Translations are optional:
2
3 $ "$TESTDIR/hghave" gettext || exit 80
4
1 5 Test that translations are compiled and installed correctly.
2 6
3 7 Default encoding in tests is "ascii" and the translation is encoded
General Comments 0
You need to be logged in to leave comments. Login now