##// 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 except ImportError:
108 except ImportError:
109 return False
109 return False
110
110
111 def has_gettext():
112 return matchoutput('msgfmt --version', 'GNU gettext-tools')
113
111 def has_git():
114 def has_git():
112 return matchoutput('git --version 2>&1', r'^git version')
115 return matchoutput('git --version 2>&1', r'^git version')
113
116
@@ -189,6 +192,7 b' checks = {'
189 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
192 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
190 "execbit": (has_executablebit, "executable bit"),
193 "execbit": (has_executablebit, "executable bit"),
191 "fifo": (has_fifo, "named pipes"),
194 "fifo": (has_fifo, "named pipes"),
195 "gettext": (has_gettext, "GNU Gettext (msgfmt)"),
192 "git": (has_git, "git command line client"),
196 "git": (has_git, "git command line client"),
193 "gpg": (has_gpg, "gpg client"),
197 "gpg": (has_gpg, "gpg client"),
194 "icasefs": (has_icasefs, "case insensitive file system"),
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 Test that translations are compiled and installed correctly.
5 Test that translations are compiled and installed correctly.
2
6
3 Default encoding in tests is "ascii" and the translation is encoded
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